eeprom.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * (C) Copyright 2009 Semihalf.
  3. * Written by: Grzegorz Bernacki <gjb@semihalf.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the anty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. *
  20. */
  21. #ifndef CMD_EEPROM_H
  22. #define CMD_EEPROM_H
  23. #define EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
  24. #define EEPROM_LEN 1024 /* eeprom length */
  25. #define EEPROM_IDENT 2408 /* identification word */
  26. #define EEPROM_ADDR_IDENT 0 /* identification word offset */
  27. #define EEPROM_ADDR_LEN_SYS 2 /* system area lenght offset */
  28. #define EEPROM_ADDR_LEN_SYSCFG 4 /* system config area length offset */
  29. #define EEPROM_ADDR_ETHADDR 23 /* ethernet address offset */
  30. #endif