ARM: shmobile: Remove legacy memory bits
Magnus Damm
maintainercover ARM: shmobile: Remove legacy memory bits
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable ARM_PATCH_PHYS_VIRT [PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Remove mach/memory.h
Now when all users are gone this series removes the legacy memory code and enables CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:
[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use virt_to_phys() [PATCH 00/06] ARM: shmobile: SMP virt_to_phys() conversion [PATCH 00/02] ARM: shmobile: romImage update
The romImage series above still needs to be updated.
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for ARCH_MULTIPLATFORM.
---
Written against renesas.git renesas-next-20130607
arch/arm/Kconfig | 2 - arch/arm/mach-shmobile/Kconfig | 31 -------------------------- arch/arm/mach-shmobile/include/mach/memory.h | 7 ----- 3 files changed, 1 insertion(+), 39 deletions(-)
cover ARM: shmobile: Remove legacy memory bits
Hi Magnus,
Quoted 14 lines · On Monday 10 June 2013 18:46:38 Magnus Damm wrote:
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable
ARM_PATCH_PHYS_VIRT[PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Removemach/memory.hNow when all users are gone this series removes the legacy memory code and enables
CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use
virt_to_phys()[PATCH 00/06] ARM: shmobile: SMPvirt_to_phys()conversion [PATCH 00/02] ARM: shmobile: romImage update
Quoted 6 lines
The romImage series above still needs to be updated.
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for
ARCH_MULTIPLATFORM.Signed-off-by Magnus Damm <[email protected]>
I'm very happy to see CONFIG_MEMORY_START|SIZE go, thanks a lot for your work.
Signature · 3 lines
Regards, Laurent Pinchart
Magnus Damm
maintainerPATCH 1/3 ARM: shmobile: Enable ARM_PATCH_PHYS_VIRT
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Adjust mach-shmobile to add a select for CONFIG_ARM_PATCH_PHYS_VIRT and at the same time remove NEED_MACH_MEMORY_H.
---
arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
@@ -634,6 +634,7 @@ config ARCH_MSM config ARCH_SHMOBILE bool "Renesas SH-Mobile / R-Mobile" + select ARM_PATCH_PHYS_VIRT select CLKDEV_LOOKUP select GENERIC_CLOCKEVENTS select HAVE_ARM_SCU if SMP
@@ -643,7 +644,6 @@ config ARCH_SHMOBILE select HAVE_SMP select MIGHT_HAVE_CACHE_L2X0 select MULTI_IRQ_HANDLER - select NEED_MACH_MEMORY_H select NO_IOPORT select PINCTRL if ARCH_WANT_OPTIONAL_GPIOLIB select PM_GENERIC_DOMAINS if PM
Magnus Damm
maintainerPATCH 2/3 ARM: shmobile: Remove MEMORY_START/SIZE
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Remove CONFIG_MEMORY_START and CONFIG_MEMORY_SIZE from mach-shmobile.
Boards should use DT to specify their memory setup. Boards that still not support DT may pass ATAGS with memory information from the boot loader. If those ATAGS turn out to be incorrect then appended DTB with memory information should be used as a workaround.
---
arch/arm/mach-shmobile/Kconfig | 31 ------------------------------- 1 file changed, 31 deletions(-)
arch/arm/mach-shmobile/Kconfig +0 -31
@@ -199,37 +199,6 @@ config CPU_HAS_INTEVT bool default y -menu "Memory configuration" - -config MEMORY_START - hex "Physical memory start address" - default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \ - MACH_MACKEREL || MACH_BONITO || \ - MACH_ARMADILLO800EVA || MACH_APE6EVM || \ - MACH_LAGER - default "0x41000000" if MACH_KOTA2 - default "0x00000000" - ---help--- - Tweak this only when porting to a new machine which does not - already have a defconfig. Changing it from the known correct - value on any of the known systems will only lead to disaster. - -config MEMORY_SIZE - hex "Physical memory size" - default "0x80000000" if MACH_LAGER - default "0x40000000" if MACH_APE6EVM - default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \ - MACH_ARMADILLO800EVA - default "0x1e000000" if MACH_KOTA2 - default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL - default "0x04000000" - help - This sets the default memory size assumed by your kernel. It can - be overridden as normal by the 'mem=' argument on the kernel command - line. - -endmenu - menu "Timer and clock configuration" config SHMOBILE_TIMER_HZ
Magnus Damm
maintainerPATCH 3/3 ARM: shmobile: Remove mach/memory.h
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Remove mach-shmobile memory.h since it is no longer needed.
---
arch/arm/mach-shmobile/include/mach/memory.h | 7 ------- 1 file changed, 7 deletions(-)
arch/arm/mach-shmobile/include/mach/memory.h deleted +0 -7
@@ -1,7 +0,0 @@ -#ifndef __ASM_MACH_MEMORY_H -#define __ASM_MACH_MEMORY_H - -#define PLAT_PHYS_OFFSET UL(CONFIG_MEMORY_START) -#define MEM_SIZE UL(CONFIG_MEMORY_SIZE) - -#endif /* __ASM_MACH_MEMORY_H */
cover ARM: shmobile: Remove legacy memory bits
In reply to Magnus DammQuoted 14 lines · Magnus Damm
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable
ARM_PATCH_PHYS_VIRT[PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Removemach/memory.hNow when all users are gone this series removes the legacy memory code and enables
CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use
virt_to_phys()[PATCH 00/06] ARM: shmobile: SMPvirt_to_phys()conversion [PATCH 00/02] ARM: shmobile: romImage update
Quoted 6 lines
The romImage series above still needs to be updated.
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for
ARCH_MULTIPLATFORM.Signed-off-by Magnus Damm <[email protected]>
Looks all good to me.
Arnd
cover ARM: shmobile: Remove legacy memory bits
Quoted 15 lines · Arnd Bergmann
Quoted 14 lines · Magnus Damm
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable
ARM_PATCH_PHYS_VIRT[PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Removemach/memory.hNow when all users are gone this series removes the legacy memory code and enables
CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use
virt_to_phys()[PATCH 00/06] ARM: shmobile: SMPvirt_to_phys()conversion [PATCH 00/02] ARM: shmobile: romImage update
Quoted 8 lines
Quoted 6 lines
The romImage series above still needs to be updated.
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for
ARCH_MULTIPLATFORM.Signed-off-by Magnus Damm <[email protected]>Looks all good to me.
I will queue these up once all the dependencies are ready.
Magnus Damm
maintainercover ARM: shmobile: Remove legacy memory bits
Hi Simon,
Quoted 18 lines · Simon Horman
Quoted 17 lines · Arnd Bergmann
Quoted 16 lines · Magnus Damm
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable
ARM_PATCH_PHYS_VIRT[PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Removemach/memory.hNow when all users are gone this series removes the legacy memory code and enables
CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use
virt_to_phys()[PATCH 00/06] ARM: shmobile: SMPvirt_to_phys()conversion [PATCH 00/02] ARM: shmobile: romImage updateThe romImage series above still needs to be updated.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for
ARCH_MULTIPLATFORM.Signed-off-by Magnus Damm <[email protected]>Looks all good to me.
I will queue these up once all the dependencies are ready.
Thanks, I believe they are now.
I will update the Mackerel romImage support as an incremental patch.
Cheers,
/ magnus
cover ARM: shmobile: Remove legacy memory bits
Quoted 26 lines · Magnus Damm
Hi Simon,
Quoted 23 lines · Simon Horman
Quoted 22 lines · Arnd Bergmann
Quoted 20 lines · Magnus Damm
ARM: shmobile: Remove legacy memory bits
[PATCH 01/03] ARM: shmobile: Enable
ARM_PATCH_PHYS_VIRT[PATCH 02/03] ARM: shmobile: Remove MEMORY_START/SIZE [PATCH 03/03] ARM: shmobile: Removemach/memory.hNow when all users are gone this series removes the legacy memory code and enables
CONFIG_ARM_PATCH_PHYS_VIRT. Depends on the following code:[PATCH v2] ARM: shmobile: uImage load address rework [PATCH] ARM: shmobile: Rework sh7372 sleep code to use
virt_to_phys()[PATCH 00/06] ARM: shmobile: SMPvirt_to_phys()conversion [PATCH 00/02] ARM: shmobile: romImage updateThe romImage series above still needs to be updated.
This is the final bit of code not to rely on CONFIG_MEMORY_START/SIZE which in turn is one component that we need for
ARCH_MULTIPLATFORM.Signed-off-by Magnus Damm <[email protected]>
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Looks all good to me.
I will queue these up once all the dependencies are ready.
Thanks, I believe they are now.
I will update the Mackerel romImage support as an incremental patch.
Thanks, I have this and the dependencies queued up locally. I will push them after doing some build and boot tests.