]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: bf548-ezkit: bump SPI flash size up
authorMike Frysinger <vapier@gentoo.org>
Wed, 29 Sep 2010 20:24:16 +0000 (20:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Oct 2010 20:00:40 +0000 (16:00 -0400)
The current size used (256KiB) is smaller than the LDR created for
the bf548-ezkit, so 'run update' doesn't work correctly.  So bump
up the size a bit by making this flexible per-board config.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/configs/bf548-ezkit.h
include/configs/bfin_adi_common.h

index d299dc18f5f1830e24e0b7bb45b68f7659a6ce3c..4412177ff09c42c36ec77eff5f486191256cc8ce 100644 (file)
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    1
+#define CONFIG_BFIN_SPI_IMG_SIZE 0x50000
 
 #ifndef __ADSPBF542__
 /* Don't waste time transferring a logo over the UART */
index 3e9f3b2c90d984c29c5533996d4205f85e90ff36..608788a66f9f72fc264e4d404c9bc2d819b1d9d5 100644 (file)
 #   define UBOOT_ENV_UPDATE \
                "eeprom write $(loadaddr) 0x0 $(filesize)"
 #  else
+#   ifndef CONFIG_BFIN_SPI_IMG_SIZE
+#    define CONFIG_BFIN_SPI_IMG_SIZE 0x40000
+#   endif
 #   define UBOOT_ENV_UPDATE \
                "sf probe " MK_STR(BFIN_BOOT_SPI_SSEL) ";" \
-               "sf erase 0 0x40000;" \
+               "sf erase 0 " MK_STR(CONFIG_BFIN_SPI_IMG_SIZE) ";" \
                "sf write $(loadaddr) 0 $(filesize)"
 #  endif
 # elif (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)