Renesas ARM Based SoC Marzen Board Removal for v4.3
Subsystems (6)
PATCH 1/9 ARM: shmobile: r8a7779: Generic CCF and timer support
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
Add a r8a7779-specific callback to initialize CCF and clocksources. With this in place we are one step closer to be able to use r8a7779 without C board code.
Also add a multiplatform wrapper to avoid breaking the r8a7779 marzen legacy case.
--- arch/arm/mach-shmobile/setup-r8a7779.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/mach-shmobile/setup-r8a7779.c +12 -0
@@ -14,6 +14,8 @@* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include <linux/clk/shmobile.h> +#include <linux/clocksource.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/interrupt.h>
@@ -756,6 +758,14 @@ u32 __init r8a7779_read_mode_pins(void)return mode; } +#ifdef CONFIG_ARCH_SHMOBILE_MULTI + +static void __init r8a7779_init_time (void ) +{ +r8a7779_clocks_init (r8a7779_read_mode_pins ()); +clocksource_of_init (); +} +static const char *r8a7779_compat_dt[]__initdata = {"renesas,r8a7779" , NULL,
@@ -764,8 +774,10 @@ static const char *r8a7779_compat_dt[] __initdata = {DT_MACHINE_START (R8A7779_DT ,"Generic R8A7779 (Flattened Device Tree)" ) .map_io = r8a7779_map_io, .init_early = shmobile_init_delay, + .init_time = r8a7779_init_time, .init_irq = r8a7779_init_irq_dt, .init_late = shmobile_init_late, .dt_compat = r8a7779_compat_dt, MACHINE_END +#endif /* CONFIG_ARCH_SHMOBILE_MULTI */ #endif /* CONFIG_USE_OF */
Signature · 1 line
2.1.4
PATCH 2/9 ARM: shmobile: r8a7779: Generic SMP ops
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
Add a r8a7779-specific SMP operation pointer to support all 4 CPU cores through SMP on r8a7779 without C board code.
--- arch/arm/mach-shmobile/setup-r8a7779.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-shmobile/setup-r8a7779.c +1 -0
@@ -772,6 +772,7 @@ static const char *r8a7779_compat_dt[] __initdata = { };DT_MACHINE_START (R8A7779_DT ,"Generic R8A7779 (Flattened Device Tree)" ) + .smp = smp_ops(r8a7779_smp_ops), .map_io = r8a7779_map_io, .init_early = shmobile_init_delay, .init_time = r8a7779_init_time,
Signature · 1 line
2.1.4
PATCH 3/9 ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig
In reply to Simon HormanThis is selected by MACH_MARZEN which is enabled in shmobile_defconfig, however, MACH_MARZEN is going away along with the board code it enables.
--- arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/shmobile_defconfig +1 -0
@@ -121,6 +121,7 @@ CONFIG_WATCHDOG=y CONFIG_DA9063_WATCHDOG=y CONFIG_MFD_AS3711=y CONFIG_MFD_DA9063=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_DA9210=y CONFIG_REGULATOR_GPIO=y
Signature · 1 line
2.1.4
PATCH 4/9 ARM: shmobile: marzen-reference: Remove C board code
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
The generic r8a7779 machine vector is now feature-wise equivalent to the Marzen-reference case, so simply remove the Marzen C board code to fall over on the generic r8a7779 machine vector.
--- arch/arm/mach-shmobile/Kconfig | 7 ---- arch/arm/mach-shmobile/Makefile | 4 +- arch/arm/mach-shmobile/board-marzen-reference.c | 56 ------------------------- 3 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 arch/arm/mach-shmobile/board-marzen-reference.c
arch/arm/mach-shmobile/Kconfig +0 -7
@@ -89,13 +89,6 @@ config ARCH_SH73A0 select ARCH_RMOBILE select RENESAS_INTC_IRQPIN -comment "Renesas ARM SoCs Board Type" - -config MACH_MARZEN - bool "MARZEN board" - depends on ARCH_R8A7779 - select REGULATOR_FIXED_VOLTAGE if REGULATOR - comment "Renesas ARM SoCs System Configuration" endif
arch/arm/mach-shmobile/Makefile +1 -3
@@ -51,9 +51,7 @@ obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o # Board objects -ifdef CONFIG_ARCH_SHMOBILE_MULTI -obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o -else +ifndef CONFIG_ARCH_SHMOBILE_MULTI obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
arch/arm/mach-shmobile/board-marzen-reference.c deleted +0 -56
56 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 5/9 ARM: shmobile: r8a7779: Cleanup header file
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
Remove unused function prototypes from r8a7779.h and make the functions static.
--- arch/arm/mach-shmobile/clock-r8a7779.c | 2 +- arch/arm/mach-shmobile/r8a7779.h | 2 -- arch/arm/mach-shmobile/setup-r8a7779.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-)
arch/arm/mach-shmobile/clock-r8a7779.c +1 -1
@@ -201,7 +201,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("rcar-du-r8a7779", &mstp_clks[MSTP103]), /* DU */ }; -void __init r8a7779_clock_init (void ) +static void __init r8a7779_clock_init (void ) {u32 mode =r8a7779_read_mode_pins ();int k, ret =0 ;
arch/arm/mach-shmobile/r8a7779.h +0 -2
@@ -11,7 +11,6 @@ enum { };extern void r8a7779_init_irq_extpin (int irlm); -extern void r8a7779_init_irq_extpin_dt (int irlm);extern void r8a7779_init_irq_dt (void );extern void r8a7779_map_io (void );extern void r8a7779_earlytimer_init (void );
@@ -19,7 +18,6 @@ extern void r8a7779_add_early_devices(void);extern void r8a7779_add_standard_devices (void );extern void r8a7779_init_late (void );extern u32 r8a7779_read_mode_pins (void ); -extern void r8a7779_clock_init (void );extern void r8a7779_pinmux_init (void );extern void r8a7779_pm_init (void );extern void r8a7779_register_twd (void );
arch/arm/mach-shmobile/setup-r8a7779.c +1 -1
@@ -99,7 +99,7 @@ static struct resource irqpin0_resources[] __initdata = { DEFINE_RES_IRQ(gic_spi(30)), /* IRQ3 */ }; -void __init r8a7779_init_irq_extpin_dt (int irlm) +static void __init r8a7779_init_irq_extpin_dt (int irlm) {void __iomem *icr0 =ioremap_nocache (0xfe780000 ,PAGE_SIZE );u32 tmp;
Signature · 1 line
2.1.4
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these Renesas ARM based SoC marzen board removal for v4.3.
This series removes legacy r8a7779 SoC and marzen board code. It does so in a way that does not introduce feature regressions when when booting the r8a7779/marzen board using shmobile_defconfig, which provides for booting using multiplatform, a scenario which previously used board code to provide some features including SMP.
Because of the above this series modifies SoC and DT files, and then removes code. And because of that it was not entirely clear to me which branch it should go into, so I have provided it in a stand-alone branch.
Unfortunately this branch has a number of minor conflicts with the "Renesas ARM Based SoC Cleanup for v4.3", tagged as renesas-cleanup-for-v4.3, which you have previously pulled.
A resolution to those conflicts can be found in the renesas-next-20150724-v4.2-rc1 tag of the renesas tree.
I would be happy to rebase these patches on top of renesas-cleanup-for-v4.3 and resubmit a conflict-free pull request if you like.
On a more positive note, I believe this to well over 8000 lines of legacy code removed in this cycle :)
The following changes since commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754:
Linux 4.2-rc1 (2015-07-05 11:01:52 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-marzen-board-removal-for-v4.3
for you to fetch changes up to 3fecc170e5b7b141a2db6c8bc40607fb323c3aa2:
ARM: shmobile: r8a7779: Remove legacy SoC code (2015-07-17 10:34:51 +0900)
----------------------------------------------------------------
Renesas ARM Based SoC Marzen Board Removal for v4.3
* Remove legacy r8a7779 SoC code
* Remove legacy marzen board code
3fecc170e5b7 ARM: shmobile: r8a7779: Remove legacy SoC code 9d35777f2b96 ARM: shmobile: marzen: Remove legacy board code 8dd80b6d7c5b ARM: multi_v7_defconfig: Remove Marzen824fd0fb7daa ARM: shmobile: Remove Marzen from shmobile_defconfig a73e4d95da66 ARM: shmobile: r8a7779: Cleanup header file d2fb6bdaffc7 ARM: shmobile: marzen-reference: Remove C board code 719074d8b220 ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig 44ade5edf90c ARM: shmobile: r8a7779: Generic SMP ops131c2e0480b0 ARM: shmobile: r8a7779: Generic CCF and timer support
----------------------------------------------------------------
Magnus Damm (7):
ARM: shmobile: r8a7779: Generic CCF and timer support
ARM: shmobile: r8a7779: Generic SMP ops
ARM: shmobile: marzen-reference: Remove C board code
ARM: shmobile: r8a7779: Cleanup header file
ARM: shmobile: Remove Marzen from shmobile_defconfig
ARM: shmobile: marzen: Remove legacy board code
ARM: shmobile: r8a7779: Remove legacy SoC code
Simon Horman (2):
ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig
ARM: multi_v7_defconfig: Remove Marzen
arch/arm/boot/dts/Makefile | 1 - arch/arm/configs/multi_v7_defconfig | 1 - arch/arm/configs/shmobile_defconfig | 2 +- arch/arm/mach-shmobile/Kconfig | 14 - arch/arm/mach-shmobile/Makefile | 6 +- arch/arm/mach-shmobile/Makefile.boot | 1 - arch/arm/mach-shmobile/board-marzen-reference.c | 56 -- arch/arm/mach-shmobile/board-marzen.c | 347 ------------ arch/arm/mach-shmobile/clock-r8a7779.c | 271 ---------- arch/arm/mach-shmobile/r8a7779.h | 19 - arch/arm/mach-shmobile/setup-r8a7779.c | 681 +----------------------- arch/arm/mach-shmobile/smp-r8a7779.c | 9 - 12 files changed, 16 insertions(+), 1392 deletions(-) delete mode 100644 arch/arm/mach-shmobile/board-marzen-reference.c delete mode 100644 arch/arm/mach-shmobile/board-marzen.c delete mode 100644 arch/arm/mach-shmobile/clock-r8a7779.c
PATCH 6/9 ARM: shmobile: Remove Marzen from shmobile_defconfig
From: Magnus Damm <[email protected]>
Kill of the defconfig bits now when the marzen-reference board code is gone.
--- arch/arm/configs/shmobile_defconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/configs/shmobile_defconfig +0 -1
@@ -20,7 +20,6 @@ CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y -CONFIG_MACH_MARZEN=y CONFIG_CPU_BPREDICT_DISABLE=y CONFIG_PL310_ERRATA_588369=y CONFIG_ARM_ERRATA_754322=y
Signature · 1 line
2.1.4
PATCH 7/9 ARM: multi_v7_defconfig: Remove Marzen
In reply to Simon HormanKill of the defconfig bits now when the marzen-reference board code is gone.
Based on work by Magnus Damm.
--- arch/arm/configs/multi_v7_defconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/configs/multi_v7_defconfig +0 -1
@@ -82,7 +82,6 @@ CONFIG_ARCH_R8A7790=y CONFIG_ARCH_R8A7791=y CONFIG_ARCH_R8A7794=y CONFIG_ARCH_SH73A0=y -CONFIG_MACH_MARZEN=y CONFIG_ARCH_SUNXI=y CONFIG_ARCH_SIRF=y CONFIG_ARCH_TEGRA=y
Signature · 1 line
2.1.4
PATCH 8/9 ARM: shmobile: marzen: Remove legacy board code
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
Remove Marzen legacy board code written in C. Instead board support expressed in DT shall be used together with Multiplatform and shmobile_defconfig.
--- arch/arm/boot/dts/Makefile | 1 - arch/arm/mach-shmobile/Kconfig | 7 - arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/Makefile.boot | 1 - arch/arm/mach-shmobile/board-marzen.c | 347 ---------------------------------- 5 files changed, 357 deletions(-) delete mode 100644 arch/arm/mach-shmobile/board-marzen.c
arch/arm/boot/dts/Makefile +0 -1
@@ -504,7 +504,6 @@ dtb-$(CONFIG_ARCH_SHMOBILE_LEGACY) += \ r8a7740-armadillo800eva.dtb \ r8a7778-bockw.dtb \ r8a7778-bockw-reference.dtb \ - r8a7779-marzen.dtb \ sh73a0-kzm9g.dtb dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ emev2-kzm9d.dtb \
arch/arm/mach-shmobile/Kconfig +0 -7
@@ -157,13 +157,6 @@ config MACH_BOCKW_REFERENCE This is intended to aid developers -config MACH_MARZEN - bool "MARZEN board" - depends on ARCH_R8A7779 - select ARCH_REQUIRE_GPIOLIB - select REGULATOR_FIXED_VOLTAGE if REGULATOR - select USE_OF - config MACH_KZM9G bool "KZM-A9-GT board" depends on ARCH_SH73A0
arch/arm/mach-shmobile/Makefile +0 -1
@@ -54,7 +54,6 @@ obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o ifndef CONFIG_ARCH_SHMOBILE_MULTI obj-$(CONFIG_MACH_BOCKW) += board-bockw.o obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o -obj-$(CONFIG_MACH_MARZEN) += board-marzen.o obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o intc-sh73a0.o endif
arch/arm/mach-shmobile/Makefile.boot +0 -1
@@ -4,7 +4,6 @@ loadaddr-$(CONFIG_MACH_ARMADILLO800EVA) += 0x40008000 loadaddr-$(CONFIG_MACH_BOCKW) += 0x60008000 loadaddr-$(CONFIG_MACH_BOCKW_REFERENCE) += 0x60008000 loadaddr-$(CONFIG_MACH_KZM9G) += 0x41008000 -loadaddr-$(CONFIG_MACH_MARZEN) += 0x60008000 __ZRELADDR := $(sort $(loadaddr-y)) zreladdr-y += $(__ZRELADDR)
arch/arm/mach-shmobile/board-marzen.c deleted +0 -347
347 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 9/9 ARM: shmobile: r8a7779: Remove legacy SoC code
In reply to Simon HormanFrom: Magnus Damm <[email protected]>
Now when the Marzen legacy board code is gone this patch removes the unused r8a7779 legacy SoC code.
--- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/clock-r8a7779.c | 271 ------------- arch/arm/mach-shmobile/r8a7779.h | 17 - arch/arm/mach-shmobile/setup-r8a7779.c | 674 +-------------------------------- arch/arm/mach-shmobile/smp-r8a7779.c | 9 - 5 files changed, 4 insertions(+), 968 deletions(-) delete mode 100644 arch/arm/mach-shmobile/clock-r8a7779.c
arch/arm/mach-shmobile/Makefile +0 -1
@@ -23,7 +23,6 @@ obj-y += clock.o obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o -obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o endif # CPU reset vector handling objects
arch/arm/mach-shmobile/clock-r8a7779.c deleted +0 -271
271 lines not on this page · raw message
arch/arm/mach-shmobile/r8a7779.h +0 -17
@@ -3,24 +3,7 @@#include <linux/sh_clk.h> -/* HPB-DMA slave IDs */ -enum { -HPBDMA_SLAVE_DUMMY , -HPBDMA_SLAVE_SDHI0_TX , -HPBDMA_SLAVE_SDHI0_RX , -}; - -extern void r8a7779_init_irq_extpin (int irlm); -extern void r8a7779_init_irq_dt (void ); -extern void r8a7779_map_io (void ); -extern void r8a7779_earlytimer_init (void ); -extern void r8a7779_add_early_devices (void ); -extern void r8a7779_add_standard_devices (void ); -extern void r8a7779_init_late (void ); -extern u32 r8a7779_read_mode_pins (void ); -extern void r8a7779_pinmux_init (void );extern void r8a7779_pm_init (void ); -extern void r8a7779_register_twd (void );#ifdef CONFIG_PM extern void __init r8a7779_init_pm_domains (void );
arch/arm/mach-shmobile/setup-r8a7779.c +4 -670
720 lines not on this page · raw message
arch/arm/mach-shmobile/smp-r8a7779.c +0 -9
@@ -23,7 +23,6 @@#include <asm/cacheflush.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> -#include <asm/smp_twd.h> #include "common.h" #include "pm-rcar.h"
@@ -56,14 +55,6 @@ static struct rcar_sysc_ch *r8a7779_ch_cpu[4] = { [3] = &r8a7779_ch_cpu3, }; -#if defined(CONFIG_HAVE_ARM_TWD ) && !defined(CONFIG_ARCH_MULTIPLATFORM ) -static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, R8A7779_SCU_BASE + 0x600, 29); -void __init r8a7779_register_twd (void ) -{ -twd_local_timer_register (&twd_local_timer); -} -#endif -static int r8a7779_platform_cpu_kill (unsigned int cpu) {struct rcar_sysc_ch *ch =NULL ;
Signature · 1 line
2.1.4
Quoted 19 lines · Simon Horman
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these Renesas ARM based SoC marzen board removal for v4.3.
This series removes legacy r8a7779 SoC and marzen board code. It does so in a way that does not introduce feature regressions when when booting the r8a7779/marzen board using
shmobile_defconfig, which provides for booting using multiplatform, a scenario which previously used board code to provide some features including SMP.Because of the above this series modifies SoC and DT files, and then removes code. And because of that it was not entirely clear to me which branch it should go into, so I have provided it in a stand-alone branch.
Unfortunately this branch has a number of minor conflicts with the "Renesas ARM Based SoC Cleanup for v4.3", tagged as renesas-cleanup-for-v4.3, which you have previously pulled.
Quoted 8 lines
A resolution to those conflicts can be found in the renesas-next-20150724-v4.2-rc1 tag of the renesas tree.
I would be happy to rebase these patches on top of renesas-cleanup-for-v4.3 and resubmit a conflict-free pull request if you like.
On a more positive note, I believe this to well over 8000 lines of legacy code removed in this cycle :)
Organization is OK since the additions were small. If there were more additions needed, doing the enablement one release and removing the legacy code the release after would make more sense. But here that's fine.
The only thing I'd like to see different is to please send the defconfig updates separately. They just take out no-longer-existent entries anyway, so the series should do fine without them here.
So, please respin without the defconfig updates and provide them separately, if you want to avoid bisectability problems just do them next release.
-Olof
Hi Olof,
Quoted 33 lines · Olof Johansson
Quoted 19 lines · Simon Horman
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these Renesas ARM based SoC marzen board removal for v4.3.
This series removes legacy r8a7779 SoC and marzen board code. It does so in a way that does not introduce feature regressions when when booting the r8a7779/marzen board using
shmobile_defconfig, which provides for booting using multiplatform, a scenario which previously used board code to provide some features including SMP.Because of the above this series modifies SoC and DT files, and then removes code. And because of that it was not entirely clear to me which branch it should go into, so I have provided it in a stand-alone branch.
Unfortunately this branch has a number of minor conflicts with the "Renesas ARM Based SoC Cleanup for v4.3", tagged as renesas-cleanup-for-v4.3, which you have previously pulled.
Quoted 8 lines
A resolution to those conflicts can be found in the renesas-next-20150724-v4.2-rc1 tag of the renesas tree.
I would be happy to rebase these patches on top of renesas-cleanup-for-v4.3 and resubmit a conflict-free pull request if you like.
On a more positive note, I believe this to well over 8000 lines of legacy code removed in this cycle :)
Organization is OK since the additions were small. If there were more additions needed, doing the enablement one release and removing the legacy code the release after would make more sense. But here that's fine.
Quoted 7 lines
The only thing I'd like to see different is to please send the defconfig updates separately. They just take out no-longer-existent entries anyway, so the series should do fine without them here.
So, please respin without the defconfig updates and provide them separately, if you want to avoid bisectability problems just do them next release.
Understood.
I am fine with breaking out the following, most likely deferring them to the next release as I am concerned about bisectability:
* ARM: multi_v7_defconfig: Remove Marzen
* ARM: shmobile: Remove Marzen from shmobile_defconfig
There is another defconfig change, which I will resubmit in the defconfig branch for this release.
* ARM: shmobile: Enable fixed voltage regulator in shmobile_defconfig
Without the above a number of devices do not function.