aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-nomadik
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-13 15:15:14 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-24 15:25:19 -0400
commit2c5a7424dae5e34b977716f9f0ab8a99d00cc7bc (patch)
treede37dddf87f8961a7d404497c9050c75e8cbd7b7 /arch/arm/mach-nomadik
parent4c6d92b3cd05e08452ecb2480c49dd9109ba788a (diff)
ARM: nomadik: delete FSMC platform data
We now have device tree support for setting the NAND timings for FSMC from the device tree, so delete the last piece of platform data and auxdata. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-nomadik')
-rw-r--r--arch/arm/mach-nomadik/cpu-8815.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c
index 7a00506dc9e1..c6c156e5570e 100644
--- a/arch/arm/mach-nomadik/cpu-8815.c
+++ b/arch/arm/mach-nomadik/cpu-8815.c
@@ -31,7 +31,6 @@
31#include <linux/of_gpio.h> 31#include <linux/of_gpio.h>
32#include <linux/of_address.h> 32#include <linux/of_address.h>
33#include <linux/of_platform.h> 33#include <linux/of_platform.h>
34#include <linux/mtd/fsmc.h>
35#include <linux/gpio.h> 34#include <linux/gpio.h>
36 35
37#include <asm/mach/arch.h> 36#include <asm/mach/arch.h>
@@ -145,17 +144,6 @@ static void __init cpu8815_timer_init_of(void)
145 clocksource_of_init(); 144 clocksource_of_init();
146} 145}
147 146
148static struct fsmc_nand_timings cpu8815_nand_timings = {
149 .thiz = 0,
150 .thold = 0x10,
151 .twait = 0x0A,
152 .tset = 0,
153};
154
155static struct fsmc_nand_platform_data cpu8815_nand_data = {
156 .nand_timings = &cpu8815_nand_timings,
157};
158
159/* 147/*
160 * The SMSC911x IRQ is connected to a GPIO pin, but the driver expects 148 * The SMSC911x IRQ is connected to a GPIO pin, but the driver expects
161 * to simply request an IRQ passed as a resource. So the GPIO pin needs 149 * to simply request an IRQ passed as a resource. So the GPIO pin needs
@@ -222,21 +210,13 @@ static int __init cpu8815_mmcsd_init(void)
222} 210}
223device_initcall(cpu8815_mmcsd_init); 211device_initcall(cpu8815_mmcsd_init);
224 212
225/* This still waits for a device tree enablement patch */
226static struct of_dev_auxdata cpu8815_auxdata_lookup[] __initdata = {
227 OF_DEV_AUXDATA("stericsson,fsmc-nand", NOMADIK_FSMC_BASE,
228 NULL, &cpu8815_nand_data),
229 { /* sentinel */ },
230};
231
232static void __init cpu8815_init_of(void) 213static void __init cpu8815_init_of(void)
233{ 214{
234#ifdef CONFIG_CACHE_L2X0 215#ifdef CONFIG_CACHE_L2X0
235 /* At full speed latency must be >=2, so 0x249 in low bits */ 216 /* At full speed latency must be >=2, so 0x249 in low bits */
236 l2x0_of_init(0x00730249, 0xfe000fff); 217 l2x0_of_init(0x00730249, 0xfe000fff);
237#endif 218#endif
238 of_platform_populate(NULL, of_default_bus_match_table, 219 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
239 cpu8815_auxdata_lookup, NULL);
240} 220}
241 221
242static const char * cpu8815_board_compat[] = { 222static const char * cpu8815_board_compat[] = {