summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2010-10-14 16:42:19 +0800
committerLily Zhang <r58066@freescale.com>2010-10-17 18:04:52 +0800
commit9bbe28258c19c28f8f85c22c932bd119368cfacb (patch)
tree22fe342bd0594f37082c3d5aada765162773b5cc /include/configs
parentd63c74683ab6063e0ca363bebe4f1f4b8197be33 (diff)
downloadu-boot-imx-9bbe28258c19c28f8f85c22c932bd119368cfacb.zip
u-boot-imx-9bbe28258c19c28f8f85c22c932bd119368cfacb.tar.gz
u-boot-imx-9bbe28258c19c28f8f85c22c932bd119368cfacb.tar.bz2
ENGR00132617 MX53: add NAND support
Add NAND support for MX53 EVK and ARD. Need to use kobs-ng to flash U-Boot on MX53 TO1. Because MX51 TO1 ROM doesn't support bi swap solution and kernel enable bi swap, Must enable "ignore bad block" option when flashing U-Boot. The step is as following: echo 1 > /sys/devices/platform/mxc_nandv2_flash.0/ignorebad kobs-ng init --chip_0_device_path=/dev/mtd2 u-boot.bin echo 0 > /sys/devices/platform/mxc_nandv2_flash.0/ignorebad Since default configuration stores environment into SD card and U-Boot uses get_mmc_env_devno (Read SBMR register) to get MMC/SD slot information, you must insert SD card to bottom SD slot to get/store environment if you are using NAND boot on MX53 EVK. You must config boot dip setting well when doing NAND boot. For example, if you are using NAND 29F32G080AA NAND chip on MX53 EVK, you can set boot dips as the following for NAND boot: SW3: dip 7, 8 on; SW2: dip 3,5 on; SW1: dip 4,7,8 on. Other dips are off. Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx53_ard.h10
-rw-r--r--include/configs/mx53_evk.h10
-rw-r--r--include/configs/mx53_evk_android.h10
3 files changed, 30 insertions, 0 deletions
diff --git a/include/configs/mx53_ard.h b/include/configs/mx53_ard.h
index 17a1ba3..dfff7ad 100644
--- a/include/configs/mx53_ard.h
+++ b/include/configs/mx53_ard.h
@@ -93,6 +93,16 @@
#define CONFIG_BOOTP_SUBNETMASK
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_DNS
+
+/* Enable below configure when supporting nand */
+#define CONFIG_CMD_NAND
+#define CONFIG_MXC_NAND
+/* NAND FLASH driver setup */
+#define NAND_MAX_CHIPS 8
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_BASE 0x40000000
+#define CONFIG_NAND_FW_16BIT 0 /* 1: 16bit 0: 8bit */
+
#define CONFIG_CMD_IIM
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
diff --git a/include/configs/mx53_evk.h b/include/configs/mx53_evk.h
index da0ac7f..8b9a1df 100644
--- a/include/configs/mx53_evk.h
+++ b/include/configs/mx53_evk.h
@@ -93,6 +93,16 @@
#define CONFIG_BOOTP_SUBNETMASK
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_DNS
+
+/* Enable below configure when supporting nand */
+#define CONFIG_CMD_NAND
+#define CONFIG_MXC_NAND
+/* NAND FLASH driver setup */
+#define NAND_MAX_CHIPS 8
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_BASE 0x40000000
+#define CONFIG_NAND_FW_16BIT 0 /* 1: 16bit 0: 8bit */
+
#define CONFIG_CMD_IIM
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
diff --git a/include/configs/mx53_evk_android.h b/include/configs/mx53_evk_android.h
index d97a186..1dc2818 100644
--- a/include/configs/mx53_evk_android.h
+++ b/include/configs/mx53_evk_android.h
@@ -110,6 +110,16 @@
#define CONFIG_BOOTP_SUBNETMASK
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_DNS
+
+/* Enable below configure when supporting nand */
+#define CONFIG_CMD_NAND
+#define CONFIG_MXC_NAND
+/* NAND FLASH driver setup */
+#define NAND_MAX_CHIPS 8
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_BASE 0x40000000
+#define CONFIG_NAND_FW_16BIT 0 /* 1: 16bit 0: 8bit */
+
#define CONFIG_CMD_IIM
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV