]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/compulab/cm_t35/eeprom.h
cm-t35: move cm-t35 to live in compulab directory
[people/ms/u-boot.git] / board / compulab / cm_t35 / eeprom.h
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 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc.
20 */
21 #ifndef _EEPROM_
22 #define _EEPROM_
23
24 #ifdef CONFIG_DRIVER_OMAP34XX_I2C
25 int cm_t3x_eeprom_read_mac_addr(uchar *buf);
26 u32 cm_t3x_eeprom_get_board_rev(void);
27 #else
28 static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf)
29 {
30 return 1;
31 }
32 static inline u32 cm_t3x_eeprom_get_board_rev(void)
33 {
34 return 0;
35 }
36 #endif
37
38 #endif