diff options
Diffstat (limited to 'arch/arm/mach-spear3xx/include/mach')
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/generic.h | 29 | ||||
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/hardware.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/spear.h | 9 |
3 files changed, 13 insertions, 28 deletions
diff --git a/arch/arm/mach-spear3xx/include/mach/generic.h b/arch/arm/mach-spear3xx/include/mach/generic.h index 14276e5a98d2..84ee2bbf1338 100644 --- a/arch/arm/mach-spear3xx/include/mach/generic.h +++ b/arch/arm/mach-spear3xx/include/mach/generic.h | |||
@@ -31,16 +31,13 @@ | |||
31 | #define SPEAR_GPT0_CHAN1_IRQ SPEAR3XX_IRQ_CPU_GPT1_2 | 31 | #define SPEAR_GPT0_CHAN1_IRQ SPEAR3XX_IRQ_CPU_GPT1_2 |
32 | 32 | ||
33 | /* Add spear3xx family device structure declarations here */ | 33 | /* Add spear3xx family device structure declarations here */ |
34 | extern struct amba_device spear3xx_gpio_device; | ||
35 | extern struct amba_device spear3xx_uart_device; | ||
36 | extern struct sys_timer spear3xx_timer; | 34 | extern struct sys_timer spear3xx_timer; |
35 | extern struct pl022_ssp_controller pl022_plat_data; | ||
37 | 36 | ||
38 | /* Add spear3xx family function declarations here */ | 37 | /* Add spear3xx family function declarations here */ |
39 | void __init spear3xx_clk_init(void); | ||
40 | void __init spear_setup_timer(void); | 38 | void __init spear_setup_timer(void); |
41 | void __init spear3xx_map_io(void); | 39 | void __init spear3xx_map_io(void); |
42 | void __init spear3xx_init_irq(void); | 40 | void __init spear3xx_dt_init_irq(void); |
43 | void __init spear3xx_init(void); | ||
44 | 41 | ||
45 | void spear_restart(char, const char *); | 42 | void spear_restart(char, const char *); |
46 | 43 | ||
@@ -99,9 +96,6 @@ extern struct pmx_dev spear3xx_pmx_plgpio_45_46_49_50; | |||
99 | 96 | ||
100 | /* spear300 declarations */ | 97 | /* spear300 declarations */ |
101 | #ifdef CONFIG_MACH_SPEAR300 | 98 | #ifdef CONFIG_MACH_SPEAR300 |
102 | /* Add spear300 machine device structure declarations here */ | ||
103 | extern struct amba_device spear300_gpio1_device; | ||
104 | |||
105 | /* pad mux modes */ | 99 | /* pad mux modes */ |
106 | extern struct pmx_mode spear300_nand_mode; | 100 | extern struct pmx_mode spear300_nand_mode; |
107 | extern struct pmx_mode spear300_nor_mode; | 101 | extern struct pmx_mode spear300_nor_mode; |
@@ -133,16 +127,13 @@ extern struct pmx_dev spear300_pmx_telecom_sdhci_4bit; | |||
133 | extern struct pmx_dev spear300_pmx_telecom_sdhci_8bit; | 127 | extern struct pmx_dev spear300_pmx_telecom_sdhci_8bit; |
134 | extern struct pmx_dev spear300_pmx_gpio1; | 128 | extern struct pmx_dev spear300_pmx_gpio1; |
135 | 129 | ||
136 | /* Add spear300 machine function declarations here */ | 130 | /* Add spear300 machine declarations here */ |
137 | void __init spear300_init(struct pmx_mode *pmx_mode, struct pmx_dev **pmx_devs, | 131 | void __init spear300_clk_init(void); |
138 | u8 pmx_dev_count); | ||
139 | 132 | ||
140 | #endif /* CONFIG_MACH_SPEAR300 */ | 133 | #endif /* CONFIG_MACH_SPEAR300 */ |
141 | 134 | ||
142 | /* spear310 declarations */ | 135 | /* spear310 declarations */ |
143 | #ifdef CONFIG_MACH_SPEAR310 | 136 | #ifdef CONFIG_MACH_SPEAR310 |
144 | /* Add spear310 machine device structure declarations here */ | ||
145 | |||
146 | /* pad mux devices */ | 137 | /* pad mux devices */ |
147 | extern struct pmx_dev spear310_pmx_emi_cs_0_1_4_5; | 138 | extern struct pmx_dev spear310_pmx_emi_cs_0_1_4_5; |
148 | extern struct pmx_dev spear310_pmx_emi_cs_2_3; | 139 | extern struct pmx_dev spear310_pmx_emi_cs_2_3; |
@@ -153,16 +144,13 @@ extern struct pmx_dev spear310_pmx_fsmc; | |||
153 | extern struct pmx_dev spear310_pmx_rs485_0_1; | 144 | extern struct pmx_dev spear310_pmx_rs485_0_1; |
154 | extern struct pmx_dev spear310_pmx_tdm0; | 145 | extern struct pmx_dev spear310_pmx_tdm0; |
155 | 146 | ||
156 | /* Add spear310 machine function declarations here */ | 147 | /* Add spear310 machine declarations here */ |
157 | void __init spear310_init(struct pmx_mode *pmx_mode, struct pmx_dev **pmx_devs, | 148 | void __init spear310_clk_init(void); |
158 | u8 pmx_dev_count); | ||
159 | 149 | ||
160 | #endif /* CONFIG_MACH_SPEAR310 */ | 150 | #endif /* CONFIG_MACH_SPEAR310 */ |
161 | 151 | ||
162 | /* spear320 declarations */ | 152 | /* spear320 declarations */ |
163 | #ifdef CONFIG_MACH_SPEAR320 | 153 | #ifdef CONFIG_MACH_SPEAR320 |
164 | /* Add spear320 machine device structure declarations here */ | ||
165 | |||
166 | /* pad mux modes */ | 154 | /* pad mux modes */ |
167 | extern struct pmx_mode spear320_auto_net_smii_mode; | 155 | extern struct pmx_mode spear320_auto_net_smii_mode; |
168 | extern struct pmx_mode spear320_auto_net_mii_mode; | 156 | extern struct pmx_mode spear320_auto_net_mii_mode; |
@@ -193,9 +181,8 @@ extern struct pmx_dev spear320_pmx_smii0; | |||
193 | extern struct pmx_dev spear320_pmx_smii1; | 181 | extern struct pmx_dev spear320_pmx_smii1; |
194 | extern struct pmx_dev spear320_pmx_i2c1; | 182 | extern struct pmx_dev spear320_pmx_i2c1; |
195 | 183 | ||
196 | /* Add spear320 machine function declarations here */ | 184 | /* Add spear320 machine declarations here */ |
197 | void __init spear320_init(struct pmx_mode *pmx_mode, struct pmx_dev **pmx_devs, | 185 | void __init spear320_clk_init(void); |
198 | u8 pmx_dev_count); | ||
199 | 186 | ||
200 | #endif /* CONFIG_MACH_SPEAR320 */ | 187 | #endif /* CONFIG_MACH_SPEAR320 */ |
201 | 188 | ||
diff --git a/arch/arm/mach-spear3xx/include/mach/hardware.h b/arch/arm/mach-spear3xx/include/mach/hardware.h index 4660c0d8ec0d..defa374f5bee 100644 --- a/arch/arm/mach-spear3xx/include/mach/hardware.h +++ b/arch/arm/mach-spear3xx/include/mach/hardware.h | |||
@@ -17,7 +17,4 @@ | |||
17 | #include <plat/hardware.h> | 17 | #include <plat/hardware.h> |
18 | #include <mach/spear.h> | 18 | #include <mach/spear.h> |
19 | 19 | ||
20 | /* Vitual to physical translation of statically mapped space */ | ||
21 | #define IO_ADDRESS(x) (x | 0xF0000000) | ||
22 | |||
23 | #endif /* __MACH_HARDWARE_H */ | 20 | #endif /* __MACH_HARDWARE_H */ |
diff --git a/arch/arm/mach-spear3xx/include/mach/spear.h b/arch/arm/mach-spear3xx/include/mach/spear.h index 63fd98356919..8e3900aa0d45 100644 --- a/arch/arm/mach-spear3xx/include/mach/spear.h +++ b/arch/arm/mach-spear3xx/include/mach/spear.h | |||
@@ -25,8 +25,9 @@ | |||
25 | 25 | ||
26 | /* ICM1 - Low speed connection */ | 26 | /* ICM1 - Low speed connection */ |
27 | #define SPEAR3XX_ICM1_2_BASE UL(0xD0000000) | 27 | #define SPEAR3XX_ICM1_2_BASE UL(0xD0000000) |
28 | #define VA_SPEAR3XX_ICM1_2_BASE UL(0xFD000000) | ||
28 | #define SPEAR3XX_ICM1_UART_BASE UL(0xD0000000) | 29 | #define SPEAR3XX_ICM1_UART_BASE UL(0xD0000000) |
29 | #define VA_SPEAR3XX_ICM1_UART_BASE IO_ADDRESS(SPEAR3XX_ICM1_UART_BASE) | 30 | #define VA_SPEAR3XX_ICM1_UART_BASE (VA_SPEAR3XX_ICM1_2_BASE | SPEAR3XX_ICM1_UART_BASE) |
30 | #define SPEAR3XX_ICM1_ADC_BASE UL(0xD0080000) | 31 | #define SPEAR3XX_ICM1_ADC_BASE UL(0xD0080000) |
31 | #define SPEAR3XX_ICM1_SSP_BASE UL(0xD0100000) | 32 | #define SPEAR3XX_ICM1_SSP_BASE UL(0xD0100000) |
32 | #define SPEAR3XX_ICM1_I2C_BASE UL(0xD0180000) | 33 | #define SPEAR3XX_ICM1_I2C_BASE UL(0xD0180000) |
@@ -53,11 +54,11 @@ | |||
53 | #define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000) | 54 | #define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000) |
54 | #define SPEAR3XX_ML1_TMR_BASE UL(0xF0000000) | 55 | #define SPEAR3XX_ML1_TMR_BASE UL(0xF0000000) |
55 | #define SPEAR3XX_ML1_VIC_BASE UL(0xF1100000) | 56 | #define SPEAR3XX_ML1_VIC_BASE UL(0xF1100000) |
56 | #define VA_SPEAR3XX_ML1_VIC_BASE IO_ADDRESS(SPEAR3XX_ML1_VIC_BASE) | ||
57 | 57 | ||
58 | /* ICM3 - Basic Subsystem */ | 58 | /* ICM3 - Basic Subsystem */ |
59 | #define SPEAR3XX_ICM3_SMEM_BASE UL(0xF8000000) | 59 | #define SPEAR3XX_ICM3_SMEM_BASE UL(0xF8000000) |
60 | #define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000) | 60 | #define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000) |
61 | #define VA_SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000) | ||
61 | #define SPEAR3XX_ICM3_DMA_BASE UL(0xFC400000) | 62 | #define SPEAR3XX_ICM3_DMA_BASE UL(0xFC400000) |
62 | #define SPEAR3XX_ICM3_SDRAM_CTRL_BASE UL(0xFC600000) | 63 | #define SPEAR3XX_ICM3_SDRAM_CTRL_BASE UL(0xFC600000) |
63 | #define SPEAR3XX_ICM3_TMR0_BASE UL(0xFC800000) | 64 | #define SPEAR3XX_ICM3_TMR0_BASE UL(0xFC800000) |
@@ -65,9 +66,9 @@ | |||
65 | #define SPEAR3XX_ICM3_RTC_BASE UL(0xFC900000) | 66 | #define SPEAR3XX_ICM3_RTC_BASE UL(0xFC900000) |
66 | #define SPEAR3XX_ICM3_GPIO_BASE UL(0xFC980000) | 67 | #define SPEAR3XX_ICM3_GPIO_BASE UL(0xFC980000) |
67 | #define SPEAR3XX_ICM3_SYS_CTRL_BASE UL(0xFCA00000) | 68 | #define SPEAR3XX_ICM3_SYS_CTRL_BASE UL(0xFCA00000) |
68 | #define VA_SPEAR3XX_ICM3_SYS_CTRL_BASE IO_ADDRESS(SPEAR3XX_ICM3_SYS_CTRL_BASE) | 69 | #define VA_SPEAR3XX_ICM3_SYS_CTRL_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_SYS_CTRL_BASE) |
69 | #define SPEAR3XX_ICM3_MISC_REG_BASE UL(0xFCA80000) | 70 | #define SPEAR3XX_ICM3_MISC_REG_BASE UL(0xFCA80000) |
70 | #define VA_SPEAR3XX_ICM3_MISC_REG_BASE IO_ADDRESS(SPEAR3XX_ICM3_MISC_REG_BASE) | 71 | #define VA_SPEAR3XX_ICM3_MISC_REG_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_MISC_REG_BASE) |
71 | #define SPEAR3XX_ICM3_TMR1_BASE UL(0xFCB00000) | 72 | #define SPEAR3XX_ICM3_TMR1_BASE UL(0xFCB00000) |
72 | 73 | ||
73 | /* Debug uart for linux, will be used for debug and uncompress messages */ | 74 | /* Debug uart for linux, will be used for debug and uncompress messages */ |