Support single zImage for imx3 and imx6
Subsystems (3)
cover Support single zImage for imx3 and imx6
This series supports the single zImage build for imx3 and imx6. It's based on linux-next with imx6 series applied, and tested on imx35 and imx6q.
Sascha Hauer (1):
arm/imx: merge i.MX3 and i.MX6
Shawn Guo (5):
arm/imx: merge mm-imx35.c into mm-imx31.c arm/imx: rename mm-imx31.c to mm-imx3.c
arm/imx: change mxc_init_l2x0() to an imx31/35 specific call arm/imx: remove cpu_is_xxx() from arch_idle() arm/imx: remove cpu_is_xxx() check from __imx_ioremap()
arch/arm/Makefile | 3 +- arch/arm/mach-imx/Kconfig | 7 +- arch/arm/mach-imx/Makefile | 5 +- arch/arm/mach-imx/Makefile.boot | 10 +- arch/arm/mach-imx/cache-l2x0.c | 56 ------- arch/arm/mach-imx/mm-imx3.c | 256 +++++++++++++++++++++++++++++++ arch/arm/mach-imx/mm-imx31.c | 91 ----------- arch/arm/mach-imx/mm-imx35.c | 109 ------------- arch/arm/mach-mx5/mm.c | 6 + arch/arm/mach-mx5/pm-imx5.c | 3 +- arch/arm/mm/Kconfig | 4 +- arch/arm/plat-mxc/Kconfig | 18 +-- arch/arm/plat-mxc/include/mach/common.h | 2 + arch/arm/plat-mxc/include/mach/io.h | 22 +-- arch/arm/plat-mxc/include/mach/system.h | 35 +---- arch/arm/plat-mxc/system.c | 3 + 16 files changed, 300 insertions(+), 330 deletions(-)
PATCH 1/6 arm/imx: merge mm-imx35.c into mm-imx31.c
As imx31 and imx35 have much in common at soc level, this patch merges mm-imx35.c into mm-imx31.c, so that the common functions between imx31 and imx35 can be added in one file later.
--- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/mm-imx31.c | 78 ++++++++++++++++++++++++++++++ arch/arm/mach-imx/mm-imx35.c | 109 ------------------------------------------ 3 files changed, 79 insertions(+), 110 deletions(-) delete mode 100644 arch/arm/mach-imx/mm-imx35.c
arch/arm/mach-imx/Makefile +1 -1
@@ -9,7 +9,7 @@ obj-$(CONFIG_SOC_IMX27) += cpu-imx27.o pm-imx27.o obj-$(CONFIG_SOC_IMX27) += clock-imx27.o mm-imx27.o ehci-imx27.o obj-$(CONFIG_SOC_IMX31) += mm-imx31.o cpu-imx31.o clock-imx31.o iomux-imx31.o ehci-imx31.o -obj-$(CONFIG_SOC_IMX35) += mm-imx35.o cpu-imx35.o clock-imx35.o ehci-imx35.o +obj-$(CONFIG_SOC_IMX35) += mm-imx31.o cpu-imx35.o clock-imx35.o ehci-imx35.o obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o # Support for CMOS sensor interface
arch/arm/mach-imx/mm-imx31.c +78 -0
98 lines not on this page · raw message
arch/arm/mach-imx/mm-imx35.c deleted +0 -109
109 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 2/6 arm/imx: rename mm-imx31.c to mm-imx3.c
In reply to Shawn GuoSince mm-imx31.c now is shared between imx31 and imx35, the patch renames mm-imx31.c to mm-imx3.c.
---
arch/arm/mach-imx/Makefile | 4 ++--
arch/arm/mach-imx/{mm-imx31.c => mm-imx3.c} | 0
2 files changed, 2 insertions(+), 2 deletions(-)
rename arch/arm/mach-imx/{mm-imx31.c => mm-imx3.c} (100%)arch/arm/mach-imx/Makefile +2 -2
@@ -8,8 +8,8 @@ obj-$(CONFIG_SOC_IMX25) += clock-imx25.o mm-imx25.o ehci-imx25.o cpu-imx25.o obj-$(CONFIG_SOC_IMX27) += cpu-imx27.o pm-imx27.o obj-$(CONFIG_SOC_IMX27) += clock-imx27.o mm-imx27.o ehci-imx27.o -obj-$(CONFIG_SOC_IMX31) += mm-imx31.o cpu-imx31.o clock-imx31.o iomux-imx31.o ehci-imx31.o -obj-$(CONFIG_SOC_IMX35) += mm-imx31.o cpu-imx35.o clock-imx35.o ehci-imx35.o +obj-$(CONFIG_SOC_IMX31) += mm-imx3.o cpu-imx31.o clock-imx31.o iomux-imx31.o ehci-imx31.o +obj-$(CONFIG_SOC_IMX35) += mm-imx3.o cpu-imx35.o clock-imx35.o ehci-imx35.o obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o # Support for CMOS sensor interface
arch/arm/mach-imx/mm-imx3.c renamed from arch/arm/mach-imx/mm-imx31.c +0 -0
Signature · 1 line
1.7.4.1
PATCH 3/6 arm/imx: change mxc_init_l2x0() to an imx31/35 specific call
In reply to Shawn GuoThe mxc_init_l2x0() should really be an imx31/35 specific call. The patch removes early_initcall from mxc_init_l2x0() and get imx31 and imx35 soc specific function calls mxc_init_l2x0(), so that it's not necessarily to be called for all imx socs when we build single image for multiple imx socs.
Thus the function can be renamed to imx3_init_l2x0() and put into mm-imx3.c. It also changes the return type from integer to void.
PATCH 4/6 arm/imx: remove cpu_is_xxx() from arch_idle()
In reply to Shawn GuoThis patch adds an idle hook imx_idle to be called in arch_idle(). Any soc that needs a customized idle implementation other than cpu_do_idle() can set up this hook in soc specific call.
--- arch/arm/mach-imx/mm-imx3.c | 30 ++++++++++++++++++++++++++ arch/arm/mach-mx5/mm.c | 6 +++++ arch/arm/mach-mx5/pm-imx5.c | 3 +- arch/arm/plat-mxc/include/mach/common.h | 2 + arch/arm/plat-mxc/include/mach/system.h | 35 ++---------------------------- arch/arm/plat-mxc/system.c | 2 + 6 files changed, 45 insertions(+), 33 deletions(-)
arch/arm/mach-imx/mm-imx3.c +30 -0
@@ -30,6 +30,34 @@#include <mach/iomux-v3.h> #include <mach/irqs.h> +static void imx3_idle (void ) +{ +unsigned long reg =0 ; + __asm__ __volatile__( +/* disable I and D cache */ +"mrc p15, 0, %0, c1, c0, 0\n" +"bic %0, %0, #0x00001000\n" +"bic %0, %0, #0x00000004\n" +"mcr p15, 0, %0, c1, c0, 0\n" +/* invalidate I cache */ +"mov %0, #0\n" +"mcr p15, 0, %0, c7, c5, 0\n" +/* clear and invalidate D cache */ +"mov %0, #0\n" +"mcr p15, 0, %0, c7, c14, 0\n" +/* WFI */ +"mov %0, #0\n" +"mcr p15, 0, %0, c7, c0, 4\n" +"nop\n" "nop\n" "nop\n" "nop\n" +"nop\n" "nop\n" "nop\n" +/* enable I and D cache */ +"mrc p15, 0, %0, c1, c0, 0\n" +"orr %0, %0, #0x00001000\n" +"orr %0, %0, #0x00000004\n" +"mcr p15, 0, %0, c1, c0, 0\n" + :"=r" (reg)); +} +void imx3_init_l2x0 (void ) {void __iomem *l2x0_base;
@@ -98,6 +126,7 @@ void __init imx31_init_early(void) {mxc_set_cpu_type (MXC_CPU_MX31 );mxc_arch_reset_init (MX31_IO_ADDRESS (MX31_WDOG_BASE_ADDR )); + imx_idle = imx3_idle; }void __init imx35_init_early (void )
@@ -105,6 +134,7 @@ void __init imx35_init_early(void)mxc_set_cpu_type (MXC_CPU_MX35 );mxc_iomux_v3_init (MX35_IO_ADDRESS (MX35_IOMUXC_BASE_ADDR ));mxc_arch_reset_init (MX35_IO_ADDRESS (MX35_WDOG_BASE_ADDR )); + imx_idle = imx3_idle; }void __init mx31_init_irq (void )
arch/arm/mach-mx5/mm.c +6 -0
@@ -21,6 +21,11 @@#include <mach/devices-common.h> #include <mach/iomux-v3.h> +static void imx5_idle (void ) +{ +mx5_cpu_lp_set (WAIT_UNCLOCKED_POWER_OFF ); +} +/* * Define the MX50 memory map. */
@@ -84,6 +89,7 @@ void __init imx51_init_early(void)mxc_set_cpu_type (MXC_CPU_MX51 );mxc_iomux_v3_init (MX51_IO_ADDRESS (MX51_IOMUXC_BASE_ADDR ));mxc_arch_reset_init (MX51_IO_ADDRESS (MX51_WDOG1_BASE_ADDR )); + imx_idle = imx5_idle; }void __init imx53_init_early (void )
arch/arm/mach-mx5/pm-imx5.c +2 -1
@@ -14,7 +14,8 @@#include <linux/err.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> -#include <mach/system.h> +#include <mach/common.h> +#include <mach/hardware.h> #include "crm_regs.h" static struct clk *gpc_dvfs_clk;
arch/arm/plat-mxc/include/mach/common.h +2 -0
@@ -73,7 +73,9 @@ extern void mxc_arch_reset_init(void __iomem *);extern void mx51_efikamx_reset (void );extern int mx53_revision (void );extern int mx53_display_revision (void ); +extern void mx5_cpu_lp_set (enum mxc_cpu_pwr_mode mode);extern void imx_print_silicon_rev (const char *cpu,int srev); +extern void (*imx_idle)(void );void avic_handle_irq (struct pt_regs *);void tzic_handle_irq (struct pt_regs *);
arch/arm/plat-mxc/include/mach/system.h +3 -32
@@ -17,41 +17,12 @@#ifndef __ASM_ARCH_MXC_SYSTEM_H__#define __ASM_ARCH_MXC_SYSTEM_H__ -#include <mach/hardware.h> -#include <mach/common.h> - -extern void mx5_cpu_lp_set (enum mxc_cpu_pwr_mode mode); +extern void (*imx_idle)(void );static inline void arch_idle (void ) { -/* fix i.MX31 errata TLSbo65953 and i.MX35 errata ENGcm09472 */ -if (cpu_is_mx31 () ||cpu_is_mx35 ()) { -unsigned long reg =0 ; - __asm__ __volatile__( -/* disable I and D cache */ -"mrc p15, 0, %0, c1, c0, 0\n" -"bic %0, %0, #0x00001000\n" -"bic %0, %0, #0x00000004\n" -"mcr p15, 0, %0, c1, c0, 0\n" -/* invalidate I cache */ -"mov %0, #0\n" -"mcr p15, 0, %0, c7, c5, 0\n" -/* clear and invalidate D cache */ -"mov %0, #0\n" -"mcr p15, 0, %0, c7, c14, 0\n" -/* WFI */ -"mov %0, #0\n" -"mcr p15, 0, %0, c7, c0, 4\n" -"nop\n" "nop\n" "nop\n" "nop\n" -"nop\n" "nop\n" "nop\n" -/* enable I and D cache */ -"mrc p15, 0, %0, c1, c0, 0\n" -"orr %0, %0, #0x00001000\n" -"orr %0, %0, #0x00000004\n" -"mcr p15, 0, %0, c1, c0, 0\n" - :"=r" (reg)); - }else if (cpu_is_mx51 ()) -mx5_cpu_lp_set (WAIT_UNCLOCKED_POWER_OFF ); +if (imx_idle !=NULL ) + (imx_idle)();else cpu_do_idle (); }
arch/arm/plat-mxc/system.c +2 -0
@@ -28,6 +28,8 @@#include <asm/system.h> #include <asm/mach-types.h> +void (*imx_idle)(void ) =NULL ; +static void __iomem *wdog_base;/*
Signature · 1 line
1.7.4.1
Sascha Hauer
maintainerPATCH 4/6 arm/imx: remove cpu_is_xxx() from arch_idle()
Quoted 5 lines · Shawn Guo
This patch adds an idle hook
imx_idleto be called inarch_idle(). Any soc that needs a customized idle implementation other thancpu_do_idle()can set up this hook in soc specific call.Signed-off-by Shawn Guo <[email protected]>
Quoted 9 lines
--- arch/arm/mach-imx/mm-imx3.c | 30 ++++++++++++++++++++++++++ arch/arm/mach-mx5/mm.c | 6 +++++ arch/arm/mach-mx5/pm-imx5.c | 3 +- arch/arm/plat-mxc/include/mach/common.h | 2 + arch/arm/plat-mxc/include/mach/system.h | 35 ++---------------------------- arch/arm/plat-mxc/system.c | 2 + 6 files changed, 45 insertions(+), 33 deletions(-)
I had to fold the following into this commit, otherwise we end up with:
In file included from arch/arm/mach-mx5/pm-imx5.c:17:0:arch/arm/plat-mxc/include/mach/common.h:77:33: warning: 'enum mxc_cpu_pwr_mode' declared inside parameter list arch/arm/plat-mxc/include/mach/common.h:77:33: warning: its scope is only this definition or declaration, which is probably not what you want
Sascha
arch/arm/mach-mx5/system.c +1 -0
@@ -13,6 +13,7 @@#include <linux/platform_device.h> #include <linux/io.h> #include <mach/hardware.h> +#include <mach/common.h> #include "crm_regs.h" /* set cpu low power mode before WFI instruction. This function is called
arch/arm/plat-mxc/include/mach/common.h +9 -0
@@ -72,6 +72,15 @@ extern void mxc_arch_reset_init(void __iomem *);extern void mx51_efikamx_reset (void );extern int mx53_revision (void );extern int mx53_display_revision (void ); + +enum mxc_cpu_pwr_mode { +WAIT_CLOCKED ,/* wfi only */ +WAIT_UNCLOCKED ,/* WAIT */ +WAIT_UNCLOCKED_POWER_OFF ,/* WAIT + SRPG */ +STOP_POWER_ON ,/* just STOP */ +STOP_POWER_OFF ,/* STOP + SRPG */ +}; +extern void mx5_cpu_lp_set (enum mxc_cpu_pwr_mode mode);extern void (*imx_idle)(void );#endif
arch/arm/plat-mxc/include/mach/mxc.h +0 -7
@@ -183,13 +183,6 @@ struct cpu_op { };int tzic_enable_wake (int is_idle); -enum mxc_cpu_pwr_mode { -WAIT_CLOCKED ,/* wfi only */ -WAIT_UNCLOCKED ,/* WAIT */ -WAIT_UNCLOCKED_POWER_OFF ,/* WAIT + SRPG */ -STOP_POWER_ON ,/* just STOP */ -STOP_POWER_OFF ,/* STOP + SRPG */ -};extern struct cpu_op *(*get_cpu_op)(int *op);#endif
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 4/6 arm/imx: remove cpu_is_xxx() from arch_idle()
Quoted 16 lines · Sascha Hauer
Quoted 5 lines · Shawn Guo
This patch adds an idle hook
imx_idleto be called inarch_idle(). Any soc that needs a customized idle implementation other thancpu_do_idle()can set up this hook in soc specific call.Signed-off-by Shawn Guo <[email protected]>Quoted 9 lines
--- arch/arm/mach-imx/mm-imx3.c | 30 ++++++++++++++++++++++++++ arch/arm/mach-mx5/mm.c | 6 +++++ arch/arm/mach-mx5/pm-imx5.c | 3 +- arch/arm/plat-mxc/include/mach/common.h | 2 + arch/arm/plat-mxc/include/mach/system.h | 35 ++---------------------------- arch/arm/plat-mxc/system.c | 2 + 6 files changed, 45 insertions(+), 33 deletions(-)
Quoted 6 lines
I had to fold the following into this commit, otherwise we end up with:
In file included from arch/arm/mach-mx5/pm-imx5.c:17:0:arch/arm/plat-mxc/include/mach/common.h:77:33: warning: 'enum
mxc_cpu_pwr_mode' declared inside parameter listarch/arm/plat-mxc/include/mach/common.h:77:33: warning: its scope is only this definition or declaration, which is probably not what you want
Aha, I based this series off imx6q one. I have the following change in patch 'arm/imx6q: add suspend/resume support'.
arch/arm/plat-mxc/include/mach/common.h +1 -0
@@ -13,6 +13,7 @@struct platform_device ;struct clk ; +enum mxc_cpu_pwr_mode ;extern void mx1_map_io (void );extern void mx21_map_io (void );
But I'm fine with your changes below.
Quoted 63 lines
Sascha
arch/arm/mach-mx5/system.c +1
-0@@ -13,6 +13,7 @@#include <linux/platform_device.h> #include <linux/io.h> #include <mach/hardware.h> +#include <mach/common.h> #include "crm_regs.h" /* set cpu low power mode before WFI instruction. This function is called arch/arm/plat-mxc/include/mach/common.h +9
-0@@ -72,6 +72,15 @@ extern void mxc_arch_reset_init(void __iomem *);extern void mx51_efikamx_reset (void );extern int mx53_revision (void );extern int mx53_display_revision (void ); + +enum mxc_cpu_pwr_mode { +WAIT_CLOCKED ,/* wfi only */ +WAIT_UNCLOCKED ,/* WAIT */ +WAIT_UNCLOCKED_POWER_OFF ,/* WAIT + SRPG */ +STOP_POWER_ON ,/* just STOP */ +STOP_POWER_OFF ,/* STOP + SRPG */ +}; +extern void mx5_cpu_lp_set (enum mxc_cpu_pwr_mode mode);extern void (*imx_idle)(void );#endif arch/arm/plat-mxc/include/mach/mxc.h +0
-7@@ -183,13 +183,6 @@ struct cpu_op { };int tzic_enable_wake (int is_idle); -enum mxc_cpu_pwr_mode { -WAIT_CLOCKED ,/* wfi only */ -WAIT_UNCLOCKED ,/* WAIT */ -WAIT_UNCLOCKED_POWER_OFF ,/* WAIT + SRPG */ -STOP_POWER_ON ,/* just STOP */ -STOP_POWER_OFF ,/* STOP + SRPG */ -};extern struct cpu_op *(*get_cpu_op)(int *op);#endif Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Regards, Shawn
PATCH 5/6 arm/imx: remove cpu_is_xxx() check from __imx_ioremap()
In reply to Shawn GuoThis patch adds an ioremap hook imx_ioremap to be called in __imx_ioremap(). Any soc that needs a customized ioremap other than __arm_ioremap() can set up this hook in soc specific call.
--- arch/arm/mach-imx/mm-imx3.c | 19 +++++++++++++++++++ arch/arm/plat-mxc/include/mach/io.h | 22 ++++++---------------- arch/arm/plat-mxc/system.c | 1 + 3 files changed, 26 insertions(+), 16 deletions(-)
arch/arm/mach-imx/mm-imx3.c +19 -0
@@ -58,6 +58,23 @@ static void imx3_idle(void) : "=r" (reg)); } +static void __iomem *imx3_ioremap (unsigned long phys_addr,size_t size, +unsigned int mtype) +{ +if (mtype ==MT_DEVICE ) { +/* +* Access all peripherals below 0x80000000 as nonshared device +* on mx3, but leave l2cc alone. Otherwise cache corruptions +* can occur. +*/ +if (phys_addr <0x80000000 && + !addr_in_module (phys_addr, MX3x_L2CC)) + mtype =MT_DEVICE_NONSHARED ; + } + +return __arm_ioremap (phys_addr, size, mtype); +} +void imx3_init_l2x0 (void ) {void __iomem *l2x0_base;
@@ -127,6 +144,7 @@ void __init imx31_init_early(void)mxc_set_cpu_type (MXC_CPU_MX31 );mxc_arch_reset_init (MX31_IO_ADDRESS (MX31_WDOG_BASE_ADDR )); imx_idle = imx3_idle; + imx_ioremap = imx3_ioremap; }void __init imx35_init_early (void )
@@ -135,6 +153,7 @@ void __init imx35_init_early(void)mxc_iomux_v3_init (MX35_IO_ADDRESS (MX35_IOMUXC_BASE_ADDR ));mxc_arch_reset_init (MX35_IO_ADDRESS (MX35_WDOG_BASE_ADDR )); imx_idle = imx3_idle; + imx_ioremap = imx3_ioremap; }void __init mx31_init_irq (void )
arch/arm/plat-mxc/include/mach/io.h +6 -16
@@ -14,32 +14,22 @@/* Allow IO space to be anywhere in the memory */ #define IO_SPACE_LIMIT 0xffffffff -#if defined(CONFIG_SOC_IMX31 ) || defined(CONFIG_SOC_IMX35 ) -#include <mach/hardware.h> -#define __arch_ioremap __imx_ioremap#define __arch_iounmap __iounmap#define addr_in_module (addr, mod) \ ((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE) +extern void __iomem *(*imx_ioremap)(unsigned long ,size_t ,unsigned int ); +static inline void __iomem *__imx_ioremap (unsigned long phys_addr,size_t size,unsigned int mtype) { -if (mtype ==MT_DEVICE && (cpu_is_mx31 () ||cpu_is_mx35 ())) { -/* -* Access all peripherals below 0x80000000 as nonshared device -* on mx3, but leave l2cc alone. Otherwise cache corruptions -* can occur. -*/ -if (phys_addr <0x80000000 && - !addr_in_module (phys_addr, MX3x_L2CC)) - mtype =MT_DEVICE_NONSHARED ; - } - -return __arm_ioremap (phys_addr, size, mtype); +if (imx_ioremap !=NULL ) +return imx_ioremap (phys_addr, size, mtype); +else +return __arm_ioremap (phys_addr, size, mtype); } -#endif /* io address mapping macro */ #define __io (a) __typesafe_io(a)
arch/arm/plat-mxc/system.c +1 -0
@@ -29,6 +29,7 @@#include <asm/mach-types.h> void (*imx_idle)(void ) =NULL ; +void __iomem *(*imx_ioremap)(unsigned long ,size_t ,unsigned int ) =NULL ;static void __iomem *wdog_base;
Signature · 1 line
1.7.4.1
PATCH 6/6 arm/imx: merge i.MX3 and i.MX6
In reply to Shawn GuoFrom: Sascha Hauer <[email protected]>
The patch merges the build of imx3 and imx6. The Kconfig symbol ARCH_IMX_V6_V7 is introduced to replace ARCH_MX3 and ARCH_MX6.
--- arch/arm/Makefile | 3 +-- arch/arm/mach-imx/Kconfig | 7 +++---- arch/arm/mach-imx/Makefile.boot | 10 +++++++--- arch/arm/mm/Kconfig | 4 ++-- arch/arm/plat-mxc/Kconfig | 18 +++++++----------- 5 files changed, 20 insertions(+), 22 deletions(-)
arch/arm/Makefile +1 -2
@@ -158,9 +158,8 @@ machine-$(CONFIG_ARCH_MMP) := mmp machine-$(CONFIG_ARCH_MSM) := msm machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 machine-$(CONFIG_ARCH_IMX_V4_V5) := imx -machine-$(CONFIG_ARCH_MX3) := imx +machine-$(CONFIG_ARCH_IMX_V6_V7) := imx machine-$(CONFIG_ARCH_MX5) := mx5 -machine-$(CONFIG_ARCH_MX6) := imx machine-$(CONFIG_ARCH_MXS) := mxs machine-$(CONFIG_ARCH_NETX) := netx machine-$(CONFIG_ARCH_NOMADIK) := nomadik
arch/arm/mach-imx/Kconfig +3 -4
@@ -74,6 +74,7 @@ config SOC_IMX31 select ARCH_MXC_AUDMUX_V2 select ARCH_MX31 select MXC_AVIC + select SMP_ON_UP if SMP config SOC_IMX35 bool
@@ -83,6 +84,7 @@ config SOC_IMX35 select HAVE_EPIT select ARCH_MX35 select MXC_AVIC + select SMP_ON_UP if SMP if ARCH_IMX_V4_V5
@@ -351,7 +353,7 @@ config MACH_IMX27IPCAM endif -if ARCH_MX3 +if ARCH_IMX_V6_V7 comment "MX31 platforms:"
@@ -601,9 +603,6 @@ config MACH_VPR200 Include support for VPR200 platform. This includes specific configurations for the board and its peripherals. -endif - -if ARCH_MX6 comment "i.MX6 family:" config SOC_IMX6Q
arch/arm/mach-imx/Makefile.boot +7 -3
@@ -14,9 +14,13 @@ zreladdr-$(CONFIG_MACH_MX27) += 0xA0008000 params_phys-$(CONFIG_MACH_MX27) := 0xA0000100 initrd_phys-$(CONFIG_MACH_MX27) := 0xA0800000 -zreladdr-$(CONFIG_ARCH_MX3) += 0x80008000 -params_phys-$(CONFIG_ARCH_MX3) := 0x80000100 -initrd_phys-$(CONFIG_ARCH_MX3) := 0x80800000 +zreladdr-$(CONFIG_SOC_IMX31) += 0x80008000 +params_phys-$(CONFIG_SOC_IMX31) := 0x80000100 +initrd_phys-$(CONFIG_SOC_IMX31) := 0x80800000 + +zreladdr-$(CONFIG_SOC_IMX35) += 0x80008000 +params_phys-$(CONFIG_SOC_IMX35) := 0x80000100 +initrd_phys-$(CONFIG_SOC_IMX35) := 0x80800000 zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100
arch/arm/mm/Kconfig +2 -2
@@ -832,10 +832,10 @@ config CACHE_FEROCEON_L2_WRITETHROUGH config CACHE_L2X0 bool "Enable the L2x0 outer cache controller" depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ - REALVIEW_EB_A9MP || SOC_IMX35 || SOC_IMX31 || MACH_REALVIEW_PBX || \ + REALVIEW_EB_A9MP || ARCH_IMX_V6_V7 || MACH_REALVIEW_PBX || \ ARCH_NOMADIK || ARCH_OMAP4 || ARCH_EXYNOS4 || ARCH_TEGRA || \ ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE || \ - ARCH_PRIMA2 || ARCH_ZYNQ || ARCH_CNS3XXX || ARCH_MX6 + ARCH_PRIMA2 || ARCH_ZYNQ || ARCH_CNS3XXX default y select OUTER_CACHE select OUTER_CACHE_SYNC
arch/arm/plat-mxc/Kconfig +7 -11
@@ -6,7 +6,7 @@ menu "Freescale MXC Implementations" choice prompt "Freescale CPU family:" - default ARCH_MX3 + default ARCH_IMX_V6_V7 config ARCH_IMX_V4_V5 bool "i.MX1, i.MX21, i.MX25, i.MX27"
@@ -16,10 +16,13 @@ config ARCH_IMX_V4_V5 This enables support for systems based on the Freescale i.MX ARMv4 and ARMv5 SoCs -config ARCH_MX3 - bool "MX3-based" +config ARCH_IMX_V6_V7 + bool "i.MX3, i.MX6" + select AUTO_ZRELADDR + select ARM_PATCH_PHYS_VIRT help - This enables support for systems based on the Freescale i.MX3 family + This enables support for systems based on the Freescale i.MX3 and i.MX6 + family. config ARCH_MX5 bool "i.MX50, i.MX51, i.MX53"
@@ -29,13 +32,6 @@ config ARCH_MX5 This enables support for machines using Freescale's i.MX50 and i.MX51 processors. -config ARCH_MX6 - bool "i.MX6" - select AUTO_ZRELADDR - select ARM_PATCH_PHYS_VIRT - help - This enables support for systems based on the Freescale i.MX6 family - endchoice source "arch/arm/mach-imx/Kconfig"
Signature · 1 line
1.7.4.1
Sascha Hauer
maintainerPATCH 6/6 arm/imx: merge i.MX3 and i.MX6
arch/arm/plat-mxc/Kconfig config ARCH_IMX_V4_V5 · line 22
Quoted 8 lines · Shawn Guo
arch/arm/plat-mxc/Kconfig +4
-2-config ARCH_MX3 - bool "MX3-based" +config ARCH_IMX_V6_V7 + bool "i.MX3, i.MX6" + select AUTO_ZRELADDR + select ARM_PATCH_PHYS_VIRT
Russell pointed out that it's not a good idea to select this.
Sascha
Quoted 25 lines
arch/arm/plat-mxc/Kconfig +2
-8help - This enables support for systems based on the Freescale i.MX3 family + This enables support for systems based on the Freescale i.MX3 and i.MX6 + family. config ARCH_MX5 bool "i.MX50, i.MX51, i.MX53"@@ -29,13 +32,6 @@ config ARCH_MX5 This enables support for machines using Freescale's i.MX50 and i.MX51 processors. -config ARCH_MX6 - bool "i.MX6" - select AUTO_ZRELADDR - select ARM_PATCH_PHYS_VIRT - help - This enables support for systems based on the Freescale i.MX6 family - endchoice source "arch/arm/mach-imx/Kconfig"Signature · 1 line
1.7.4.1
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 6/6 arm/imx: merge i.MX3 and i.MX6
Quoted 12 lines · Sascha Hauer
arch/arm/plat-mxc/Kconfig config ARCH_IMX_V4_V5 · line 22
Quoted 8 lines · Shawn Guo
arch/arm/plat-mxc/Kconfig +4
-2-config ARCH_MX3 - bool "MX3-based" +config ARCH_IMX_V6_V7 + bool "i.MX3, i.MX6" + select AUTO_ZRELADDR + select ARM_PATCH_PHYS_VIRTRussell pointed out that it's not a good idea to select this.
Yeah, I saw that. So you would support ZBOOT_ROM over single zImage between these two? I'm not sure how many imx users are actually using ZBOOT_ROM. If there are only very few, we still want to keep the default configuration compatible with ZBOOT_ROM? I think we can move the default build to single zImage, and let those limited users sort out their own configuration to get ZBOOT_ROM back. After all, the support is still there, and it's just about build configuration adjustment.
Anyway, it's only my opinion, and the decision is on you plate.
Signature · 2 lines
Regards, Shawn
Sascha Hauer
maintainerPATCH 6/6 arm/imx: merge i.MX3 and i.MX6
Quoted 13 lines · Shawn Guo
Quoted 12 lines · Sascha Hauer
arch/arm/plat-mxc/Kconfig config ARCH_IMX_V4_V5 · line 22
Quoted 8 lines · Shawn Guo
arch/arm/plat-mxc/Kconfig +4
-2-config ARCH_MX3 - bool "MX3-based" +config ARCH_IMX_V6_V7 + bool "i.MX3, i.MX6" + select AUTO_ZRELADDR + select ARM_PATCH_PHYS_VIRTRussell pointed out that it's not a good idea to select this.
Quoted 8 lines
Yeah, I saw that. So you would support
ZBOOT_ROMover single zImage between these two? I'm not sure how many imx users are actually usingZBOOT_ROM. If there are only very few, we still want to keep the default configuration compatible withZBOOT_ROM? I think we can move the default build to single zImage, and let those limited users sort out their own configuration to getZBOOT_ROMback. After all, the support is still there, and it's just about build configuration adjustment.
I'm not sure there are i.MX ZBOOT_ROM users at all. Anyway,
select AUTO_ZRELADDR if !ZBOOT_ROM
seems to work.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Sascha Hauer
maintainercover Support single zImage for imx3 and imx6
In reply to Shawn GuoHi Shawn,
Quoted 3 lines · Shawn Guo
This series supports the single zImage build for imx3 and imx6. It's based on linux-next with imx6 series applied, and tested on imx35 and imx6q.
I'm fine with this series (and the i.MX6 series). I can merge this series without the last patch now. For the i.MX6 series I think we have to wait until the prerequisites are merged. Maybe we should merge this in a second pull request during the merge window.
Sascha
Quoted 29 lines
Sascha Hauer (1):
arm/imx: merge i.MX3 and i.MX6Shawn Guo (5):
arm/imx: mergemm-imx35.cintomm-imx31.carm/imx: renamemm-imx31.ctomm-imx3.c
arm/imx: changemxc_init_l2x0()to an imx31/35 specific call arm/imx: removecpu_is_xxx()fromarch_idle()arm/imx: removecpu_is_xxx()check from__imx_ioremap()arch/arm/Makefile | 3 +- arch/arm/mach-imx/Kconfig | 7 +- arch/arm/mach-imx/Makefile | 5 +- arch/arm/mach-imx/Makefile.boot | 10 +- arch/arm/mach-imx/cache-l2x0.c | 56 ------- arch/arm/mach-imx/mm-imx3.c | 256 +++++++++++++++++++++++++++++++ arch/arm/mach-imx/mm-imx31.c | 91 ----------- arch/arm/mach-imx/mm-imx35.c | 109 ------------- arch/arm/mach-mx5/mm.c | 6 + arch/arm/mach-mx5/pm-imx5.c | 3 +- arch/arm/mm/Kconfig | 4 +- arch/arm/plat-mxc/Kconfig | 18 +-- arch/arm/plat-mxc/include/mach/common.h | 2 + arch/arm/plat-mxc/include/mach/io.h | 22 +-- arch/arm/plat-mxc/include/mach/system.h | 35 +---- arch/arm/plat-mxc/system.c | 3 + 16 files changed, 300 insertions(+), 330 deletions(-)
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
cover Support single zImage for imx3 and imx6
Quoted 9 lines · Sascha Hauer
Hi Shawn,
Quoted 3 lines · Shawn Guo
This series supports the single zImage build for imx3 and imx6. It's based on linux-next with imx6 series applied, and tested on imx35 and imx6q.
I'm fine with this series (and the i.MX6 series). I can merge this series without the last patch now.
Thanks.
Quoted 4 lines
For the i.MX6 series I think we have
to wait until the prerequisites are merged. Maybe we should merge this in a second pull request during the merge window.
Ok, will send you the pull request at a later time.
Signature · 2 lines
Regards, Shawn