blob: e87162930d8549a20c5c35ee87396f89dbd9eae0 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
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
14int cl_eeprom_read_mac_addr(uchar *buf);
15u32 cl_eeprom_get_board_rev(void);
16#else
17static inline int cl_eeprom_read_mac_addr(uchar *buf)
18{
19 return 1;
20}
21static inline u32 cl_eeprom_get_board_rev(void)
22{
23 return 0;
24}
25#endif
26
27#endif