blob: 02ffbb1a99627d21e5b49f08d7f5625e9ff66ded [file] [log] [blame]
Nikita Kiryanovf1ef8692012-01-12 03:28:09 +00001/*
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 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Nikita Kiryanovf1ef8692012-01-12 03:28:09 +00008 */
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009
Nikita Kiryanovf1ef8692012-01-12 03:28:09 +000010#ifndef _EEPROM_
11#define _EEPROM_
12
13#ifdef CONFIG_DRIVER_OMAP34XX_I2C
14int cm_t3x_eeprom_read_mac_addr(uchar *buf);
Nikita Kiryanovcc935c62012-05-24 04:01:24 +000015u32 cm_t3x_eeprom_get_board_rev(void);
Nikita Kiryanovf1ef8692012-01-12 03:28:09 +000016#else
17static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf)
18{
19 return 1;
20}
Nikita Kiryanovcc935c62012-05-24 04:01:24 +000021static inline u32 cm_t3x_eeprom_get_board_rev(void)
22{
23 return 0;
24}
Nikita Kiryanovf1ef8692012-01-12 03:28:09 +000025#endif
26
27#endif