Nikita Kiryanov | e4e2bf5 | 2012-01-12 03:28:09 +0000 | [diff] [blame] | 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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Nikita Kiryanov | e4e2bf5 | 2012-01-12 03:28:09 +0000 | [diff] [blame] | 8 | */ |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 9 | |
Nikita Kiryanov | e4e2bf5 | 2012-01-12 03:28:09 +0000 | [diff] [blame] | 10 | #ifndef _EEPROM_ |
| 11 | #define _EEPROM_ |
| 12 | |
| 13 | #ifdef CONFIG_DRIVER_OMAP34XX_I2C |
| 14 | int cm_t3x_eeprom_read_mac_addr(uchar *buf); |
Nikita Kiryanov | 8c318eb | 2012-05-24 04:01:24 +0000 | [diff] [blame] | 15 | u32 cm_t3x_eeprom_get_board_rev(void); |
Nikita Kiryanov | e4e2bf5 | 2012-01-12 03:28:09 +0000 | [diff] [blame] | 16 | #else |
| 17 | static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf) |
| 18 | { |
| 19 | return 1; |
| 20 | } |
Nikita Kiryanov | 8c318eb | 2012-05-24 04:01:24 +0000 | [diff] [blame] | 21 | static inline u32 cm_t3x_eeprom_get_board_rev(void) |
| 22 | { |
| 23 | return 0; |
| 24 | } |
Nikita Kiryanov | e4e2bf5 | 2012-01-12 03:28:09 +0000 | [diff] [blame] | 25 | #endif |
| 26 | |
| 27 | #endif |