]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/bf526-ezbrd/bf526-ezbrd.c
flash: complete CONFIG_SYS_NO_FLASH move with renaming
[people/ms/u-boot.git] / board / bf526-ezbrd / bf526-ezbrd.c
index a506d1baff532b444e8ccab9e3959ee4b5a37e9c..ae7552081f6d23a2600489ffe663f33ca40dd91a 100644 (file)
@@ -26,7 +26,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 *)0x203F0096;
        if (is_valid_ethaddr(board_mac_addr)) {
@@ -50,7 +50,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]);