eeprom.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifdef CONFIG_DRIVER_OMAP34XX_I2C
  24. int cm_t3x_eeprom_read_mac_addr(uchar *buf);
  25. u32 cm_t3x_eeprom_get_board_rev(void);
  26. #else
  27. static inline int cm_t3x_eeprom_read_mac_addr(uchar *buf)
  28. {
  29. return 1;
  30. }
  31. static inline u32 cm_t3x_eeprom_get_board_rev(void)
  32. {
  33. return 0;
  34. }
  35. #endif
  36. #endif