diff options
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 99 |
1 files changed, 43 insertions, 56 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 78b5ae29ae40..68fe4c289d77 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -345,6 +345,34 @@ static struct clk aemif_clk = { | |||
345 | .flags = ALWAYS_ENABLED, | 345 | .flags = ALWAYS_ENABLED, |
346 | }; | 346 | }; |
347 | 347 | ||
348 | static struct clk usb11_clk = { | ||
349 | .name = "usb11", | ||
350 | .parent = &pll0_sysclk4, | ||
351 | .lpsc = DA8XX_LPSC1_USB11, | ||
352 | .gpsc = 1, | ||
353 | }; | ||
354 | |||
355 | static struct clk usb20_clk = { | ||
356 | .name = "usb20", | ||
357 | .parent = &pll0_sysclk2, | ||
358 | .lpsc = DA8XX_LPSC1_USB20, | ||
359 | .gpsc = 1, | ||
360 | }; | ||
361 | |||
362 | static struct clk spi0_clk = { | ||
363 | .name = "spi0", | ||
364 | .parent = &pll0_sysclk2, | ||
365 | .lpsc = DA8XX_LPSC0_SPI0, | ||
366 | }; | ||
367 | |||
368 | static struct clk spi1_clk = { | ||
369 | .name = "spi1", | ||
370 | .parent = &pll0_sysclk2, | ||
371 | .lpsc = DA8XX_LPSC1_SPI1, | ||
372 | .gpsc = 1, | ||
373 | .flags = DA850_CLK_ASYNC3, | ||
374 | }; | ||
375 | |||
348 | static struct clk_lookup da850_clks[] = { | 376 | static struct clk_lookup da850_clks[] = { |
349 | CLK(NULL, "ref", &ref_clk), | 377 | CLK(NULL, "ref", &ref_clk), |
350 | CLK(NULL, "pll0", &pll0_clk), | 378 | CLK(NULL, "pll0", &pll0_clk), |
@@ -387,6 +415,10 @@ static struct clk_lookup da850_clks[] = { | |||
387 | CLK("davinci_mmc.0", NULL, &mmcsd0_clk), | 415 | CLK("davinci_mmc.0", NULL, &mmcsd0_clk), |
388 | CLK("davinci_mmc.1", NULL, &mmcsd1_clk), | 416 | CLK("davinci_mmc.1", NULL, &mmcsd1_clk), |
389 | CLK(NULL, "aemif", &aemif_clk), | 417 | CLK(NULL, "aemif", &aemif_clk), |
418 | CLK(NULL, "usb11", &usb11_clk), | ||
419 | CLK(NULL, "usb20", &usb20_clk), | ||
420 | CLK("spi_davinci.0", NULL, &spi0_clk), | ||
421 | CLK("spi_davinci.1", NULL, &spi1_clk), | ||
390 | CLK(NULL, NULL, NULL), | 422 | CLK(NULL, NULL, NULL), |
391 | }; | 423 | }; |
392 | 424 | ||
@@ -543,30 +575,19 @@ static const struct mux_config da850_pins[] = { | |||
543 | MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false) | 575 | MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false) |
544 | MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false) | 576 | MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false) |
545 | /* GPIO function */ | 577 | /* GPIO function */ |
578 | MUX_CFG(DA850, GPIO2_4, 6, 12, 15, 8, false) | ||
546 | MUX_CFG(DA850, GPIO2_6, 6, 4, 15, 8, false) | 579 | MUX_CFG(DA850, GPIO2_6, 6, 4, 15, 8, false) |
547 | MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false) | 580 | MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false) |
548 | MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) | 581 | MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) |
582 | MUX_CFG(DA850, GPIO3_12, 7, 12, 15, 8, false) | ||
583 | MUX_CFG(DA850, GPIO3_13, 7, 8, 15, 8, false) | ||
549 | MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false) | 584 | MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false) |
550 | MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false) | 585 | MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false) |
586 | MUX_CFG(DA850, GPIO6_13, 13, 8, 15, 8, false) | ||
551 | MUX_CFG(DA850, RTC_ALARM, 0, 28, 15, 2, false) | 587 | MUX_CFG(DA850, RTC_ALARM, 0, 28, 15, 2, false) |
552 | #endif | 588 | #endif |
553 | }; | 589 | }; |
554 | 590 | ||
555 | const short da850_uart0_pins[] __initdata = { | ||
556 | DA850_NUART0_CTS, DA850_NUART0_RTS, DA850_UART0_RXD, DA850_UART0_TXD, | ||
557 | -1 | ||
558 | }; | ||
559 | |||
560 | const short da850_uart1_pins[] __initdata = { | ||
561 | DA850_UART1_RXD, DA850_UART1_TXD, | ||
562 | -1 | ||
563 | }; | ||
564 | |||
565 | const short da850_uart2_pins[] __initdata = { | ||
566 | DA850_UART2_RXD, DA850_UART2_TXD, | ||
567 | -1 | ||
568 | }; | ||
569 | |||
570 | const short da850_i2c0_pins[] __initdata = { | 591 | const short da850_i2c0_pins[] __initdata = { |
571 | DA850_I2C0_SDA, DA850_I2C0_SCL, | 592 | DA850_I2C0_SDA, DA850_I2C0_SCL, |
572 | -1 | 593 | -1 |
@@ -577,24 +598,6 @@ const short da850_i2c1_pins[] __initdata = { | |||
577 | -1 | 598 | -1 |
578 | }; | 599 | }; |
579 | 600 | ||
580 | const short da850_cpgmac_pins[] __initdata = { | ||
581 | DA850_MII_TXEN, DA850_MII_TXCLK, DA850_MII_COL, DA850_MII_TXD_3, | ||
582 | DA850_MII_TXD_2, DA850_MII_TXD_1, DA850_MII_TXD_0, DA850_MII_RXER, | ||
583 | DA850_MII_CRS, DA850_MII_RXCLK, DA850_MII_RXDV, DA850_MII_RXD_3, | ||
584 | DA850_MII_RXD_2, DA850_MII_RXD_1, DA850_MII_RXD_0, DA850_MDIO_CLK, | ||
585 | DA850_MDIO_D, DA850_RMII_TXD_0, DA850_RMII_TXD_1, DA850_RMII_TXEN, | ||
586 | DA850_RMII_CRS_DV, DA850_RMII_RXD_0, DA850_RMII_RXD_1, DA850_RMII_RXER, | ||
587 | DA850_RMII_MHZ_50_CLK, | ||
588 | -1 | ||
589 | }; | ||
590 | |||
591 | const short da850_mcasp_pins[] __initdata = { | ||
592 | DA850_AHCLKX, DA850_ACLKX, DA850_AFSX, | ||
593 | DA850_AHCLKR, DA850_ACLKR, DA850_AFSR, DA850_AMUTE, | ||
594 | DA850_AXR_11, DA850_AXR_12, | ||
595 | -1 | ||
596 | }; | ||
597 | |||
598 | const short da850_lcdcntl_pins[] __initdata = { | 601 | const short da850_lcdcntl_pins[] __initdata = { |
599 | DA850_LCD_D_0, DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3, | 602 | DA850_LCD_D_0, DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3, |
600 | DA850_LCD_D_4, DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7, | 603 | DA850_LCD_D_4, DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7, |
@@ -604,29 +607,6 @@ const short da850_lcdcntl_pins[] __initdata = { | |||
604 | -1 | 607 | -1 |
605 | }; | 608 | }; |
606 | 609 | ||
607 | const short da850_mmcsd0_pins[] __initdata = { | ||
608 | DA850_MMCSD0_DAT_0, DA850_MMCSD0_DAT_1, DA850_MMCSD0_DAT_2, | ||
609 | DA850_MMCSD0_DAT_3, DA850_MMCSD0_CLK, DA850_MMCSD0_CMD, | ||
610 | DA850_GPIO4_0, DA850_GPIO4_1, | ||
611 | -1 | ||
612 | }; | ||
613 | |||
614 | const short da850_emif25_pins[] __initdata = { | ||
615 | DA850_EMA_BA_1, DA850_EMA_CLK, DA850_EMA_WAIT_1, DA850_NEMA_CS_2, | ||
616 | DA850_NEMA_CS_3, DA850_NEMA_CS_4, DA850_NEMA_WE, DA850_NEMA_OE, | ||
617 | DA850_EMA_D_0, DA850_EMA_D_1, DA850_EMA_D_2, DA850_EMA_D_3, | ||
618 | DA850_EMA_D_4, DA850_EMA_D_5, DA850_EMA_D_6, DA850_EMA_D_7, | ||
619 | DA850_EMA_D_8, DA850_EMA_D_9, DA850_EMA_D_10, DA850_EMA_D_11, | ||
620 | DA850_EMA_D_12, DA850_EMA_D_13, DA850_EMA_D_14, DA850_EMA_D_15, | ||
621 | DA850_EMA_A_0, DA850_EMA_A_1, DA850_EMA_A_2, DA850_EMA_A_3, | ||
622 | DA850_EMA_A_4, DA850_EMA_A_5, DA850_EMA_A_6, DA850_EMA_A_7, | ||
623 | DA850_EMA_A_8, DA850_EMA_A_9, DA850_EMA_A_10, DA850_EMA_A_11, | ||
624 | DA850_EMA_A_12, DA850_EMA_A_13, DA850_EMA_A_14, DA850_EMA_A_15, | ||
625 | DA850_EMA_A_16, DA850_EMA_A_17, DA850_EMA_A_18, DA850_EMA_A_19, | ||
626 | DA850_EMA_A_20, DA850_EMA_A_21, DA850_EMA_A_22, DA850_EMA_A_23, | ||
627 | -1 | ||
628 | }; | ||
629 | |||
630 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ | 610 | /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ |
631 | static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | 611 | static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { |
632 | [IRQ_DA8XX_COMMTX] = 7, | 612 | [IRQ_DA8XX_COMMTX] = 7, |
@@ -764,6 +744,13 @@ static struct davinci_id da850_ids[] = { | |||
764 | .cpu_id = DAVINCI_CPU_ID_DA850, | 744 | .cpu_id = DAVINCI_CPU_ID_DA850, |
765 | .name = "da850/omap-l138", | 745 | .name = "da850/omap-l138", |
766 | }, | 746 | }, |
747 | { | ||
748 | .variant = 0x1, | ||
749 | .part_no = 0xb7d1, | ||
750 | .manufacturer = 0x017, /* 0x02f >> 1 */ | ||
751 | .cpu_id = DAVINCI_CPU_ID_DA850, | ||
752 | .name = "da850/omap-l138/am18x", | ||
753 | }, | ||
767 | }; | 754 | }; |
768 | 755 | ||
769 | static struct davinci_timer_instance da850_timer_instance[4] = { | 756 | static struct davinci_timer_instance da850_timer_instance[4] = { |