summaryrefslogtreecommitdiffstats
path: root/include/configs/bfin_adi_common.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-29 20:24:16 +0000
committerMike Frysinger <vapier@gentoo.org>2010-10-02 16:00:40 -0400
commitabaa5ba4e3b52f82b8158044cba6cf7986309d43 (patch)
tree1c8592b8e28171fea2946f125a37d8f6ca98c9be /include/configs/bfin_adi_common.h
parentd3c07a5d24841da3a26c1a1e00ac6b33ded1b646 (diff)
downloadblackbird-obmc-uboot-abaa5ba4e3b52f82b8158044cba6cf7986309d43.tar.gz
blackbird-obmc-uboot-abaa5ba4e3b52f82b8158044cba6cf7986309d43.zip
Blackfin: bf548-ezkit: bump SPI flash size up
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>
Diffstat (limited to 'include/configs/bfin_adi_common.h')
-rw-r--r--include/configs/bfin_adi_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h
index 3e9f3b2c90..608788a66f 100644
--- a/include/configs/bfin_adi_common.h
+++ b/include/configs/bfin_adi_common.h
@@ -172,9 +172,12 @@
# 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)
OpenPOWER on IntegriCloud