Skip to content

Commit e7f274d

Browse files
committed
Merge tag 'mvebu-soc-3.15-3' of git://git.infradead.org/linux-mvebu into next/soc
Merge "mvebu soc changes for v3.15 (incremental #3)" from Jason Cooper: - dove - move devicetree code from mach-dove/ to mach-mvebu/ :-) * tag 'mvebu-soc-3.15-3' of git://git.infradead.org/linux-mvebu: ARM: mvebu: move DT Dove to MVEBU Signed-off-by: Arnd Bergmann <[email protected]>
2 parents d4324ce + 00e8ec2 commit e7f274d

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \
5555
berlin2cd-google-chromecast.dtb
5656
dtb-$(CONFIG_ARCH_DAVINCI) += da850-enbw-cmc.dtb \
5757
da850-evm.dtb
58-
dtb-$(CONFIG_ARCH_DOVE) += dove-cm-a510.dtb \
58+
dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \
5959
dove-cubox.dtb \
6060
dove-d2plug.dtb \
6161
dove-d3plug.dtb \

arch/arm/mach-dove/Kconfig

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ config MACH_CM_A510
2020
Say 'Y' here if you want your kernel to support the
2121
CompuLab CM-A510 Board.
2222

23-
config MACH_DOVE_DT
24-
bool "Marvell Dove Flattened Device Tree"
25-
select DOVE_CLK
26-
select ORION_IRQCHIP
27-
select ORION_TIMER
28-
select REGULATOR
29-
select REGULATOR_FIXED_VOLTAGE
30-
select USE_OF
31-
help
32-
Say 'Y' here if you want your kernel to support the
33-
Marvell Dove using flattened device tree.
34-
3523
endmenu
3624

3725
endif

arch/arm/mach-dove/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ obj-y += common.o
22
obj-$(CONFIG_DOVE_LEGACY) += irq.o mpp.o
33
obj-$(CONFIG_PCI) += pcie.o
44
obj-$(CONFIG_MACH_DOVE_DB) += dove-db-setup.o
5-
obj-$(CONFIG_MACH_DOVE_DT) += board-dt.o
65
obj-$(CONFIG_MACH_CM_A510) += cm-a510.o

arch/arm/mach-mvebu/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ config MACH_ARMADA_XP
6969
Say 'Y' here if you want your kernel to support boards based
7070
on the Marvell Armada XP SoC with device tree.
7171

72+
config MACH_DOVE
73+
bool "Marvell Dove boards" if ARCH_MULTI_V7
74+
select CACHE_L2X0
75+
select CPU_PJ4
76+
select DOVE_CLK
77+
select ORION_IRQCHIP
78+
select ORION_TIMER
79+
select PINCTRL_DOVE
80+
help
81+
Say 'Y' here if you want your kernel to support the
82+
Marvell Dove using flattened device tree.
83+
7284
config MACH_KIRKWOOD
7385
bool "Marvell Kirkwood boards" if ARCH_MULTI_V5
7486
select ARCH_HAS_CPUFREQ

arch/arm/mach-mvebu/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ AFLAGS_coherency_ll.o := -Wa,-march=armv7-a
55

66
obj-y += system-controller.o mvebu-soc-id.o
77
obj-$(CONFIG_MACH_MVEBU_V7) += board-v7.o
8+
obj-$(CONFIG_MACH_DOVE) += dove.o
89
obj-$(CONFIG_ARCH_MVEBU) += coherency.o coherency_ll.o pmsu.o
910
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
1011
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* arch/arm/mach-dove/board-dt.c
2+
* arch/arm/mach-mvebu/dove.c
33
*
44
* Marvell Dove 88AP510 System On Chip FDT Board
55
*
@@ -9,17 +9,14 @@
99
*/
1010

1111
#include <linux/init.h>
12-
#include <linux/clk-provider.h>
12+
#include <linux/mbus.h>
1313
#include <linux/of.h>
1414
#include <linux/of_platform.h>
1515
#include <asm/hardware/cache-tauros2.h>
1616
#include <asm/mach/arch.h>
17-
#include <mach/dove.h>
18-
#include <mach/pm.h>
19-
#include <plat/common.h>
2017
#include "common.h"
2118

22-
static void __init dove_dt_init(void)
19+
static void __init dove_init(void)
2320
{
2421
pr_info("Dove 88AP510 SoC\n");
2522

@@ -30,14 +27,13 @@ static void __init dove_dt_init(void)
3027
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
3128
}
3229

33-
static const char * const dove_dt_board_compat[] = {
30+
static const char * const dove_dt_compat[] = {
3431
"marvell,dove",
3532
NULL
3633
};
3734

38-
DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
39-
.map_io = dove_map_io,
40-
.init_machine = dove_dt_init,
41-
.restart = dove_restart,
42-
.dt_compat = dove_dt_board_compat,
35+
DT_MACHINE_START(DOVE_DT, "Marvell Dove")
36+
.init_machine = dove_init,
37+
.restart = mvebu_restart,
38+
.dt_compat = dove_dt_compat,
4339
MACHINE_END

0 commit comments

Comments
 (0)