blob: cf8c302b2e6563dd757f82fc2633ff4ded14eedc [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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +00008 */
Wolfgang Denk1a459662013-07-08 09:37:19 +02009
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000010#ifndef _EEPROM_
11#define _EEPROM_
12
13#ifdef CONFIG_DRIVER_OMAP34XX_I2C
Igor Grinberg689be5f2013-09-16 21:49:58 +030014int cl_eeprom_read_mac_addr(uchar *buf);
15u32 cl_eeprom_get_board_rev(void);
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000016#else
Igor Grinberg689be5f2013-09-16 21:49:58 +030017static inline int cl_eeprom_read_mac_addr(uchar *buf)
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000018{
19 return 1;
20}
Igor Grinberg689be5f2013-09-16 21:49:58 +030021static inline u32 cl_eeprom_get_board_rev(void)
Nikita Kiryanov8c318eb2012-05-24 04:01:24 +000022{
23 return 0;
24}
Nikita Kiryanove4e2bf52012-01-12 03:28:09 +000025#endif
26
27#endif