diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-11-10 18:03:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-11-10 18:03:35 +0100 |
commit | db85c9e2b0f57d286c1319052ce19e54b316473e (patch) | |
tree | 47b81f08b09b485918912f37d2048baa4949c587 /board | |
parent | 7e168c9f91c8ec50c18414d6d8d5cec62d22a94e (diff) | |
download | barebox-db85c9e2b0f57d286c1319052ce19e54b316473e.tar.gz barebox-db85c9e2b0f57d286c1319052ce19e54b316473e.tar.xz |
[PCM037] Add NAND support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/pcm037/pcm037.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/board/pcm037/pcm037.c b/board/pcm037/pcm037.c index 220f9a81d0..d66949582e 100644 --- a/board/pcm037/pcm037.c +++ b/board/pcm037/pcm037.c @@ -32,6 +32,7 @@ #include <asm/io.h> #include <partition.h> #include <asm/mach-types.h> +#include <asm/arch/imx-nand.h> /* * Up to 64MiB NOR type flash, connected to @@ -56,16 +57,6 @@ static struct device_d sram_dev = { }; /* - * ?MiB NAND type flash, data width 8 bit - */ -static struct device_d nand_dev = { - .name = "cfi_flash_nand", - .id = "nand0", - .map_base = 0x10000000, /* FIXME */ - .size = 16 * 1024 * 1024, /* FIXME */ -}; - -/* * SMSC 9217 network controller * connected to CS line 1 and interrupt line * GPIO3, data width is 16 bit @@ -91,6 +82,17 @@ static struct device_d sdram_dev = { .type = DEVICE_TYPE_DRAM, }; +struct imx_nand_platform_data nand_info = { + .width = 1, + .hw_ecc = 1, +}; + +static struct device_d nand_dev = { + .name = "imx_nand", + .map_base = 0xB8000000, + .platform_data = &nand_info, +}; + static int imx31_devices_init(void) { __REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */ |