diff options
author | Tom Rini <trini@ti.com> | 2013-03-14 05:32:54 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-04-10 13:22:24 (GMT) |
commit | af5666c88588304ea561352dd2a2e0492cd807db (patch) | |
tree | fc474338fb06c7324dee53d763632282fcbea27e | |
parent | 559eae1cb69a491afb0df31ad3ff66c8b63194ff (diff) | |
download | u-boot-fsl-qoriq-af5666c88588304ea561352dd2a2e0492cd807db.tar.xz |
am335x_evm: Add CONFIG_CMD_MTDPARTS and relevant defaults
Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r-- | include/configs/am335x_evm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 8704933..be6dc3a 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -62,6 +62,8 @@ "fdtfile=\0" \ "console=ttyO0,115200n8\0" \ "optargs=\0" \ + "mtdids=" MTDIDS_DEFAULT "\0" \ + "mtdparts=" MTDPARTS_DEFAULT "\0" \ "mmcdev=0\0" \ "mmcroot=/dev/mmcblk0p2 ro\0" \ "mmcrootfstype=ext4 rootwait\0" \ @@ -426,6 +428,13 @@ /* NAND support */ #ifdef CONFIG_NAND #define CONFIG_CMD_NAND +#define CONFIG_CMD_MTDPARTS +#define MTDIDS_DEFAULT "nand0=omap2-nand.0" +#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:128k(SPL)," \ + "128k(SPL.backup1)," \ + "128k(SPL.backup2)," \ + "128k(SPL.backup3),1920k(u-boot)," \ + "128k(u-boot-env),5m(kernel),-(rootfs)" #define CONFIG_NAND_OMAP_GPMC #define GPMC_NAND_ECC_LP_x16_LAYOUT 1 #define CONFIG_SYS_NAND_BASE (0x08000000) /* physical address */ |