diff options
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index d0fd7566712a..6b8331bf8cf3 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <mach/da8xx.h> | 27 | #include <mach/da8xx.h> |
28 | #include <mach/cpufreq.h> | 28 | #include <mach/cpufreq.h> |
29 | #include <mach/pm.h> | 29 | #include <mach/pm.h> |
30 | #include <mach/gpio.h> | ||
30 | 31 | ||
31 | #include "clock.h" | 32 | #include "clock.h" |
32 | #include "mux.h" | 33 | #include "mux.h" |
@@ -781,10 +782,7 @@ static struct map_desc da850_io_desc[] = { | |||
781 | }, | 782 | }, |
782 | }; | 783 | }; |
783 | 784 | ||
784 | static void __iomem *da850_psc_bases[] = { | 785 | static u32 da850_psc_bases[] = { DA8XX_PSC0_BASE, DA8XX_PSC1_BASE }; |
785 | IO_ADDRESS(DA8XX_PSC0_BASE), | ||
786 | IO_ADDRESS(DA8XX_PSC1_BASE), | ||
787 | }; | ||
788 | 786 | ||
789 | /* Contents of JTAG ID register used to identify exact cpu type */ | 787 | /* Contents of JTAG ID register used to identify exact cpu type */ |
790 | static struct davinci_id da850_ids[] = { | 788 | static struct davinci_id da850_ids[] = { |
@@ -799,22 +797,22 @@ static struct davinci_id da850_ids[] = { | |||
799 | 797 | ||
800 | static struct davinci_timer_instance da850_timer_instance[4] = { | 798 | static struct davinci_timer_instance da850_timer_instance[4] = { |
801 | { | 799 | { |
802 | .base = IO_ADDRESS(DA8XX_TIMER64P0_BASE), | 800 | .base = DA8XX_TIMER64P0_BASE, |
803 | .bottom_irq = IRQ_DA8XX_TINT12_0, | 801 | .bottom_irq = IRQ_DA8XX_TINT12_0, |
804 | .top_irq = IRQ_DA8XX_TINT34_0, | 802 | .top_irq = IRQ_DA8XX_TINT34_0, |
805 | }, | 803 | }, |
806 | { | 804 | { |
807 | .base = IO_ADDRESS(DA8XX_TIMER64P1_BASE), | 805 | .base = DA8XX_TIMER64P1_BASE, |
808 | .bottom_irq = IRQ_DA8XX_TINT12_1, | 806 | .bottom_irq = IRQ_DA8XX_TINT12_1, |
809 | .top_irq = IRQ_DA8XX_TINT34_1, | 807 | .top_irq = IRQ_DA8XX_TINT34_1, |
810 | }, | 808 | }, |
811 | { | 809 | { |
812 | .base = IO_ADDRESS(DA850_TIMER64P2_BASE), | 810 | .base = DA850_TIMER64P2_BASE, |
813 | .bottom_irq = IRQ_DA850_TINT12_2, | 811 | .bottom_irq = IRQ_DA850_TINT12_2, |
814 | .top_irq = IRQ_DA850_TINT34_2, | 812 | .top_irq = IRQ_DA850_TINT34_2, |
815 | }, | 813 | }, |
816 | { | 814 | { |
817 | .base = IO_ADDRESS(DA850_TIMER64P3_BASE), | 815 | .base = DA850_TIMER64P3_BASE, |
818 | .bottom_irq = IRQ_DA850_TINT12_3, | 816 | .bottom_irq = IRQ_DA850_TINT12_3, |
819 | .top_irq = IRQ_DA850_TINT34_3, | 817 | .top_irq = IRQ_DA850_TINT34_3, |
820 | }, | 818 | }, |
@@ -1072,31 +1070,37 @@ no_ddrpll_mem: | |||
1072 | static struct davinci_soc_info davinci_soc_info_da850 = { | 1070 | static struct davinci_soc_info davinci_soc_info_da850 = { |
1073 | .io_desc = da850_io_desc, | 1071 | .io_desc = da850_io_desc, |
1074 | .io_desc_num = ARRAY_SIZE(da850_io_desc), | 1072 | .io_desc_num = ARRAY_SIZE(da850_io_desc), |
1073 | .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, | ||
1075 | .ids = da850_ids, | 1074 | .ids = da850_ids, |
1076 | .ids_num = ARRAY_SIZE(da850_ids), | 1075 | .ids_num = ARRAY_SIZE(da850_ids), |
1077 | .cpu_clks = da850_clks, | 1076 | .cpu_clks = da850_clks, |
1078 | .psc_bases = da850_psc_bases, | 1077 | .psc_bases = da850_psc_bases, |
1079 | .psc_bases_num = ARRAY_SIZE(da850_psc_bases), | 1078 | .psc_bases_num = ARRAY_SIZE(da850_psc_bases), |
1079 | .pinmux_base = DA8XX_SYSCFG0_BASE + 0x120, | ||
1080 | .pinmux_pins = da850_pins, | 1080 | .pinmux_pins = da850_pins, |
1081 | .pinmux_pins_num = ARRAY_SIZE(da850_pins), | 1081 | .pinmux_pins_num = ARRAY_SIZE(da850_pins), |
1082 | .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT, | 1082 | .intc_base = DA8XX_CP_INTC_BASE, |
1083 | .intc_type = DAVINCI_INTC_TYPE_CP_INTC, | 1083 | .intc_type = DAVINCI_INTC_TYPE_CP_INTC, |
1084 | .intc_irq_prios = da850_default_priorities, | 1084 | .intc_irq_prios = da850_default_priorities, |
1085 | .intc_irq_num = DA850_N_CP_INTC_IRQ, | 1085 | .intc_irq_num = DA850_N_CP_INTC_IRQ, |
1086 | .timer_info = &da850_timer_info, | 1086 | .timer_info = &da850_timer_info, |
1087 | .gpio_base = IO_ADDRESS(DA8XX_GPIO_BASE), | 1087 | .gpio_type = GPIO_TYPE_DAVINCI, |
1088 | .gpio_base = DA8XX_GPIO_BASE, | ||
1088 | .gpio_num = 144, | 1089 | .gpio_num = 144, |
1089 | .gpio_irq = IRQ_DA8XX_GPIO0, | 1090 | .gpio_irq = IRQ_DA8XX_GPIO0, |
1090 | .serial_dev = &da8xx_serial_device, | 1091 | .serial_dev = &da8xx_serial_device, |
1091 | .emac_pdata = &da8xx_emac_pdata, | 1092 | .emac_pdata = &da8xx_emac_pdata, |
1092 | .sram_dma = DA8XX_ARM_RAM_BASE, | 1093 | .sram_dma = DA8XX_ARM_RAM_BASE, |
1093 | .sram_len = SZ_8K, | 1094 | .sram_len = SZ_8K, |
1095 | .reset_device = &da8xx_wdt_device, | ||
1094 | }; | 1096 | }; |
1095 | 1097 | ||
1096 | void __init da850_init(void) | 1098 | void __init da850_init(void) |
1097 | { | 1099 | { |
1098 | unsigned int v; | 1100 | unsigned int v; |
1099 | 1101 | ||
1102 | davinci_common_init(&davinci_soc_info_da850); | ||
1103 | |||
1100 | da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K); | 1104 | da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K); |
1101 | if (WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module")) | 1105 | if (WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module")) |
1102 | return; | 1106 | return; |
@@ -1105,12 +1109,6 @@ void __init da850_init(void) | |||
1105 | if (WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module")) | 1109 | if (WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module")) |
1106 | return; | 1110 | return; |
1107 | 1111 | ||
1108 | davinci_soc_info_da850.jtag_id_base = | ||
1109 | DA8XX_SYSCFG0_VIRT(DA8XX_JTAG_ID_REG); | ||
1110 | davinci_soc_info_da850.pinmux_base = DA8XX_SYSCFG0_VIRT(0x120); | ||
1111 | |||
1112 | davinci_common_init(&davinci_soc_info_da850); | ||
1113 | |||
1114 | /* | 1112 | /* |
1115 | * Move the clock source of Async3 domain to PLL1 SYSCLK2. | 1113 | * Move the clock source of Async3 domain to PLL1 SYSCLK2. |
1116 | * This helps keeping the peripherals on this domain insulated | 1114 | * This helps keeping the peripherals on this domain insulated |