summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2009-12-05 19:33:38 +0800
committerLily Zhang <r58066@freescale.com>2009-12-05 19:33:38 +0800
commita0cdb50d96799bc205283b6572e100a515e2870c (patch)
treef8118e89d7756c12542da1cee347ff0fba89256e /arch
parentce7e48b68b37b25fd083f042c1aecb3e8538dc3b (diff)
ENGR00119023-1 MX51: Build in SPI NOR flash driver
Add CONFIG_MTD_MXC_DATAFLASH to build in SPI NOR flash driver Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/configs/imx51_defconfig3
-rw-r--r--arch/arm/mach-mx51/mx51_babbage.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/configs/imx51_defconfig b/arch/arm/configs/imx51_defconfig
index 70fda1163a1c..feb7efe45543 100644
--- a/arch/arm/configs/imx51_defconfig
+++ b/arch/arm/configs/imx51_defconfig
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.31
-# Fri Nov 20 17:50:26 2009
+# Sat Dec 5 00:11:48 2009
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -529,6 +529,7 @@ CONFIG_MTD_CFI_I2=y
# Self-contained MTD device drivers
#
# CONFIG_MTD_DATAFLASH is not set
+CONFIG_MTD_MXC_DATAFLASH=y
# CONFIG_MTD_M25P80 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
diff --git a/arch/arm/mach-mx51/mx51_babbage.c b/arch/arm/mach-mx51/mx51_babbage.c
index 11955f80ce39..c94dbf4024c4 100644
--- a/arch/arm/mach-mx51/mx51_babbage.c
+++ b/arch/arm/mach-mx51/mx51_babbage.c
@@ -644,7 +644,8 @@ static struct spi_board_info mxc_spi_nor_device[] __initdata = {
};
static struct spi_board_info mxc_dataflash_device[] __initdata = {
-#if defined(CONFIG_MTD) || defined(CONFIG_MTD_MODULE)
+#if defined(CONFIG_MTD_MXC_DATAFLASH) \
+ || defined(CONFIG_MTD_MXC_DATAFLASH_MODULE)
{
.modalias = "mxc_dataflash",
.max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */