Skip to content

Commit ad363e0

Browse files
committed
Merge branch 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson
* 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: mach-ux500: voltage domain regulators for DB8500 cpufreq: make DB8500 cpufreq driver compile cpufreq: update DB8500 cpufreq driver mach-ux500: move CPUfreq driver to cpufreq subsystem mfd: add DB5500 PRCMU driver mfd: update DB8500 PRCMU driver mach-ux500: move the DB8500 PRCMU driver to MFD mach-ux500: make PRCMU base address dynamic mach-ux500: rename PRCMU driver per SoC mach-ux500: update ASIC version detection mach-ux500: update SoC and board IRQ handling mach-ux500: update the DB5500 register file mach-ux500: update the DB8500 register file
2 parents ed0795a + 1032fbf commit ad363e0

33 files changed

Lines changed: 4755 additions & 707 deletions

‎arch/arm/mach-ux500/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ menu "Ux500 SoC"
1212

1313
config UX500_SOC_DB5500
1414
bool "DB5500"
15+
select MFD_DB5500_PRCMU
1516

1617
config UX500_SOC_DB8500
1718
bool "DB8500"
19+
select MFD_DB8500_PRCMU
20+
select REGULATOR_DB8500_PRCMU
1821

1922
endmenu
2023

‎arch/arm/mach-ux500/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
obj-y := clock.o cpu.o devices.o devices-common.o \
66
id.o usb.o
77
obj-$(CONFIG_UX500_SOC_DB5500) += cpu-db5500.o dma-db5500.o
8-
obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o prcmu.o
8+
obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o
99
obj-$(CONFIG_MACH_U8500) += board-mop500.o board-mop500-sdi.o \
1010
board-mop500-regulators.o \
1111
board-mop500-uib.o board-mop500-stuib.o \
@@ -17,4 +17,4 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
1717
obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o
1818
obj-$(CONFIG_U5500_MODEM_IRQ) += modem-irq-db5500.o
1919
obj-$(CONFIG_U5500_MBOX) += mbox-db5500.o
20-
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
20+

‎arch/arm/mach-ux500/cpu-db5500.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ void __init u5500_map_io(void)
188188
ux500_map_io();
189189

190190
iotable_init(u5500_io_desc, ARRAY_SIZE(u5500_io_desc));
191+
192+
_PRCMU_BASE = __io_address(U5500_PRCMU_BASE);
191193
}
192194

193195
static int usb_db5500_rx_dma_cfg[] = {

‎arch/arm/mach-ux500/cpu-db8500.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ void __init u8500_map_io(void)
8787
iotable_init(u8500_v1_io_desc, ARRAY_SIZE(u8500_v1_io_desc));
8888
else if (cpu_is_u8500v2())
8989
iotable_init(u8500_v2_io_desc, ARRAY_SIZE(u8500_v2_io_desc));
90+
91+
_PRCMU_BASE = __io_address(U8500_PRCMU_BASE);
9092
}
9193

