diff options
author | Olof Johansson <olof@lixom.net> | 2018-05-14 04:15:15 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-05-14 04:15:15 -0400 |
commit | 001cd7a7afbfa2de8aaafadb667fa43ea3ca7deb (patch) | |
tree | 1732e6e29bdb225ab38c73eaf2593afff7aea933 | |
parent | 67b8d5c7081221efa252e111cd52532ec6d4266f (diff) | |
parent | 52b12be584ba554a40ad61d4d07bfbc100ffa1ac (diff) |
Merge tag 'ux500-machine-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/soc
These changes for ux500:
- Drops U8540 and U9540
- Cuts down the Kconfig options due to accumulated simplifications
* tag 'ux500-machine-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
ARM: ux500: Cut down Kconfig options
ARM: ux500: Drop U8540/9540 support
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-ux500/Kconfig | 53 | ||||
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-ux500/db8500-regs.h | 4 |
3 files changed, 13 insertions, 60 deletions
diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig index f98332ea2ef2..c1086ebe0050 100644 --- a/arch/arm/mach-ux500/Kconfig +++ b/arch/arm/mach-ux500/Kconfig | |||
@@ -9,64 +9,33 @@ menuconfig ARCH_U8500 | |||
9 | select ARM_ERRATA_764369 if SMP | 9 | select ARM_ERRATA_764369 if SMP |
10 | select ARM_GIC | 10 | select ARM_GIC |
11 | select CACHE_L2X0 | 11 | select CACHE_L2X0 |
12 | select CLKSRC_DBX500_PRCMU | ||
12 | select CLKSRC_NOMADIK_MTU | 13 | select CLKSRC_NOMADIK_MTU |
13 | select GPIOLIB | 14 | select GPIOLIB |
14 | select HAVE_ARM_SCU if SMP | 15 | select HAVE_ARM_SCU if SMP |
15 | select HAVE_ARM_TWD if SMP | 16 | select HAVE_ARM_TWD if SMP |
17 | select I2C | ||
18 | select I2C_NOMADIK | ||
19 | select MFD_DB8500_PRCMU | ||
16 | select PINCTRL | 20 | select PINCTRL |
21 | select PINCTRL_AB8500 | ||
22 | select PINCTRL_AB8505 | ||
17 | select PINCTRL_ABX500 | 23 | select PINCTRL_ABX500 |
24 | select PINCTRL_DB8500 | ||
18 | select PINCTRL_NOMADIK | 25 | select PINCTRL_NOMADIK |
19 | select PL310_ERRATA_753970 if CACHE_L2X0 | 26 | select PL310_ERRATA_753970 if CACHE_L2X0 |
20 | help | ||
21 | Support for ST-Ericsson's Ux500 architecture | ||
22 | |||
23 | if ARCH_U8500 | ||
24 | |||
25 | config UX500_SOC_DB8500 | ||
26 | bool | ||
27 | select MFD_DB8500_PRCMU | ||
28 | select PINCTRL_DB8500 | ||
29 | select PINCTRL_DB8540 | ||
30 | select PINCTRL_AB8500 | ||
31 | select PINCTRL_AB8505 | ||
32 | select PINCTRL_AB9540 | ||
33 | select PINCTRL_AB8540 | ||
34 | select REGULATOR | ||
35 | select REGULATOR_DB8500_PRCMU | ||
36 | select CLKSRC_DBX500_PRCMU | ||
37 | select PM_GENERIC_DOMAINS if PM | 27 | select PM_GENERIC_DOMAINS if PM |
38 | |||
39 | config MACH_MOP500 | ||
40 | bool "U8500 Development platform, MOP500 versions" | ||
41 | select I2C | ||
42 | select I2C_NOMADIK | ||
43 | select REGULATOR | 28 | select REGULATOR |
29 | select REGULATOR_DB8500_PRCMU | ||
44 | select REGULATOR_FIXED_VOLTAGE | 30 | select REGULATOR_FIXED_VOLTAGE |
45 | select SOC_BUS | 31 | select SOC_BUS |
46 | select UX500_SOC_DB8500 | ||
47 | help | 32 | help |
48 | Include support for the MOP500 development platform. | 33 | Support for ST-Ericsson's Ux500 architecture |
49 | |||
50 | config MACH_HREFV60 | ||
51 | bool "U8500 Development platform, HREFv60 version" | ||
52 | select MACH_MOP500 | ||
53 | help | ||
54 | Include support for the HREFv60 new development platform. | ||
55 | Includes HREFv70, v71 etc. | ||
56 | 34 | ||
57 | config MACH_SNOWBALL | 35 | if ARCH_U8500 |
58 | bool "U8500 Snowball platform" | ||
59 | select MACH_MOP500 | ||
60 | help | ||
61 | Include support for the snowball development platform. | ||
62 | 36 | ||
63 | config UX500_AUTO_PLATFORM | 37 | config UX500_SOC_DB8500 |
64 | def_bool y | 38 | def_bool y |
65 | select MACH_MOP500 | ||
66 | help | ||
67 | At least one platform needs to be selected in order to build | ||
68 | a working kernel. If everything else is disabled, this | ||
69 | automatically enables MACH_MOP500. | ||
70 | 39 | ||
71 | config UX500_DEBUG_UART | 40 | config UX500_DEBUG_UART |
72 | int "Ux500 UART to use for low-level debug" | 41 | int "Ux500 UART to use for low-level debug" |
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 36cd23c8be9b..389ecf6faa00 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -111,11 +111,6 @@ static void ux500_restart(enum reboot_mode mode, const char *cmd) | |||
111 | prcmu_system_reset(0); | 111 | prcmu_system_reset(0); |
112 | } | 112 | } |
113 | 113 | ||
114 | static struct of_dev_auxdata u8540_auxdata_lookup[] __initdata = { | ||
115 | OF_DEV_AUXDATA("stericsson,db8500-prcmu", 0x80157000, "db8500-prcmu", NULL), | ||
116 | {}, | ||
117 | }; | ||
118 | |||
119 | static const struct of_device_id u8500_local_bus_nodes[] = { | 114 | static const struct of_device_id u8500_local_bus_nodes[] = { |
120 | /* only create devices below soc node */ | 115 | /* only create devices below soc node */ |
121 | { .compatible = "stericsson,db8500", }, | 116 | { .compatible = "stericsson,db8500", }, |
@@ -129,20 +124,13 @@ static void __init u8500_init_machine(void) | |||
129 | /* Initialize ux500 power domains */ | 124 | /* Initialize ux500 power domains */ |
130 | ux500_pm_domains_init(); | 125 | ux500_pm_domains_init(); |
131 | 126 | ||
132 | /* automatically probe child nodes of dbx5x0 devices */ | 127 | of_platform_populate(NULL, u8500_local_bus_nodes, |
133 | if (of_machine_is_compatible("st-ericsson,u8540")) | 128 | NULL, NULL); |
134 | of_platform_populate(NULL, u8500_local_bus_nodes, | ||
135 | u8540_auxdata_lookup, NULL); | ||
136 | else | ||
137 | of_platform_populate(NULL, u8500_local_bus_nodes, | ||
138 | NULL, NULL); | ||
139 | } | 129 | } |
140 | 130 | ||
141 | static const char * stericsson_dt_platform_compat[] = { | 131 | static const char * stericsson_dt_platform_compat[] = { |
142 | "st-ericsson,u8500", | 132 | "st-ericsson,u8500", |
143 | "st-ericsson,u8540", | ||
144 | "st-ericsson,u9500", | 133 | "st-ericsson,u9500", |
145 | "st-ericsson,u9540", | ||
146 | NULL, | 134 | NULL, |
147 | }; | 135 | }; |
148 | 136 | ||
diff --git a/arch/arm/mach-ux500/db8500-regs.h b/arch/arm/mach-ux500/db8500-regs.h index 27399553c841..3d6e1955119a 100644 --- a/arch/arm/mach-ux500/db8500-regs.h +++ b/arch/arm/mach-ux500/db8500-regs.h | |||
@@ -41,10 +41,6 @@ | |||
41 | /* ASIC ID is at 0xbf4 offset within this region */ | 41 | /* ASIC ID is at 0xbf4 offset within this region */ |
42 | #define U8500_ASIC_ID_BASE 0x9001D000 | 42 | #define U8500_ASIC_ID_BASE 0x9001D000 |
43 | 43 | ||
44 | #define U9540_BOOT_ROM_BASE 0xFFFE0000 | ||
45 | /* ASIC ID is at 0xbf4 offset within this region */ | ||
46 | #define U9540_ASIC_ID_BASE 0xFFFFD000 | ||
47 | |||
48 | #define U8500_PER6_BASE 0xa03c0000 | 44 | #define U8500_PER6_BASE 0xa03c0000 |
49 | #define U8500_PER7_BASE 0xa03d0000 | 45 | #define U8500_PER7_BASE 0xa03d0000 |
50 | #define U8500_PER5_BASE 0xa03e0000 | 46 | #define U8500_PER5_BASE 0xa03e0000 |