X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fbf537-stamp%2Fbf537-stamp.c;h=1f90c003bc2ac35e84467e6aeba10d05047b5cdb;hb=a8d052b5004b3180b9d28567922acd1b62f9cb15;hp=85d41d0aaae4de44bccd7ceeaaac4f879920a5d9;hpb=76ec988b062ed880ab23d0e0d4e9e6c137b55cc3;p=u-boot diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c index 85d41d0aaa..1f90c003bc 100644 --- a/board/bf537-stamp/bf537-stamp.c +++ b/board/bf537-stamp/bf537-stamp.c @@ -1,5 +1,5 @@ /* - * U-boot - main board file + * U-Boot - main board file * * Copyright (c) 2005-2008 Analog Devices Inc. * @@ -29,7 +29,7 @@ int checkboard(void) #ifdef CONFIG_BFIN_MAC static void board_init_enetaddr(uchar *mac_addr) { -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH /* we cram the MAC in the last flash sector */ uchar *board_mac_addr = (uchar *)0x203F0000; if (is_valid_ethaddr(board_mac_addr)) { @@ -54,7 +54,7 @@ int misc_init_r(void) board_init_enetaddr(enetaddr); #endif -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH /* we use the last sector for the MAC address / POST LDR */ extern flash_info_t flash_info[]; flash_protect(FLAG_PROTECT_SET, 0x203F0000, 0x203FFFFF, &flash_info[0]);