blob: 38824d162b2b617989495277dbb0bd62e45352d8 [file] [log] [blame]
Nikita Kiryanove4e2bf52012-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 *
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
25int cm_t3x_eeprom_read_mac_addr(uchar *buf);
Nikita Kiryanov8c318eb2012-05-24 04:01:24 +000026u32 cm_t3x_eeprom_get_board_rev(void);
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000027#else
28static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf)
29{
30 return 1;
31}
Nikita Kiryanov8c318eb2012-05-24 04:01:24 +000032static inline u32 cm_t3x_eeprom_get_board_rev(void)
33{
34 return 0;
35}
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000036#endif
37
38#endif