diff options
author | Heiko Schocher <hs@denx.de> | 2011-01-06 10:25:26 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-30 00:45:17 +0200 |
commit | 0d01520200f3bb0686567134bc2e7bb940009559 (patch) | |
tree | 5c1c23708950965e4f94f5f60a3165929ff42a95 /board/keymile/common/common.h | |
parent | 731b968044b0f96239dd41b8c7ba642cac81cfc5 (diff) |
keymile boards: add CONFIG_PIGGY_MAC_ADRESS_OFFSET
Normaly the PIGGY_MAC_ADRESS can be read directly from the
IVM on keymile boards. On mgcoge3 it differs. Because there
are two piggy boards deployed the second MAC adress must be
calculated with the IVM mac adress and an offset. This patch
allows to set such a offset in the board config.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/keymile/common/common.h')
-rw-r--r-- | board/keymile/common/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/keymile/common/common.h b/board/keymile/common/common.h index 8497ab63d16..e32de8d9fa4 100644 --- a/board/keymile/common/common.h +++ b/board/keymile/common/common.h @@ -39,6 +39,10 @@ struct km_bec_fpga { unsigned char pgy_eth; }; +#if !defined(CONFIG_PIGGY_MAC_ADRESS_OFFSET) +#define CONFIG_PIGGY_MAC_ADRESS_OFFSET 0 +#endif + int ethernet_present(void); int ivm_read_eeprom(void); |