xref: /openbmc/u-boot/board/compulab/common/eeprom.h (revision 70ad375e)
1 /*
2  * (C) Copyright 2011 CompuLab, Ltd. <www.compulab.co.il>
3  *
4  * Authors: Nikita Kiryanov <nikita@compulab.co.il>
5  *	    Igor Grinberg <grinberg@compulab.co.il>
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 #ifndef _EEPROM_
11 #define _EEPROM_
12 
13 #ifdef CONFIG_SYS_I2C_OMAP34XX
14 int cl_eeprom_read_mac_addr(uchar *buf);
15 u32 cl_eeprom_get_board_rev(void);
16 #else
17 static inline int cl_eeprom_read_mac_addr(uchar *buf)
18 {
19 	return 1;
20 }
21 static inline u32 cl_eeprom_get_board_rev(void)
22 {
23 	return 0;
24 }
25 #endif
26 
27 #endif
28