Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 Semihalf. |
| 3 | * Written by: Grzegorz Bernacki <gjb@semihalf.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 6 | */ |
| 7 | #ifndef CMD_EEPROM_H |
| 8 | #define CMD_EEPROM_H |
| 9 | |
| 10 | #define EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR |
| 11 | #define EEPROM_LEN 1024 /* eeprom length */ |
| 12 | #define EEPROM_IDENT 2408 /* identification word */ |
| 13 | #define EEPROM_ADDR_IDENT 0 /* identification word offset */ |
| 14 | #define EEPROM_ADDR_LEN_SYS 2 /* system area lenght offset */ |
| 15 | #define EEPROM_ADDR_LEN_SYSCFG 4 /* system config area length offset */ |
Mike Williams | 1626308 | 2011-07-22 04:01:30 +0000 | [diff] [blame] | 16 | #define EEPROM_ADDR_ETHADDR 23 /* ethernet address offset */ |
Grzegorz Bernacki | 5c4fa9b | 2009-03-17 10:06:40 +0100 | [diff] [blame] | 17 | |
| 18 | #endif |