]> git.karo-electronics.de Git - linux-beck.git/commitdiff
imx: define per SOC ..._PHYS_OFFSET and use these in favour of PHYS_OFFSET
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 29 Jan 2010 16:36:05 +0000 (17:36 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 2 Feb 2010 08:07:59 +0000 (09:07 +0100)
This is a further step in allowing to build a kernel image for more
than one imx SOC.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
23 files changed:
arch/arm/mach-mx1/mach-mx1ads.c
arch/arm/mach-mx2/mach-cpuimx27.c
arch/arm/mach-mx2/mach-imx27lite.c
arch/arm/mach-mx2/mach-mx21ads.c
arch/arm/mach-mx2/mach-mx27_3ds.c
arch/arm/mach-mx2/mach-mx27ads.c
arch/arm/mach-mx2/mach-mxt_td60.c
arch/arm/mach-mx2/mach-pca100.c
arch/arm/mach-mx2/mach-pcm038.c
arch/arm/mach-mx25/mx25pdk.c
arch/arm/mach-mx3/mach-armadillo5x0.c
arch/arm/mach-mx3/mach-kzm_arm11_01.c
arch/arm/mach-mx3/mach-mx31_3ds.c
arch/arm/mach-mx3/mach-mx31ads.c
arch/arm/mach-mx3/mach-mx31lilly.c
arch/arm/mach-mx3/mach-mx31lite.c
arch/arm/mach-mx3/mach-mx31moboard.c
arch/arm/mach-mx3/mach-mx35pdk.c
arch/arm/mach-mx3/mach-pcm037.c
arch/arm/mach-mx3/mach-pcm043.c
arch/arm/mach-mx3/mach-qong.c
arch/arm/mach-mxc91231/magx-zn5.c
arch/arm/plat-mxc/include/mach/memory.h

index a39433afb51233fdf154ab5b9eee3f6ce84b5155..69831aa274ff0d40a7bc53b49e3fff6f774720e5 100644 (file)
@@ -147,7 +147,7 @@ MACHINE_START(MX1ADS, "Freescale MX1ADS")
        /* Maintainer: Sascha Hauer, Pengutronix */
        .phys_io        = IMX_IO_PHYS,
        .io_pg_offst    = (IMX_IO_BASE >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX1_PHYS_OFFSET + 0x100,
        .map_io         = mx1_map_io,
        .init_irq       = mx1_init_irq,
        .timer          = &mx1ads_timer,
@@ -157,7 +157,7 @@ MACHINE_END
 MACHINE_START(MXLADS, "Freescale MXLADS")
        .phys_io        = IMX_IO_PHYS,
        .io_pg_offst    = (IMX_IO_BASE >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX1_PHYS_OFFSET + 0x100,
        .map_io         = mx1_map_io,
        .init_irq       = mx1_init_irq,
        .timer          = &mx1ads_timer,
index 8e4f3d08e32cac008fa358cf3f184a4d3d07bcbd..92fd1bf7a638084f850ac228061f7189b4f945a8 100644 (file)
@@ -226,7 +226,7 @@ static struct sys_timer eukrea_cpuimx27_timer = {
 MACHINE_START(CPUIMX27, "EUKREA CPUIMX27")
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = eukrea_cpuimx27_init,
index ca6ab1265f3eed13c15489f1089070ca94dc2523..621c2c1046ea3859a0a0848a87d1cc389e6a4d4e 100644 (file)
@@ -87,7 +87,7 @@ static struct sys_timer mx27lite_timer = {
 MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE")
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = mx27lite_init,
index eb4a6e855595bea498861d139bee09af62c7e5be..d5eb8065df3e166c1c5be8174dcc997e00bec054 100644 (file)
@@ -286,7 +286,7 @@ MACHINE_START(MX21ADS, "Freescale i.MX21ADS")
        /* maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX21_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX21_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX21_PHYS_OFFSET + 0x100,
        .map_io         = mx21ads_map_io,
        .init_irq       = mx21_init_irq,
        .init_machine   = mx21ads_board_init,
index 595fea46b6f7a63afcdae6ae006908f4675a2379..8c975f6514ad018430bc85ec05fdf3ecb6078bdb 100644 (file)
@@ -87,7 +87,7 @@ MACHINE_START(MX27_3DS, "Freescale MX27PDK")
        /* maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = mx27pdk_init,
index 385fc1c9ad3894a1b5767779ab68db4f8cad41aa..808ca271a829210f2e2e9cdbe3363f522f04fd6b 100644 (file)
@@ -336,7 +336,7 @@ MACHINE_START(MX27ADS, "Freescale i.MX27ADS")
        /* maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27ads_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = mx27ads_board_init,
index 9ed4e492fc73e036c33fdd3a4945e64eab0fcf18..df954d879cc34c99952c5b10d9d0c8a3b4054c52 100644 (file)
@@ -286,7 +286,7 @@ MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60")
        /* maintainer: Maxtrack Industrial */
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = mxt_td60_board_init,
index 55dbf5a64e00628d57ea893c601273a1b313f660..9279b42b24b58f4640463a2fca6433ca8052701d 100644 (file)
@@ -235,7 +235,7 @@ static struct sys_timer pca100_timer = {
 MACHINE_START(PCA100, "phyCARD-i.MX27")
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = pca100_init,
index 9636bb82f1e9ce36db89746ad7b940944adab4b0..e055d9dd610145774a597f6841ce835471296503 100644 (file)
@@ -328,7 +328,7 @@ static struct sys_timer pcm038_timer = {
 MACHINE_START(PCM038, "phyCORE-i.MX27")
        .phys_io        = MX27_AIPI_BASE_ADDR,
        .io_pg_offst    = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX27_PHYS_OFFSET + 0x100,
        .map_io         = mx27_map_io,
        .init_irq       = mx27_init_irq,
        .init_machine   = pcm038_init,
index f4e8b984af725eef26176d17d006f2878074a75e..10be38eb82a88e8b86865ab694fb69788f752868 100644 (file)
@@ -110,7 +110,7 @@ MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)")
        /* Maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX25_AIPS1_BASE_ADDR,
        .io_pg_offst    = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX25_PHYS_OFFSET + 0x100,
        .map_io         = mx25_map_io,
        .init_irq       = mx25_init_irq,
        .init_machine   = mx25pdk_init,
index 1fed146324f5005725935e7f47393a509e54cd6d..3d72b0b89705991118d2282a943e1144c28c8a5e 100644 (file)
@@ -408,7 +408,7 @@ MACHINE_START(ARMADILLO5X0, "Armadillo-500")
        /* Maintainer: Alberto Panizzo  */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x00000100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31_map_io,
        .init_irq       = mx31_init_irq,
        .timer          = &armadillo5x0_timer,
index 2484dddca549b8b2fbbd705dc3c7ea817f476572..f085d5d1a6de7c560d42fba0809b29d73a04a6e9 100644 (file)
@@ -265,7 +265,7 @@ static struct sys_timer kzm_timer = {
 MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01")
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = kzm_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = kzm_board_init,
index 88af58514a761dc011e57009cd0cd3eb4e3f3957..b88c18ad769819ba86852c02a97eb74e088203d2 100644 (file)
@@ -258,7 +258,7 @@ MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
        /* Maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31pdk_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mxc_board_init,
index 59de37887f337f0c622a654182b097175fda0dac..2f02df212b665fff947fe583db82036c2bead6f8 100644 (file)
@@ -537,7 +537,7 @@ MACHINE_START(MX31ADS, "Freescale MX31ADS")
        /* Maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31ads_map_io,
        .init_irq       = mx31ads_init_irq,
        .init_machine   = mxc_board_init,
index 9225cb72dd01be683961a03fe8b111ce8140b263..80847b04c063ac2f4a9ef6d1c397b6f2aef0a437 100644 (file)
@@ -197,7 +197,7 @@ static struct sys_timer mx31lilly_timer = {
 MACHINE_START(LILLY1131, "INCO startec LILLY-1131")
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mx31lilly_board_init,
index 8589e3d1dada2b8410d9bf075f059dff2786f6cb..2b6d1140087740dbc72c157f47770620432a9575 100644 (file)
@@ -289,7 +289,7 @@ MACHINE_START(MX31LITE, "LogicPD i.MX31 SOM")
        /* Maintainer: Freescale Semiconductor, Inc. */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31lite_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mxc_board_init,
index 63f991f8817ffa5ede06833f1eb3f085b9b0af8a..fe18cd513cd7c23157659b727cb6362fcae5fcda 100644 (file)
@@ -571,7 +571,7 @@ MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard")
        /* Maintainer: Valentin Longchamp, EPFL Mobots group */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mxc_board_init,
index 2d11bf053c7857e8fdaf57ccf1504e68b81d3a8e..bcac84d4dca4b71681626388cd2659edf0b10406 100644 (file)
@@ -108,7 +108,7 @@ MACHINE_START(MX35_3DS, "Freescale MX35PDK")
        /* Maintainer: Freescale Semiconductor, Inc */
        .phys_io        = MX35_AIPS1_BASE_ADDR,
        .io_pg_offst    = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx35_map_io,
        .init_irq       = mx35_init_irq,
        .init_machine   = mxc_board_init,
index d9bd7d2b0ade5be39106ed7d940db2d7a85bd2f7..21f54811a630cf8b1b59f2c1fa12b89ae979f04e 100644 (file)
@@ -638,7 +638,7 @@ MACHINE_START(PCM037, "Phytec Phycore pcm037")
        /* Maintainer: Pengutronix */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mxc_board_init,
index 1212194fb9c2e3a695fab6bae25939420d85db48..25942b8e8bed79ac81b2a0967164434fc3aa8e7e 100644 (file)
@@ -250,7 +250,7 @@ MACHINE_START(PCM043, "Phytec Phycore pcm043")
        /* Maintainer: Pengutronix */
        .phys_io        = MX35_AIPS1_BASE_ADDR,
        .io_pg_offst    = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx35_map_io,
        .init_irq       = mx35_init_irq,
        .init_machine   = mxc_board_init,
index fdb819ae0e60d626548ed19dc594b8b556e263e9..e5b5b8323a1793aad3115e4694a8e9bd149155f5 100644 (file)
@@ -275,7 +275,7 @@ MACHINE_START(QONG, "Dave/DENX QongEVB-LITE")
        /* Maintainer: DENX Software Engineering GmbH */
        .phys_io        = MX31_AIPS1_BASE_ADDR,
        .io_pg_offst    = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MX3x_PHYS_OFFSET + 0x100,
        .map_io         = mx31_map_io,
        .init_irq       = mx31_init_irq,
        .init_machine   = mxc_board_init,
index 7dbe4ca12efd5d2113e5f3146588b05565cfd415..69816ba82930edcab94de16580d9d62c30610b33 100644 (file)
@@ -55,7 +55,7 @@ struct sys_timer zn5_timer = {
 MACHINE_START(MAGX_ZN5, "Motorola Zn5")
        .phys_io        = MXC91231_AIPS1_BASE_ADDR,
        .io_pg_offst    = ((MXC91231_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
-       .boot_params    = PHYS_OFFSET + 0x100,
+       .boot_params    = MXC91231_PHYS_OFFSET + 0x100,
        .map_io         = mxc91231_map_io,
        .init_irq       = mxc91231_init_irq,
        .timer          = &zn5_timer,
index d3afafdcc0e5d8a3ee25bef5519b1308a0c66838..002eb91ab235cb55e2a0b6783e20e0975fd1a234 100644 (file)
 #ifndef __ASM_ARCH_MXC_MEMORY_H__
 #define __ASM_ARCH_MXC_MEMORY_H__
 
-#if defined CONFIG_ARCH_MX1
-#define PHYS_OFFSET            UL(0x08000000)
-#elif defined CONFIG_ARCH_MX2
-#ifdef CONFIG_MACH_MX21
-#define PHYS_OFFSET            UL(0xC0000000)
-#endif
-#ifdef CONFIG_MACH_MX27
-#define PHYS_OFFSET            UL(0xA0000000)
-#endif
-#elif defined CONFIG_ARCH_MX3
-#define PHYS_OFFSET            UL(0x80000000)
-#elif defined CONFIG_ARCH_MX25
-#define PHYS_OFFSET            UL(0x80000000)
-#elif defined CONFIG_ARCH_MXC91231
-#define PHYS_OFFSET            UL(0x90000000)
+#define MX1_PHYS_OFFSET                UL(0x08000000)
+#define MX21_PHYS_OFFSET       UL(0xc0000000)
+#define MX25_PHYS_OFFSET       UL(0x80000000)
+#define MX27_PHYS_OFFSET       UL(0xa0000000)
+#define MX3x_PHYS_OFFSET       UL(0x80000000)
+#define MXC91231_PHYS_OFFSET   UL(0x90000000)
+
+#if !defined(CONFIG_RUNTIME_PHYS_OFFSET)
+# if defined CONFIG_ARCH_MX1
+#  define PHYS_OFFSET          MX1_PHYS_OFFSET
+# elif defined CONFIG_MACH_MX21
+#  define PHYS_OFFSET          MX21_PHYS_OFFSET
+# elif defined CONFIG_ARCH_MX25
+#  define PHYS_OFFSET          MX25_PHYS_OFFSET
+# elif defined CONFIG_MACH_MX27
+#  define PHYS_OFFSET          MX27_PHYS_OFFSET
+# elif defined CONFIG_ARCH_MX3
+#  define PHYS_OFFSET          MX3x_PHYS_OFFSET
+# elif defined CONFIG_ARCH_MXC91231
+#  define PHYS_OFFSET          MXC91231_PHYS_OFFSET
+# endif
 #endif
 
 #if defined(CONFIG_MX1_VIDEO)