]> Git Repo - J-u-boot.git/blobdiff - board/compulab/common/eeprom.h
board: cm_fx6: convert to DM_I2C
[J-u-boot.git] / board / compulab / common / eeprom.h
index 85d5bf03d69171c81f57dcaee0e05f7af509399d..0a44926ebd179e67e0302a093ed22bbe55f3b378 100644 (file)
@@ -1,27 +1,32 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2011 CompuLab, Ltd. <www.compulab.co.il>
  *
  * Authors: Nikita Kiryanov <[email protected]>
  *         Igor Grinberg <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef _EEPROM_
 #define _EEPROM_
+#include <errno.h>
 
-#ifdef CONFIG_SYS_I2C
-int cl_eeprom_read_mac_addr(uchar *buf);
-u32 cl_eeprom_get_board_rev(void);
+#if !CONFIG_IS_ENABLED(TARGET_TRIMSLICE)
+int cl_eeprom_read_mac_addr(uchar *buf, uint eeprom_bus);
+u32 cl_eeprom_get_board_rev(uint eeprom_bus);
+int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus);
 #else
-static inline int cl_eeprom_read_mac_addr(uchar *buf)
+static inline int cl_eeprom_read_mac_addr(uchar *buf, uint eeprom_bus)
 {
        return 1;
 }
-static inline u32 cl_eeprom_get_board_rev(void)
+static inline u32 cl_eeprom_get_board_rev(uint eeprom_bus)
 {
        return 0;
 }
+static inline int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus)
+{
+       return -ENOSYS;
+}
 #endif
 
 #endif
This page took 0.025011 seconds and 4 git commands to generate.