Skip to content

Commit 9bc128e

Browse files
committed
Merge tag 'ux500-multiplatform-asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/multiplatform
From Linus Walleij <linus.walleij@linaro.org>: Ux500 multiplatform support. This tag builds upon the MFD-specific base tag "ux500-multiplatform-mfd". This removes all <mach/*> dependencies and makes the ux500 fully multi-platform. * tag 'ux500-multiplatform-asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: ARM: ux500: build hotplug.o for ARMv7-a ARM: ux500: move to multiplatform ARM: ux500: make remaining headers local ARM: ux500: make irqs.h local to platform ARM: ux500: get rid of <mach/[hardware|db8500-regs].h> staging: ste_rmi4: kill platform_data hack ARM: ux500: move mach/msp.h to <linux/platform_data/*> clk: ux500: pass clock base adresses in init call ARM: ux500: make debug macro stand-alone ARM: ux500: move debugmacro to debug includes ARM: ux500: split out prcmu initialization mfd: db8500-prcmu: drop unused includes ARM: ux500: move PM-related PRCMU functions to machine mfd: db8500-prcmu: get base address from resource mfd: prcmu: pass a base and size with the early initcall Conflicts: arch/arm/Kconfig Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 835f9c3 + f6f1bda commit 9bc128e

57 files changed

Lines changed: 699 additions & 766 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/Kconfig‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -853,22 +853,6 @@ config ARCH_U300
853853
help
854854
Support for ST-Ericsson U300 series mobile platforms.
855855

856-
config ARCH_U8500
857-
bool "ST-Ericsson U8500 Series"
858-
depends on MMU
859-
select ARCH_HAS_CPUFREQ
860-
select ARCH_REQUIRE_GPIOLIB
861-
select ARM_AMBA
862-
select CLKDEV_LOOKUP
863-
select CPU_V7
864-
select GENERIC_CLOCKEVENTS
865-
select HAVE_SMP
866-
select MIGHT_HAVE_CACHE_L2X0
867-
select SPARSE_IRQ
868-
help
869-
Support for ST-Ericsson's Ux500 architecture
870-
871-
872856
config ARCH_DAVINCI
873857
bool "TI DaVinci"
874858
select ARCH_HAS_HOLES_MEMORYMODEL

‎arch/arm/Kconfig.debug‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@ choice
432432
Say Y here if you want the debug print routines to direct
433433
their output to the uart1 port on SiRFmarco devices.
434434

435+
config DEBUG_UX500_UART
436+
depends on ARCH_U8500
437+
bool "Use Ux500 UART for low-level debug"
438+
help
439+
Say Y here if you want kernel low-level debugging support
440+
on Ux500 based platforms.
441+
435442
config DEBUG_VEXPRESS_UART0_DETECT
436443
bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
437444
depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -620,6 +627,7 @@ config DEBUG_LL_INCLUDE
620627
DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1
621628
default "debug/vt8500.S" if DEBUG_VT8500_UART0
622629
default "debug/tegra.S" if DEBUG_TEGRA_UART
630+
default "debug/ux500.S" if DEBUG_UX500_UART
623631
default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
624632
default "mach/debug-macro.S"
625633

‎arch/arm/include/debug/ux500.S‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Debugging macro include header
3+
*
4+
* Copyright (C) 2009 ST-Ericsson
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*
10+
*/
11+
12+
13+
#if CONFIG_UX500_DEBUG_UART > 2
14+
#error Invalid Ux500 debug UART
15+
#endif
16+
17+
/*
18+
* DEBUG_LL only works if only one SOC is built in. We don't use #else below
19+
* in order to get "__UX500_UART redefined" warnings if more than one SOC is
20+
* built, so that there's some hint during the build that something is wrong.
21+
*/
22+
23+
#ifdef CONFIG_UX500_SOC_DB8500
24+
#define U8500_UART0_PHYS_BASE (0x80120000)
25+
#define U8500_UART1_PHYS_BASE (0x80121000)
26+
#define U8500_UART2_PHYS_BASE (0x80007000)
27+
#define U8500_UART0_VIRT_BASE (0xa8120000)
28+
#define U8500_UART1_VIRT_BASE (0xa8121000)
29+
#define U8500_UART2_VIRT_BASE (0xa8007000)
30+
#define __UX500_PHYS_UART(n) U8500_UART##n##_PHYS_BASE
31+
#define __UX500_VIRT_UART(n) U8500_UART##n##_VIRT_BASE
32+
#endif
33+
34+
#if !defined(__UX500_PHYS_UART) || !defined(__UX500_VIRT_UART)
35+
#error Unknown SOC
36+
#endif
37+
38+
#define UX500_PHYS_UART(n) __UX500_PHYS_UART(n)
39+
#define UX500_VIRT_UART(n) __UX500_VIRT_UART(n)
40+
#define UART_PHYS_BASE UX500_PHYS_UART(CONFIG_UX500_DEBUG_UART)
41+
#define UART_VIRT_BASE UX500_VIRT_UART(CONFIG_UX500_DEBUG_UART)
42+
43+
.macro addruart, rp, rv, tmp
44+
ldr \rp, =UART_PHYS_BASE @ no, physical address
45+
ldr \rv, =UART_VIRT_BASE @ yes, virtual address
46+
.endm
47+
48+
#include <asm/hardware/debug-pl01x.S>