9294
static struct resource db8500_pmu_resources[] = {
@@ -129,9 +131,14 @@ static struct platform_device db8500_pmu_device = {
129131
.dev.platform_data = &db8500_pmu_platdata,
130132
};
131133

134+
static struct platform_device db8500_prcmu_device = {
135+
.name = "db8500-prcmu",
136+
};
137+
132138
static struct platform_device *platform_devs[] __initdata = {
133139
&u8500_dma40_device,
134140
&db8500_pmu_device,
141+
&db8500_prcmu_device,
135142
};
136143

137144
static resource_size_t __initdata db8500_gpio_base[] = {

‎arch/arm/mach-ux500/cpu.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <linux/platform_device.h>
99
#include <linux/io.h>
1010
#include <linux/clk.h>
11+
#include <linux/mfd/db8500-prcmu.h>
12+
#include <linux/mfd/db5500-prcmu.h>
1113

1214
#include <asm/cacheflush.h>
1315
#include <asm/hardware/cache-l2x0.h>
@@ -19,10 +21,11 @@
1921
#include <mach/hardware.h>
2022
#include <mach/setup.h>
2123
#include <mach/devices.h>
22-
#include <mach/prcmu.h>
2324

2425
#include "clock.h"
2526

27+
void __iomem *_PRCMU_BASE;
28+
2629
#ifdef CONFIG_CACHE_L2X0
2730
static void __iomem *l2x0_base;
2831
#endif
@@ -47,6 +50,8 @@ void __init ux500_init_irq(void)
4750
* Init clocks here so that they are available for system timer
4851
* initialization.
4952
*/
53+
if (cpu_is_u5500())
54+
db5500_prcmu_early_init();
5055
if (cpu_is_u8500())
5156
prcmu_early_init();
5257
clk_init();

‎arch/arm/mach-ux500/cpufreq.c‎

Lines changed: 0 additions & 211 deletions
This file was deleted.

‎arch/arm/mach-ux500/include/mach/db5500-regs.h‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#define U5500_GIC_DIST_BASE 0xA0411000
1818
#define U5500_GIC_CPU_BASE 0xA0410100
1919
#define U5500_DMA_BASE 0x90030000
20+
#define U5500_STM_BASE 0x90020000
21+
#define U5500_STM_REG_BASE (U5500_STM_BASE + 0xF000)
2022
#define U5500_MCDE_BASE 0xA0400000
2123
#define U5500_MODEM_BASE 0xB0000000
2224
#define U5500_L2CC_BASE 0xA0412000
@@ -29,7 +31,9 @@
2931
#define U5500_NAND0_BASE 0x60000000
3032
#define U5500_NAND1_BASE 0x70000000
3133
#define U5500_TWD_BASE 0xa0410600
34+
#define U5500_ICN_BASE 0xA0040000
3235
#define U5500_B2R2_BASE 0xa0200000
36+
#define U5500_BOOT_ROM_BASE 0x90000000
3337

3438
#define U5500_FSMC_BASE (U5500_PER1_BASE + 0x0000)
3539
#define U5500_SDI0_BASE (U5500_PER1_BASE + 0x1000)
@@ -60,6 +64,7 @@
6064
#define U5500_MSP1_BASE (U5500_PER4_BASE + 0x9000)
6165
#define U5500_GPIO2_BASE (U5500_PER4_BASE + 0xA000)
6266
#define U5500_CDETECT_BASE (U5500_PER4_BASE + 0xF000)
67+
#define U5500_PRCMU_TCDM_BASE (U5500_PER4_BASE + 0x18000)
6368

6469
#define U5500_SPI0_BASE (U5500_PER5_BASE + 0x0000)
6570
#define U5500_SPI1_BASE (U5500_PER5_BASE + 0x1000)
@@ -83,7 +88,7 @@
8388
#define U5500_HASH0_BASE (U5500_PER6_BASE + 0x1000)
8489
#define U5500_HASH1_BASE (U5500_PER6_BASE + 0x2000)
8590
#define U5500_PKA_BASE (U5500_PER6_BASE + 0x4000)
86-
#define U5500_PKAM_BASE (U5500_PER6_BASE + 0x5000)
91+
#define U5500_PKAM_BASE (U5500_PER6_BASE + 0x5100)
8792
#define U5500_MTU0_BASE (U5500_PER6_BASE + 0x6000)
8893
#define U5500_MTU1_BASE (U5500_PER6_BASE + 0x7000)
8994
#define U5500_CR_BASE (U5500_PER6_BASE + 0x8000)
@@ -114,8 +119,19 @@
114119
#define U5500_MBOX2_LOCAL_START (U5500_MBOX_BASE + 0x20)
115120
#define U5500_MBOX2_LOCAL_END (U5500_MBOX_BASE + 0x3F)
116121

117-
#define U5500_ESRAM_BASE 0x40000000
122+
#define U5500_ACCCON_BASE_SEC (0xBFFF0000)
123+
#define U5500_ACCCON_BASE (0xBFFF1000)
124+
#define U5500_ACCCON_CPUVEC_RESET_ADDR_OFFSET (0x00000020)
125+
#define U5500_ACCCON_ACC_CPU_CTRL_OFFSET (0x000000BC)
126+
127+
#define U5500_ESRAM_BASE 0x40000000
118128
#define U5500_ESRAM_DMA_LCPA_OFFSET 0x10000
119129
#define U5500_DMA_LCPA_BASE (U5500_ESRAM_BASE + U5500_ESRAM_DMA_LCPA_OFFSET)
120130

131+
#define U5500_MCDE_SIZE 0x1000
132+
#define U5500_DSI_LINK_SIZE 0x1000
133+
#define U5500_DSI_LINK_COUNT 0x2
134+
#define U5500_DSI_LINK1_BASE (U5500_MCDE_BASE + U5500_MCDE_SIZE)
135+
#define U5500_DSI_LINK2_BASE (U5500_DSI_LINK1_BASE + U5500_DSI_LINK_SIZE)
136+
121137
#endif

0 commit comments

Comments
 (0)