Skip to content

Commit 00e8ec2

Browse files
shesselbaJason Cooper
authored and
Jason Cooper
committed
ARM: mvebu: move DT Dove to MVEBU
With all the DT support preparation done, we are able to move Dove to MVEBU easily. Legacy non-DT mach-dove is left untouched to rot for a while before removal. Signed-off-by: Sebastian Hesselbarth <[email protected]> Signed-off-by: Jason Cooper <[email protected]>
1 parent 0d75ab6 commit 00e8ec2

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
@@ -54,7 +54,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \
5454
berlin2cd-google-chromecast.dtb
5555
dtb-$(CONFIG_ARCH_DAVINCI) += da850-enbw-cmc.dtb \
5656
da850-evm.dtb
57-
dtb-$(CONFIG_ARCH_DOVE) += dove-cm-a510.dtb \
57+
dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \
5858
dove-cubox.dtb \
5959
dove-d2plug.dtb \
6060
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
@@ -75,6 +75,18 @@ config MACH_ARMADA_XP
7575
Say 'Y' here if you want your kernel to support boards based
7676
on the Marvell Armada XP SoC with device tree.
7777

78+
config MACH_DOVE
79+
bool "Marvell Dove boards" if ARCH_MULTI_V7
80+
select CACHE_L2X0
81+
select CPU_PJ4
82+
select DOVE_CLK
83+
select ORION_IRQCHIP
84+
select ORION_TIMER
85+
select PINCTRL_DOVE
86+
help
87+
Say 'Y' here if you want your kernel to support the
88+
Marvell Dove using flattened device tree.
89+
7890
config MACH_KIRKWOOD
7991
bool "Marvell Kirkwood boards" if ARCH_MULTI_V5
8092
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)