aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/da850.c
diff options
context:
space:
mode:
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>2009-08-13 16:21:11 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 04:55:56 -0400
commit38beb929f2c33a37bf3af6103c064a9edfbe242b (patch)
treeb4393295180b2b40ebc3e00c5b42aa61b06f2cd2 /arch/arm/mach-davinci/da850.c
parent700691f27ed9b0891cece9032e4de8c0b482c625 (diff)
davinci: Add NAND flash support for DA850/OMAP-L138
This patch adds platform data for the 512MB NAND Flash found on DA850/OMAP-L138 EVM. Currently it supports only 1-bit ECC. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r--arch/arm/mach-davinci/da850.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index 9debd57deb71..db4209413450 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -310,6 +310,13 @@ static struct clk mmcsd_clk = {
310 .lpsc = DA8XX_LPSC0_MMC_SD, 310 .lpsc = DA8XX_LPSC0_MMC_SD,
311}; 311};
312 312
313static struct clk aemif_clk = {
314 .name = "aemif",
315 .parent = &pll0_sysclk3,
316 .lpsc = DA8XX_LPSC0_EMIF25,
317 .flags = ALWAYS_ENABLED,
318};
319
313static struct davinci_clk da850_clks[] = { 320static struct davinci_clk da850_clks[] = {
314 CLK(NULL, "ref", &ref_clk), 321 CLK(NULL, "ref", &ref_clk),
315 CLK(NULL, "pll0", &pll0_clk), 322 CLK(NULL, "pll0", &pll0_clk),
@@ -350,6 +357,7 @@ static struct davinci_clk da850_clks[] = {
350 CLK("davinci-mcasp.0", NULL, &mcasp_clk), 357 CLK("davinci-mcasp.0", NULL, &mcasp_clk),
351 CLK("da8xx_lcdc.0", NULL, &lcdc_clk), 358 CLK("da8xx_lcdc.0", NULL, &lcdc_clk),
352 CLK("davinci_mmc.0", NULL, &mmcsd_clk), 359 CLK("davinci_mmc.0", NULL, &mmcsd_clk),
360 CLK(NULL, "aemif", &aemif_clk),
353 CLK(NULL, NULL, NULL), 361 CLK(NULL, NULL, NULL),
354}; 362};
355 363
@@ -448,6 +456,21 @@ static const struct mux_config da850_pins[] = {
448 MUX_CFG(DA850, MMCSD0_DAT_3, 10, 20, 15, 2, false) 456 MUX_CFG(DA850, MMCSD0_DAT_3, 10, 20, 15, 2, false)
449 MUX_CFG(DA850, MMCSD0_CLK, 10, 0, 15, 2, false) 457 MUX_CFG(DA850, MMCSD0_CLK, 10, 0, 15, 2, false)
450 MUX_CFG(DA850, MMCSD0_CMD, 10, 4, 15, 2, false) 458 MUX_CFG(DA850, MMCSD0_CMD, 10, 4, 15, 2, false)
459 /* EMIF2.5/EMIFA function */
460 MUX_CFG(DA850, EMA_D_7, 9, 0, 15, 1, false)
461 MUX_CFG(DA850, EMA_D_6, 9, 4, 15, 1, false)
462 MUX_CFG(DA850, EMA_D_5, 9, 8, 15, 1, false)
463 MUX_CFG(DA850, EMA_D_4, 9, 12, 15, 1, false)
464 MUX_CFG(DA850, EMA_D_3, 9, 16, 15, 1, false)
465 MUX_CFG(DA850, EMA_D_2, 9, 20, 15, 1, false)
466 MUX_CFG(DA850, EMA_D_1, 9, 24, 15, 1, false)
467 MUX_CFG(DA850, EMA_D_0, 9, 28, 15, 1, false)
468 MUX_CFG(DA850, EMA_A_1, 12, 24, 15, 1, false)
469 MUX_CFG(DA850, EMA_A_2, 12, 20, 15, 1, false)
470 MUX_CFG(DA850, NEMA_CS_3, 7, 4, 15, 1, false)
471 MUX_CFG(DA850, NEMA_CS_4, 7, 8, 15, 1, false)
472 MUX_CFG(DA850, NEMA_WE, 7, 16, 15, 1, false)
473 MUX_CFG(DA850, NEMA_OE, 7, 20, 15, 1, false)
451 /* GPIO function */ 474 /* GPIO function */
452 MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) 475 MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false)
453 MUX_CFG(DA850, GPIO8_10, 18, 28, 15, 8, false) 476 MUX_CFG(DA850, GPIO8_10, 18, 28, 15, 8, false)
@@ -514,6 +537,14 @@ const short da850_mmcsd0_pins[] __initdata = {
514 -1 537 -1
515}; 538};
516 539
540const short da850_nand_pins[] __initdata = {
541 DA850_EMA_D_7, DA850_EMA_D_6, DA850_EMA_D_5, DA850_EMA_D_4,
542 DA850_EMA_D_3, DA850_EMA_D_2, DA850_EMA_D_1, DA850_EMA_D_0,
543 DA850_EMA_A_1, DA850_EMA_A_2, DA850_NEMA_CS_3, DA850_NEMA_CS_4,
544 DA850_NEMA_WE, DA850_NEMA_OE,
545 -1
546};
547
517/* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ 548/* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */
518static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { 549static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = {
519 [IRQ_DA8XX_COMMTX] = 7, 550 [IRQ_DA8XX_COMMTX] = 7,