diff options
author | Justin Waters <justin.waters@timesys.com> | 2008-07-07 16:07:04 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2008-07-07 16:07:04 -0400 |
commit | e5f5802c95b218ab74f4268584835aa13cb2d36d (patch) | |
tree | 480b62c9e38337595c31d20359241227602f9768 /board/at91sam9g20ek/at91sam9g20ek.c | |
parent | 32028b2bf479f08b729b58cda4c9e2a151074547 (diff) |
Fix AT91SAM9G20-EK Specific bugs
This fixes the nand flash and ethernet on the 9g20. Dataflash is still broken,
however.
Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'board/at91sam9g20ek/at91sam9g20ek.c')
-rw-r--r-- | board/at91sam9g20ek/at91sam9g20ek.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/at91sam9g20ek/at91sam9g20ek.c b/board/at91sam9g20ek/at91sam9g20ek.c index 1cd71fb3149..3272ae08f2a 100644 --- a/board/at91sam9g20ek/at91sam9g20ek.c +++ b/board/at91sam9g20ek/at91sam9g20ek.c @@ -72,7 +72,7 @@ int board_late_init(void) DECLARE_GLOBAL_DATA_PTR; /* Fix Ethernet Initialization Bug when starting Linux from U-Boot */ -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET) eth_init(gd->bd); #endif @@ -109,7 +109,7 @@ int AT91F_Serial_Hardware_Init(void) #ifdef CONFIG_DRIVER_ETHER -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET) extern AT91PS_EMAC p_mac; @@ -194,5 +194,5 @@ int AT91F_EMAC_Hardware_Init(void) AT91C_BASE_PIOA->PIO_PDR = (periphAEnable | periphBEnable); } -#endif /* CONFIG_COMMANDS & CFG_CMD_NET */ +#endif /* CONFIG_CMD_NET */ #endif /* CONFIG_DRIVER_ETHER */ |