summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/include/mach/devices-common.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-08-03 11:59:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-01 09:33:03 +0200
commit63a7c6d7507ed6f4ea24a8ed008efa1bb22a2a97 (patch)
tree4824f195ebc2856bc9613624c31e5d5fac6de595 /arch/arm/plat-mxc/include/mach/devices-common.h
parent00b57bf9786ca701508333112c8917d1e0860129 (diff)
downloadblackbird-op-linux-63a7c6d7507ed6f4ea24a8ed008efa1bb22a2a97.tar.gz
blackbird-op-linux-63a7c6d7507ed6f4ea24a8ed008efa1bb22a2a97.zip
ARM: mx5: dynamically register mxc-nand device
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/devices-common.h')
-rw-r--r--arch/arm/plat-mxc/include/mach/devices-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/plat-mxc/include/mach/devices-common.h
index 371336ee9d7f..f87aa1ad6685 100644
--- a/arch/arm/plat-mxc/include/mach/devices-common.h
+++ b/arch/arm/plat-mxc/include/mach/devices-common.h
@@ -71,8 +71,15 @@ struct platform_device *__init imx_add_imx_uart_1irq(
#include <mach/mxc_nand.h>
struct imx_mxc_nand_data {
+ /*
+ * id is traditionally 0, but -1 is more appropriate. We use -1 for new
+ * machines but don't change existing devices as the nand device usually
+ * appears in the kernel command line to pass its partitioning.
+ */
+ int id;
resource_size_t iobase;
resource_size_t iosize;
+ resource_size_t axibase;
resource_size_t irq;
};
struct platform_device *__init imx_add_mxc_nand(
OpenPOWER on IntegriCloud