diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-04 09:14:16 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 08:37:47 -0500 |
commit | 6d7b42a447f92eb3e7e410bbf62042693eb040f7 (patch) | |
tree | 1bb6fa643268d1eb408616cb29bf4fba7830a429 /arch/arm/mach-u300 | |
parent | fc05d5a30dc19dd4c6d161e551719a8c597c7890 (diff) |
mtd: fsmc_nand: pass the ale and cmd resource via resource
Do not use the platform_data to pass resource and be smart in the drivers.
Just pass it via resource
Switch to devm_request_and_ioremap at the sametime
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-By: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'arch/arm/mach-u300')
-rw-r--r-- | arch/arm/mach-u300/core.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c index b8efac4daed8..f642a1552346 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c | |||
@@ -252,6 +252,18 @@ static struct resource rtc_resources[] = { | |||
252 | */ | 252 | */ |
253 | static struct resource fsmc_resources[] = { | 253 | static struct resource fsmc_resources[] = { |
254 | { | 254 | { |
255 | .name = "nand_addr", | ||
256 | .start = U300_NAND_CS0_PHYS_BASE + PLAT_NAND_ALE, | ||
257 | .end = U300_NAND_CS0_PHYS_BASE + PLAT_NAND_ALE + SZ_16K - 1, | ||
258 | .flags = IORESOURCE_MEM, | ||
259 | }, | ||
260 | { | ||
261 | .name = "nand_cmd", | ||
262 | .start = U300_NAND_CS0_PHYS_BASE + PLAT_NAND_CLE, | ||
263 | .end = U300_NAND_CS0_PHYS_BASE + PLAT_NAND_CLE + SZ_16K - 1, | ||
264 | .flags = IORESOURCE_MEM, | ||
265 | }, | ||
266 | { | ||
255 | .name = "nand_data", | 267 | .name = "nand_data", |
256 | .start = U300_NAND_CS0_PHYS_BASE, | 268 | .start = U300_NAND_CS0_PHYS_BASE, |
257 | .end = U300_NAND_CS0_PHYS_BASE + SZ_16K - 1, | 269 | .end = U300_NAND_CS0_PHYS_BASE + SZ_16K - 1, |
@@ -1496,8 +1508,6 @@ static struct fsmc_nand_platform_data nand_platform_data = { | |||
1496 | .nr_partitions = ARRAY_SIZE(u300_partitions), | 1508 | .nr_partitions = ARRAY_SIZE(u300_partitions), |
1497 | .options = NAND_SKIP_BBTSCAN, | 1509 | .options = NAND_SKIP_BBTSCAN, |
1498 | .width = FSMC_NAND_BW8, | 1510 | .width = FSMC_NAND_BW8, |
1499 | .ale_off = PLAT_NAND_ALE, | ||
1500 | .cle_off = PLAT_NAND_CLE, | ||
1501 | }; | 1511 | }; |
1502 | 1512 | ||
1503 | static struct platform_device nand_device = { | 1513 | static struct platform_device nand_device = { |