diff options
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db8500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 12c7e5c03ea4..bc8a6183560d 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -21,21 +21,32 @@ | |||
21 | #include <linux/of.h> | 21 | #include <linux/of.h> |
22 | #include <linux/of_platform.h> | 22 | #include <linux/of_platform.h> |
23 | #include <linux/regulator/machine.h> | 23 | #include <linux/regulator/machine.h> |
24 | #include <linux/platform_data/pinctrl-nomadik.h> | ||
25 | #include <linux/random.h> | 24 | #include <linux/random.h> |
26 | 25 | ||
27 | #include <asm/pmu.h> | 26 | #include <asm/pmu.h> |
28 | #include <asm/mach/map.h> | 27 | #include <asm/mach/map.h> |
29 | 28 | ||
30 | #include "setup.h" | 29 | #include "setup.h" |
31 | #include "devices.h" | ||
32 | #include "irqs.h" | 30 | #include "irqs.h" |
33 | 31 | ||
34 | #include "devices-db8500.h" | 32 | #include "board-mop500-regulators.h" |
35 | #include "db8500-regs.h" | ||
36 | #include "board-mop500.h" | 33 | #include "board-mop500.h" |
34 | #include "db8500-regs.h" | ||
37 | #include "id.h" | 35 | #include "id.h" |
38 | 36 | ||
37 | struct ab8500_platform_data ab8500_platdata = { | ||
38 | .irq_base = MOP500_AB8500_IRQ_BASE, | ||
39 | .regulator = &ab8500_regulator_plat_data, | ||
40 | }; | ||
41 | |||
42 | struct prcmu_pdata db8500_prcmu_pdata = { | ||
43 | .ab_platdata = &ab8500_platdata, | ||
44 | .ab_irq = IRQ_DB8500_AB8500, | ||
45 | .irq_base = IRQ_PRCMU_BASE, | ||
46 | .version_offset = DB8500_PRCMU_FW_VERSION_OFFSET, | ||
47 | .legacy_offset = DB8500_PRCMU_LEGACY_OFFSET, | ||
48 | }; | ||
49 | |||
39 | /* minimum static i/o mapping required to boot U8500 platforms */ | 50 | /* minimum static i/o mapping required to boot U8500 platforms */ |
40 | static struct map_desc u8500_uart_io_desc[] __initdata = { | 51 | static struct map_desc u8500_uart_io_desc[] __initdata = { |
41 | __IO_DEV_DESC(U8500_UART0_BASE, SZ_4K), | 52 | __IO_DEV_DESC(U8500_UART0_BASE, SZ_4K), |
@@ -159,17 +170,10 @@ static struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { | |||
159 | OF_DEV_AUXDATA("stericsson,ux500-hash", 0xa03c2000, "hash1", NULL), | 170 | OF_DEV_AUXDATA("stericsson,ux500-hash", 0xa03c2000, "hash1", NULL), |
160 | OF_DEV_AUXDATA("stericsson,snd-soc-mop500", 0, "snd-soc-mop500.0", | 171 | OF_DEV_AUXDATA("stericsson,snd-soc-mop500", 0, "snd-soc-mop500.0", |
161 | NULL), | 172 | NULL), |
162 | /* Requires device name bindings. */ | ||
163 | OF_DEV_AUXDATA("stericsson,db8500-pinctrl", U8500_PRCMU_BASE, | ||
164 | "pinctrl-db8500", NULL), | ||
165 | {}, | 173 | {}, |
166 | }; | 174 | }; |
167 | 175 | ||
168 | static struct of_dev_auxdata u8540_auxdata_lookup[] __initdata = { | 176 | static struct of_dev_auxdata u8540_auxdata_lookup[] __initdata = { |
169 | /* Requires DMA bindings. */ | ||
170 | OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", NULL), | ||
171 | OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", NULL), | ||
172 | OF_DEV_AUXDATA("arm,pl011", 0x80007000, "uart2", NULL), | ||
173 | OF_DEV_AUXDATA("stericsson,db8500-prcmu", 0x80157000, "db8500-prcmu", | 177 | OF_DEV_AUXDATA("stericsson,db8500-prcmu", 0x80157000, "db8500-prcmu", |
174 | &db8500_prcmu_pdata), | 178 | &db8500_prcmu_pdata), |
175 | {}, | 179 | {}, |