mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-08 13:53:21 +09:00
![Wolfgang Denk](/assets/img/avatar_default.png)
Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
28 lines
522 B
C
28 lines
522 B
C
/*
|
|
* (C) Copyright 2011 CompuLab, Ltd. <www.compulab.co.il>
|
|
*
|
|
* Authors: Nikita Kiryanov <nikita@compulab.co.il>
|
|
* Igor Grinberg <grinberg@compulab.co.il>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _EEPROM_
|
|
#define _EEPROM_
|
|
|
|
#ifdef CONFIG_DRIVER_OMAP34XX_I2C
|
|
int cm_t3x_eeprom_read_mac_addr(uchar *buf);
|
|
u32 cm_t3x_eeprom_get_board_rev(void);
|
|
#else
|
|
static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf)
|
|
{
|
|
return 1;
|
|
}
|
|
static inline u32 cm_t3x_eeprom_get_board_rev(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|