‎arch/arm/mach-ux500/Kconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
config ARCH_U8500
2+
bool "ST-Ericsson U8500 Series" if ARCH_MULTI_V7
3+
depends on MMU
4+
select ARCH_HAS_CPUFREQ
5+
select ARCH_REQUIRE_GPIOLIB
6+
select ARM_AMBA
7+
select CLKDEV_LOOKUP
8+
select CPU_V7
9+
select GENERIC_CLOCKEVENTS
10+
select HAVE_SMP
11+
select MIGHT_HAVE_CACHE_L2X0
12+
help
13+
Support for ST-Ericsson's Ux500 architecture
14+
115
if ARCH_U8500
216

317
config UX500_SOC_COMMON

‎arch/arm/mach-ux500/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
obj-y := cpu.o devices.o devices-common.o \
6-
id.o usb.o timer.o
6+
id.o usb.o timer.o pm.o
77
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
88
obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o
99
obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o
@@ -15,3 +15,5 @@ obj-$(CONFIG_MACH_MOP500) += board-mop500.o board-mop500-sdi.o \
1515
board-mop500-audio.o
1616
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
1717
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
18+
19+
CFLAGS_hotplug.o += -march=armv7-a

‎arch/arm/mach-ux500/board-mop500-audio.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
#include <linux/platform_data/pinctrl-nomadik.h>
1111
#include <linux/platform_data/dma-ste-dma40.h>
1212

13-
#include <mach/devices.h>
14-
#include <mach/hardware.h>
15-
#include <mach/irqs.h>
16-
#include <mach/msp.h>
13+
#include "devices.h"
14+
#include "irqs.h"
15+
#include <linux/platform_data/asoc-ux500-msp.h>
1716

1817
#include "ste-dma40-db8500.h"
1918
#include "board-mop500.h"

‎arch/arm/mach-ux500/board-mop500-pins.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
#include <asm/mach-types.h>
1515

16-
#include <mach/hardware.h>
17-
1816
#include "pins-db8500.h"
1917
#include "board-mop500.h"
2018

‎arch/arm/mach-ux500/board-mop500-sdi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include <linux/platform_data/dma-ste-dma40.h>
1515

1616
#include <asm/mach-types.h>
17-
#include <mach/devices.h>
18-
#include <mach/hardware.h>
17+
#include "devices.h"
1918

19+
#include "db8500-regs.h"
2020
#include "devices-db8500.h"
2121
#include "board-mop500.h"
2222
#include "ste-dma40-db8500.h"

‎arch/arm/mach-ux500/board-mop500-u8500uib.c‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
#include <linux/mfd/tc3589x.h>
1313
#include <linux/input/matrix_keypad.h>
1414

15-
#include <mach/irqs.h>
15+
#include "irqs.h"
1616

1717
#include "board-mop500.h"
1818

19-
/* Dummy data that can be overridden by staging driver */
20-
struct i2c_board_info __initdata __weak mop500_i2c3_devices_u8500[] = {
19+
static struct i2c_board_info __initdata mop500_i2c3_devices_u8500[] = {
20+
{
21+
I2C_BOARD_INFO("synaptics_rmi4_i2c", 0x4B),
22+
.irq = NOMADIK_GPIO_TO_IRQ(84),
23+
},
2124
};
2225

2326
/*

‎arch/arm/mach-ux500/board-mop500-uib.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <linux/init.h>
1212
#include <linux/i2c.h>
1313

14-
#include <mach/hardware.h>
1514
#include "board-mop500.h"
1615
#include "id.h"
1716

0 commit comments

Comments
 (0)