aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-03-09 09:33:01 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-03-09 09:33:01 +0100
commite7babe28d6cf5b1e092b7a7c6dd8a1190f7ed463 (patch)
treedca53a1f8186e6c725d71383108d8f135ebc36b8
parent5ec537e0b21e1d6f974b6e2fda4ccd4c5fec0e3a (diff)
MTD experimentmtd-experiment
-rw-r--r--include/configs/vexpress_aemv8a.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
index 7a6ac9bb9b..dec89ca08d 100644
--- a/include/configs/vexpress_aemv8a.h
+++ b/include/configs/vexpress_aemv8a.h
@@ -184,11 +184,33 @@
#define CONFIG_SYS_LOAD_ADDR (V2M_BASE + 0x10000000)
/* Physical Memory Map */
+/* FIXME: Juno */
#define CONFIG_NR_DRAM_BANKS 1
#define PHYS_SDRAM_1 (V2M_BASE) /* SDRAM Bank #1 */
#define PHYS_SDRAM_1_SIZE 0x80000000 /* 2048 MB */
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
+/* Flash memory is available on the Juno board only */
+#ifndef CONFIG_TARGET_VEXPRESS64_JUNO
+#define CONFIG_SYS_NO_FLASH
+#else
+#define CONFIG_CMD_FLASH
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_FLASH_CFI_MTD
+#define CONFIG_SYS_FLASH_CFI 1
+#define CONFIG_FLASH_CFI_DRIVER 1
+#define CONFIG_SYS_FLASH_BASE 0x08000000
+#define CONFIG_SYS_FLASH_SIZE 0x04000000 /* 64 MiB */
+#define CONFIG_SYS_MAX_FLASH_BANKS 2
+/* nor0 is some dummy device */
+#define MTDIDS_DEFAULT "nor1=08000000.nor"
+#define MTDPARTS_DEFAULT "mtdparts=08000000.nor:5m(fip)," \
+ "10m(Image)," \
+ "1m(juno)"
+// "0bec0000.nor:256k(bl1)"
+
/* Initial environment variables */
#ifdef CONFIG_TARGET_VEXPRESS64_JUNO
/*
@@ -206,10 +228,12 @@
"max_fdt=0x100000\0" \
"fdt_high=0xffffffffffffffff\0" \
"initrd_high=0xffffffffffffffff\0" \
+ "mtdparts=" MTDPARTS_DEFAULT "\0"
/* Assume we boot with root on the first partition of a USB stick */
#define CONFIG_BOOTARGS "console=ttyAMA0,115200n8 " \
"root=/dev/sda1 rw " \
+ MTDPARTS_DEFAULT " " \
"earlyprintk=pl011,0x7ff80000 debug user_debug=31 "\
"loglevel=9"
@@ -271,17 +295,6 @@
#define CONFIG_CMDLINE_EDITING
#define CONFIG_SYS_MAXARGS 64 /* max command args */
-/* Flash memory is available on the Juno board only */
-#ifndef CONFIG_TARGET_VEXPRESS64_JUNO
-#define CONFIG_SYS_NO_FLASH
-#else
-#define CONFIG_CMD_FLASH
-#define CONFIG_SYS_FLASH_CFI 1
-#define CONFIG_FLASH_CFI_DRIVER 1
-#define CONFIG_SYS_FLASH_BASE 0x08000000
-#define CONFIG_SYS_FLASH_SIZE 0x04000000 /* 64 MiB */
-#define CONFIG_SYS_MAX_FLASH_BANKS 2
-
/* Timeout values in ticks */
#define CONFIG_SYS_FLASH_ERASE_TOUT (2 * CONFIG_SYS_HZ) /* Erase Timeout */
#define CONFIG_SYS_FLASH_WRITE_TOUT (2 * CONFIG_SYS_HZ) /* Write Timeout */