arm: make use of common scu_a9_get_base() interface
Subsystems (5)
v2 cover arm: make use of common scu_a9_get_base() interface
Commit e9d6b3358ac35901ccc6a4a5a317670fa469db25 adds common APIs to get scu base address from CP15. This patch series connverts some platforms to use that interface.
Jisheng Zhang (4):
arm: highbank: make use of common scu_a9_get_base() interface
arm: imx: make use of common scu_a9_get_base() interface
arm: prima2: make use of common scu_a9_get_base() interface
arm: socfgpa: make use of common scu_a9_get_base() interface
arch/arm/mach-highbank/highbank.c | 4 ++-- arch/arm/mach-imx/platsmp.c | 3 +-- arch/arm/mach-prima2/platsmp.c | 3 +-- arch/arm/mach-socfpga/socfpga.c | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.4.2
PATCH v2 1/4 arm: highbank: make use of common scu_a9_get_base() interface
Make use of common scu_a9_get_base() and delete the comment since the interface is self commented.
--- arch/arm/mach-highbank/highbank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-highbank/highbank.c +2 -2
@@ -29,6 +29,7 @@#include <asm/cacheflush.h> #include <asm/cputype.h> #include <asm/smp_plat.h> +#include <asm/smp_scu.h> #include <asm/hardware/cache-l2x0.h> #include <asm/mach/arch.h> #include <asm/mach/map.h>
@@ -43,8 +44,7 @@ static void __init highbank_scu_map_io(void) {unsigned long base; -/* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" :"=r" (base)); + base =scu_a9_get_base (); scu_base_addr =ioremap (base,SZ_4K ); }
Signature · 1 line
1.8.4.2
PATCH v2 2/4 arm: imx: make use of common scu_a9_get_base() interface
In reply to Jisheng ZhangMake use of common scu_a9_get_base() and delete the comment since the interface is self commented.
--- arch/arm/mach-imx/platsmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-imx/platsmp.c +1 -2
@@ -35,8 +35,7 @@ void __init imx_scu_map_io(void) {unsigned long base; -/* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" :"=r" (base)); + base =scu_a9_get_base (); scu_io_desc.virtual =IMX_IO_P2V (base); scu_io_desc.pfn =__phys_to_pfn (base);
Signature · 1 line
1.8.4.2
PATCH v2 3/4 arm: prima2: make use of common scu_a9_get_base() interface
In reply to Jisheng ZhangMake use of common scu_a9_get_base() and delete the comment since the interface is self commented.
--- arch/arm/mach-prima2/platsmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-prima2/platsmp.c +1 -2
@@ -34,8 +34,7 @@ void __init sirfsoc_map_scu(void) {unsigned long base; -/* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" :"=r" (base)); + base =scu_a9_get_base (); scu_io_desc.virtual =SIRFSOC_VA (base); scu_io_desc.pfn =__phys_to_pfn (base);
Signature · 1 line
1.8.4.2
PATCH v2 4/4 arm: socfgpa: make use of common scu_a9_get_base() interface
In reply to Jisheng ZhangMake use of common scu_a9_get_base() and delete the comment since the interface is self commented.
--- arch/arm/mach-socfpga/socfpga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-socfpga/socfpga.c +2 -2
@@ -24,6 +24,7 @@#include <asm/hardware/cache-l2x0.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> +#include <asm/smp_scu.h> #include "core.h"
@@ -51,8 +52,7 @@ static void __init socfpga_scu_map_io(void) {unsigned long base; -/* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" :"=r" (base)); + base =scu_a9_get_base (); scu_io_desc.pfn =__phys_to_pfn (base);iotable_init (&scu_io_desc,1 );
Signature · 1 line
1.8.4.2
Re: [PATCH V2 4/4] arm: socfgpa: make use of common scu_a9_get_base() interface
Quoted 21 lines · Jisheng Zhang
Make use of common
scu_a9_get_base()and delete the comment since the interface is self commented.Signed-off-by Jisheng Zhang <[email protected]>--- arch/arm/mach-socfpga/socfpga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-socfpga/socfpga.c +1
-0@@ -24,6 +24,7 @@#include <asm/hardware/cache-l2x0.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> +#include <asm/smp_scu.h> #include "core.h"
arch/arm/mach-socfpga/socfpga.c static void __init socfpga_scu_map_io(void) · line 58
Quoted 9 lines
arch/arm/mach-socfpga/socfpga.c +1
-2@@ -51,8 +52,7 @@ static void __init socfpga_scu_map_io(void) {unsigned long base; -/* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" :"=r" (base)); + base =scu_a9_get_base (); scu_io_desc.pfn =__phys_to_pfn (base);iotable_init (&scu_io_desc,1 );
Thanks,