From: Daniel Mack Date: Wed, 20 May 2009 17:54:38 +0000 (+0200) Subject: ARM: MX3: add NOR flash support for lilly-1131 X-Git-Tag: firefly_0821_release~13934^2~16^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38160e0b0126565947e986701ae1bdbff01f121d;p=firefly-linux-kernel-4.4.55.git ARM: MX3: add NOR flash support for lilly-1131 Signed-off-by: Daniel Mack Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mx31lilly.c index e5339341c0ba..f15a2eb7bd8b 100644 --- a/arch/arm/mach-mx3/mx31lilly.c +++ b/arch/arm/mach-mx3/mx31lilly.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -83,8 +84,30 @@ static struct platform_device smsc91x_device = { } }; +/* NOR flash */ +static struct physmap_flash_data nor_flash_data = { + .width = 2, +}; + +static struct resource nor_flash_resource = { + .start = 0xa0000000, + .end = 0xa1ffffff, + .flags = IORESOURCE_MEM, +}; + +static struct platform_device physmap_flash_device = { + .name = "physmap-flash", + .id = 0, + .dev = { + .platform_data = &nor_flash_data, + }, + .resource = &nor_flash_resource, + .num_resources = 1, +}; + static struct platform_device *devices[] __initdata = { &smsc91x_device, + &physmap_flash_device, }; static int mx31lilly_baseboard;