From: g.liakhovetski@gmx.de (Guennadi Liakhovetski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 06/20] imx/mach-mx3: use constants namespaced by the corresponding SOC (easy part)
Date: Wed, 16 Dec 2009 21:48:37 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0912162147050.5283@axis700.grange> (raw)
In-Reply-To: <1260990002-24168-6-git-send-email-u.kleine-koenig@pengutronix.de>
On Wed, 16 Dec 2009, Uwe Kleine-K?nig wrote:
> This just leaves cpu.c, devices.c and mm.c to clean up. As these files
> are used on more than one SOC they need some more work.
>
> Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: Alberto Panizzo <maramaopercheseimorto@gmail.com>
> Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
> Cc: Daniel Mack <daniel@caiaq.de>
> Cc: Guennadi Liakhovetski <lg@denx.de>
> Cc: Yoichi Yuasa <yuasa@linux-mips.org>
> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Cc: Magnus Lilja <lilja.magnus@gmail.com>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Harro Haan <hrhaan@yahoo.com>
> Cc: Jean Delvare <khali@linux-fr.org>
> Cc: Luotao Fu <l.fu@pengutronix.de>
> Cc: Ilya Yanok <yanok@emcraft.com>
> ---
> arch/arm/mach-mx3/armadillo5x0.c | 12 ++++++------
> arch/arm/mach-mx3/clock-imx35.c | 4 ++--
> arch/arm/mach-mx3/clock.c | 4 ++--
> arch/arm/mach-mx3/crm_regs.h | 2 +-
> arch/arm/mach-mx3/iomux.c | 2 +-
> arch/arm/mach-mx3/kzmarm11.c | 20 ++++++++++----------
> arch/arm/mach-mx3/mx31ads.c | 14 +++++++-------
> arch/arm/mach-mx3/mx31lilly.c | 8 ++++----
> arch/arm/mach-mx3/mx31lite.c | 14 +++++++-------
> arch/arm/mach-mx3/mx31moboard.c | 4 ++--
> arch/arm/mach-mx3/mx31pdk.c | 10 +++++-----
> arch/arm/mach-mx3/mx35pdk.c | 4 ++--
> arch/arm/mach-mx3/pcm037.c | 16 ++++++++--------
> arch/arm/mach-mx3/pcm043.c | 4 ++--
> arch/arm/mach-mx3/qong.c | 14 +++++++-------
> 15 files changed, 66 insertions(+), 66 deletions(-)
>
> diff --git a/arch/arm/mach-mx3/armadillo5x0.c b/arch/arm/mach-mx3/armadillo5x0.c
> index 54aab40..aac5f81 100644
> --- a/arch/arm/mach-mx3/armadillo5x0.c
> +++ b/arch/arm/mach-mx3/armadillo5x0.c
> @@ -182,8 +182,8 @@ static struct physmap_flash_data armadillo5x0_nor_flash_pdata = {
>
> static struct resource armadillo5x0_nor_flash_resource = {
> .flags = IORESOURCE_MEM,
> - .start = CS0_BASE_ADDR,
> - .end = CS0_BASE_ADDR + SZ_64M - 1,
> + .start = MX31_CS0_BASE_ADDR,
> + .end = MX31_CS0_BASE_ADDR + SZ_64M - 1,
> };
>
> static struct platform_device armadillo5x0_nor_flash = {
> @@ -311,8 +311,8 @@ static struct imxmmc_platform_data sdhc_pdata = {
> */
> static struct resource armadillo5x0_smc911x_resources[] = {
> {
> - .start = CS3_BASE_ADDR,
> - .end = CS3_BASE_ADDR + SZ_32M - 1,
> + .start = MX31_CS3_BASE_ADDR,
> + .end = MX31_CS3_BASE_ADDR + SZ_32M - 1,
> .flags = IORESOURCE_MEM,
> }, {
> .start = IOMUX_TO_IRQ(MX31_PIN_GPIO1_0),
> @@ -406,8 +406,8 @@ static struct sys_timer armadillo5x0_timer = {
>
> MACHINE_START(ARMADILLO5X0, "Armadillo-500")
> /* Maintainer: Alberto Panizzo */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
While modifying this line, you could also drop superfluous parenthesis in
this and all other files, that you touch.
Thanks
Guennadi
> .boot_params = PHYS_OFFSET + 0x00000100,
> .map_io = mx31_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c
> index 7584b4c..e65e862 100644
> --- a/arch/arm/mach-mx3/clock-imx35.c
> +++ b/arch/arm/mach-mx3/clock-imx35.c
> @@ -28,7 +28,7 @@
> #include <mach/hardware.h>
> #include <mach/common.h>
>
> -#define CCM_BASE IO_ADDRESS(CCM_BASE_ADDR)
> +#define CCM_BASE IO_ADDRESS(MX35_CCM_BASE_ADDR)
>
> #define CCM_CCMR 0x00
> #define CCM_PDR0 0x04
> @@ -504,7 +504,7 @@ int __init mx35_clocks_init()
> __raw_writel((3 << 26) | ll, CCM_BASE + CCM_CGR2);
> __raw_writel(0, CCM_BASE + CCM_CGR3);
>
> - mxc_timer_init(&gpt_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT);
> + mxc_timer_init(&gpt_clk, IO_ADDRESS(MX35_GPT1_BASE_ADDR), MX35_INT_GPT);
>
> return 0;
> }
> diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock.c
> index 27a318a..cc03a61 100644
> --- a/arch/arm/mach-mx3/clock.c
> +++ b/arch/arm/mach-mx3/clock.c
> @@ -618,14 +618,14 @@ int __init mx31_clocks_init(unsigned long fref)
>
> mx31_read_cpu_rev();
>
> - if (mx31_revision() >= CHIP_REV_2_0) {
> + if (mx31_revision() >= MX31_CHIP_REV_2_0) {
> reg = __raw_readl(MXC_CCM_PMCR1);
> /* No PLL restart on DVFS switch; enable auto EMI handshake */
> reg |= MXC_CCM_PMCR1_PLLRDIS | MXC_CCM_PMCR1_EMIRQ_EN;
> __raw_writel(reg, MXC_CCM_PMCR1);
> }
>
> - mxc_timer_init(&ipg_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT);
> + mxc_timer_init(&ipg_clk, IO_ADDRESS(MX31_GPT1_BASE_ADDR), MX31_INT_GPT);
>
> return 0;
> }
> diff --git a/arch/arm/mach-mx3/crm_regs.h b/arch/arm/mach-mx3/crm_regs.h
> index adfa362..e25cd92 100644
> --- a/arch/arm/mach-mx3/crm_regs.h
> +++ b/arch/arm/mach-mx3/crm_regs.h
> @@ -24,7 +24,7 @@
> #define CKIH_CLK_FREQ_27MHZ 27000000
> #define CKIL_CLK_FREQ 32768
>
> -#define MXC_CCM_BASE IO_ADDRESS(CCM_BASE_ADDR)
> +#define MXC_CCM_BASE IO_ADDRESS(MX31_CCM_BASE_ADDR)
>
> /* Register addresses */
> #define MXC_CCM_CCMR (MXC_CCM_BASE + 0x00)
> diff --git a/arch/arm/mach-mx3/iomux.c b/arch/arm/mach-mx3/iomux.c
> index c66ccbc..6381e56 100644
> --- a/arch/arm/mach-mx3/iomux.c
> +++ b/arch/arm/mach-mx3/iomux.c
> @@ -29,7 +29,7 @@
> /*
> * IOMUX register (base) addresses
> */
> -#define IOMUX_BASE IO_ADDRESS(IOMUXC_BASE_ADDR)
> +#define IOMUX_BASE IO_ADDRESS(MX31_IOMUXC_BASE_ADDR)
> #define IOMUXINT_OBS1 (IOMUX_BASE + 0x000)
> #define IOMUXINT_OBS2 (IOMUX_BASE + 0x004)
> #define IOMUXGPR (IOMUX_BASE + 0x008)
> diff --git a/arch/arm/mach-mx3/kzmarm11.c b/arch/arm/mach-mx3/kzmarm11.c
> index 6fa99ce..849631e 100644
> --- a/arch/arm/mach-mx3/kzmarm11.c
> +++ b/arch/arm/mach-mx3/kzmarm11.c
> @@ -128,8 +128,8 @@ static struct smsc911x_platform_config kzm_smsc9118_config = {
>
> static struct resource kzm_smsc9118_resources[] = {
> {
> - .start = CS5_BASE_ADDR,
> - .end = CS5_BASE_ADDR + SZ_128K - 1,
> + .start = MX31_CS5_BASE_ADDR,
> + .end = MX31_CS5_BASE_ADDR + SZ_128K - 1,
> .flags = IORESOURCE_MEM,
> },
> {
> @@ -222,15 +222,15 @@ static void __init kzm_board_init(void)
> */
> static struct map_desc kzm_io_desc[] __initdata = {
> {
> - .virtual = CS4_BASE_ADDR_VIRT,
> - .pfn = __phys_to_pfn(CS4_BASE_ADDR),
> - .length = CS4_SIZE,
> + .virtual = MX31_CS4_BASE_ADDR_VIRT,
> + .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR),
> + .length = MX31_CS4_SIZE,
> .type = MT_DEVICE
> },
> {
> - .virtual = CS5_BASE_ADDR_VIRT,
> - .pfn = __phys_to_pfn(CS5_BASE_ADDR),
> - .length = CS5_SIZE,
> + .virtual = MX31_CS5_BASE_ADDR_VIRT,
> + .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR),
> + .length = MX31_CS5_SIZE,
> .type = MT_DEVICE
> },
> };
> @@ -258,8 +258,8 @@ static struct sys_timer kzm_timer = {
> * initialize __mach_desc_KZM_ARM11_01 data structure.
> */
> MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01")
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = kzm_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mx31ads.c
> index 3e7bafa..6699116 100644
> --- a/arch/arm/mach-mx3/mx31ads.c
> +++ b/arch/arm/mach-mx3/mx31ads.c
> @@ -60,7 +60,7 @@
> static struct plat_serial8250_port serial_platform_data[] = {
> {
> .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTA),
> - .mapbase = (unsigned long)(CS4_BASE_ADDR + PBC_SC16C652_UARTA),
> + .mapbase = (unsigned long)(MX31_CS4_BASE_ADDR + PBC_SC16C652_UARTA),
> .irq = EXPIO_INT_XUART_INTA,
> .uartclk = 14745600,
> .regshift = 0,
> @@ -68,7 +68,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
> .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ,
> }, {
> .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTB),
> - .mapbase = (unsigned long)(CS4_BASE_ADDR + PBC_SC16C652_UARTB),
> + .mapbase = (unsigned long)(MX31_CS4_BASE_ADDR + PBC_SC16C652_UARTB),
> .irq = EXPIO_INT_XUART_INTB,
> .uartclk = 14745600,
> .regshift = 0,
> @@ -494,9 +494,9 @@ static void mxc_init_i2c(void)
> */
> static struct map_desc mx31ads_io_desc[] __initdata = {
> {
> - .virtual = CS4_BASE_ADDR_VIRT,
> - .pfn = __phys_to_pfn(CS4_BASE_ADDR),
> - .length = CS4_SIZE / 2,
> + .virtual = MX31_CS4_BASE_ADDR_VIRT,
> + .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR),
> + .length = MX31_CS4_SIZE / 2,
> .type = MT_DEVICE
> },
> };
> @@ -541,8 +541,8 @@ static struct sys_timer mx31ads_timer = {
> */
> MACHINE_START(MX31ADS, "Freescale MX31ADS")
> /* Maintainer: Freescale Semiconductor, Inc. */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31ads_map_io,
> .init_irq = mx31ads_init_irq,
> diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mx31lilly.c
> index 9ce029f..ffccea9 100644
> --- a/arch/arm/mach-mx3/mx31lilly.c
> +++ b/arch/arm/mach-mx3/mx31lilly.c
> @@ -57,8 +57,8 @@
>
> static struct resource smsc91x_resources[] = {
> {
> - .start = CS4_BASE_ADDR,
> - .end = CS4_BASE_ADDR + 0xffff,
> + .start = MX31_CS4_BASE_ADDR,
> + .end = MX31_CS4_BASE_ADDR + 0xffff,
> .flags = IORESOURCE_MEM,
> },
> {
> @@ -195,8 +195,8 @@ static struct sys_timer mx31lilly_timer = {
> };
>
> MACHINE_START(LILLY1131, "INCO startec LILLY-1131")
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c
> index 4697164..db741be 100644
> --- a/arch/arm/mach-mx3/mx31lite.c
> +++ b/arch/arm/mach-mx3/mx31lite.c
> @@ -82,8 +82,8 @@ static struct smsc911x_platform_config smsc911x_config = {
>
> static struct resource smsc911x_resources[] = {
> {
> - .start = CS4_BASE_ADDR,
> - .end = CS4_BASE_ADDR + 0x100,
> + .start = MX31_CS4_BASE_ADDR,
> + .end = MX31_CS4_BASE_ADDR + 0x100,
> .flags = IORESOURCE_MEM,
> }, {
> .start = IOMUX_TO_IRQ(MX31_PIN_SFS6),
> @@ -212,9 +212,9 @@ static struct platform_device physmap_flash_device = {
> */
> static struct map_desc mx31lite_io_desc[] __initdata = {
> {
> - .virtual = CS4_BASE_ADDR_VIRT,
> - .pfn = __phys_to_pfn(CS4_BASE_ADDR),
> - .length = CS4_SIZE,
> + .virtual = MX31_CS4_BASE_ADDR_VIRT,
> + .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR),
> + .length = MX31_CS4_SIZE,
> .type = MT_DEVICE
> }
> };
> @@ -283,8 +283,8 @@ struct sys_timer mx31lite_timer = {
>
> MACHINE_START(MX31LITE, "LogicPD i.MX31 SOM")
> /* Maintainer: Freescale Semiconductor, Inc. */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31lite_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c
> index b705291..be7d277 100644
> --- a/arch/arm/mach-mx3/mx31moboard.c
> +++ b/arch/arm/mach-mx3/mx31moboard.c
> @@ -564,8 +564,8 @@ struct sys_timer mx31moboard_timer = {
>
> MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard")
> /* Maintainer: Valentin Longchamp, EPFL Mobots group */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mx31pdk.c
> index 18715f1..e71e3b4 100644
> --- a/arch/arm/mach-mx3/mx31pdk.c
> +++ b/arch/arm/mach-mx3/mx31pdk.c
> @@ -211,9 +211,9 @@ static int __init mx31pdk_init_expio(void)
> */
> static struct map_desc mx31pdk_io_desc[] __initdata = {
> {
> - .virtual = CS5_BASE_ADDR_VIRT,
> - .pfn = __phys_to_pfn(CS5_BASE_ADDR),
> - .length = CS5_SIZE,
> + .virtual = MX31_CS5_BASE_ADDR_VIRT,
> + .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR),
> + .length = MX31_CS5_SIZE,
> .type = MT_DEVICE,
> },
> };
> @@ -256,8 +256,8 @@ static struct sys_timer mx31pdk_timer = {
> */
> MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
> /* Maintainer: Freescale Semiconductor, Inc. */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31pdk_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/mx35pdk.c b/arch/arm/mach-mx3/mx35pdk.c
> index 0bbc65e..2d11bf0 100644
> --- a/arch/arm/mach-mx3/mx35pdk.c
> +++ b/arch/arm/mach-mx3/mx35pdk.c
> @@ -106,8 +106,8 @@ struct sys_timer mx35pdk_timer = {
>
> MACHINE_START(MX35_3DS, "Freescale MX35PDK")
> /* Maintainer: Freescale Semiconductor, Inc */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX35_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx35_map_io,
> .init_irq = mx35_init_irq,
> diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c
> index 6cbaabe..24183aa 100644
> --- a/arch/arm/mach-mx3/pcm037.c
> +++ b/arch/arm/mach-mx3/pcm037.c
> @@ -248,8 +248,8 @@ static struct imxuart_platform_data uart_pdata = {
>
> static struct resource smsc911x_resources[] = {
> {
> - .start = CS1_BASE_ADDR + 0x300,
> - .end = CS1_BASE_ADDR + 0x300 + SZ_64K - 1,
> + .start = MX31_CS1_BASE_ADDR + 0x300,
> + .end = MX31_CS1_BASE_ADDR + 0x300 + SZ_64K - 1,
> .flags = IORESOURCE_MEM,
> }, {
> .start = IOMUX_TO_IRQ(MX31_PIN_GPIO3_1),
> @@ -281,8 +281,8 @@ static struct platdata_mtd_ram pcm038_sram_data = {
> };
>
> static struct resource pcm038_sram_resource = {
> - .start = CS4_BASE_ADDR,
> - .end = CS4_BASE_ADDR + 512 * 1024 - 1,
> + .start = MX31_CS4_BASE_ADDR,
> + .end = MX31_CS4_BASE_ADDR + 512 * 1024 - 1,
> .flags = IORESOURCE_MEM,
> };
>
> @@ -518,8 +518,8 @@ static struct mx3fb_platform_data mx3fb_pdata = {
>
> static struct resource pcm970_sja1000_resources[] = {
> {
> - .start = CS5_BASE_ADDR,
> - .end = CS5_BASE_ADDR + 0x100 - 1,
> + .start = MX31_CS5_BASE_ADDR,
> + .end = MX31_CS5_BASE_ADDR + 0x100 - 1,
> .flags = IORESOURCE_MEM,
> }, {
> .start = IOMUX_TO_IRQ(IOMUX_PIN(48, 105)),
> @@ -618,8 +618,8 @@ struct sys_timer pcm037_timer = {
>
> MACHINE_START(PCM037, "Phytec Phycore pcm037")
> /* Maintainer: Pengutronix */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31_map_io,
> .init_irq = mx31_init_irq,
> diff --git a/arch/arm/mach-mx3/pcm043.c b/arch/arm/mach-mx3/pcm043.c
> index e3aa829..1212194 100644
> --- a/arch/arm/mach-mx3/pcm043.c
> +++ b/arch/arm/mach-mx3/pcm043.c
> @@ -248,8 +248,8 @@ struct sys_timer pcm043_timer = {
>
> MACHINE_START(PCM043, "Phytec Phycore pcm043")
> /* Maintainer: Pengutronix */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX35_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx35_map_io,
> .init_irq = mx35_init_irq,
> diff --git a/arch/arm/mach-mx3/qong.c b/arch/arm/mach-mx3/qong.c
> index 044511f..3c1e736 100644
> --- a/arch/arm/mach-mx3/qong.c
> +++ b/arch/arm/mach-mx3/qong.c
> @@ -43,7 +43,7 @@
> #define QONG_FPGA_VERSION(major, minor, rev) \
> (((major & 0xF) << 12) | ((minor & 0xF) << 8) | (rev & 0xFF))
>
> -#define QONG_FPGA_BASEADDR CS1_BASE_ADDR
> +#define QONG_FPGA_BASEADDR MX31_CS1_BASE_ADDR
> #define QONG_FPGA_PERIPH_SIZE (1 << 24)
>
> #define QONG_FPGA_CTRL_BASEADDR QONG_FPGA_BASEADDR
> @@ -115,8 +115,8 @@ static struct physmap_flash_data qong_flash_data = {
> };
>
> static struct resource qong_flash_resource = {
> - .start = CS0_BASE_ADDR,
> - .end = CS0_BASE_ADDR + QONG_NOR_SIZE - 1,
> + .start = MX31_CS0_BASE_ADDR,
> + .end = MX31_CS0_BASE_ADDR + QONG_NOR_SIZE - 1,
> .flags = IORESOURCE_MEM,
> };
>
> @@ -180,8 +180,8 @@ static struct platform_nand_data qong_nand_data = {
> };
>
> static struct resource qong_nand_resource = {
> - .start = CS3_BASE_ADDR,
> - .end = CS3_BASE_ADDR + SZ_32M - 1,
> + .start = MX31_CS3_BASE_ADDR,
> + .end = MX31_CS3_BASE_ADDR + SZ_32M - 1,
> .flags = IORESOURCE_MEM,
> };
>
> @@ -275,8 +275,8 @@ static struct sys_timer qong_timer = {
>
> MACHINE_START(QONG, "Dave/DENX QongEVB-LITE")
> /* Maintainer: DENX Software Engineering GmbH */
> - .phys_io = AIPS1_BASE_ADDR,
> - .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + .phys_io = MX31_AIPS1_BASE_ADDR,
> + .io_pg_offst = ((MX31_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> .boot_params = PHYS_OFFSET + 0x100,
> .map_io = mx31_map_io,
> .init_irq = mx31_init_irq,
> --
> 1.6.5.2
>
>
>
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
next prev parent reply other threads:[~2009-12-16 20:48 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 18:52 [PATCH 00/20] imx cleanup series Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 01/20] ARM: MX3: make CPU revision number detection work on all boards Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 02/20] imx/mx2: fold crm_regs.h into its only consumer Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 03/20] imx/clock-imx21: use a macro to define registers Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 04/20] imx/clock-imx27: " Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 05/20] imx/mach-mx2: use constants namespaced by the corresponding SOC (easy part) Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 06/20] imx/mach-mx3: " Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 07/20] imx/mx3: rename clock.c and iomux.c to {clock, iomux}-imx31.c Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 08/20] imx/mx1: add newline at end of Makefile Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 09/20] imx/mx1: rename files defining a machine to mach-$mach.c Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 10/20] imx: rename Kconfig symbol for "Eukrea CPUIMX27 module" Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 11/20] imx: rename Kconfig symbol for "LogicPD MX27 LITEKIT platform" Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 12/20] imx/mx2: rename files defining a machine to mach-$mach.c Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 13/20] imx/mx3: " Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 14/20] imx: provide helper macro to define IO_ADDRESS Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 15/20] imx21: define and use MX21_IO_ADDRESS Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 16/20] imx27: define and use MX27_IO_ADDRESS Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 17/20] imx31: define and use MX31_IO_ADDRESS Uwe Kleine-König
2009-12-16 18:59 ` [PATCH 18/20] imx25: redefine MX25_IO_ADDRESS using IMX_IO_ADDRESS Uwe Kleine-König
2009-12-16 19:00 ` [PATCH 19/20] imx35: define and use MX35_IO_ADDRESS Uwe Kleine-König
2009-12-16 19:00 ` [PATCH 20/20] mx3/kzm_arm11_01: define and use board specific IO_ADDRESS macro Uwe Kleine-König
2009-12-17 7:06 ` [PATCH 16/20] imx27: define and use MX27_IO_ADDRESS Lothar Waßmann
2009-12-17 8:28 ` Sascha Hauer
2009-12-17 10:05 ` Uwe Kleine-König
2009-12-17 11:49 ` Lothar Waßmann
2009-12-17 13:17 ` Uwe Kleine-König
2009-12-16 20:58 ` [PATCH 09/20] imx/mx1: rename files defining a machine to mach-$mach.c Guennadi Liakhovetski
2009-12-17 9:32 ` Uwe Kleine-König
2009-12-16 20:48 ` Guennadi Liakhovetski [this message]
2009-12-17 7:16 ` [PATCH 04/20] imx/clock-imx27: use a macro to define registers Lothar Waßmann
2009-12-17 9:58 ` Uwe Kleine-König
2010-01-08 16:15 ` [PATCH 00/20] imx cleanup series Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 01/25] imx/mx2: fold crm_regs.h into its only consumer Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 02/25] imx/clock-imx21: use a macro to define registers Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 03/25] imx/clock-imx27: " Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 04/25] imx/mach-mx2: use constants namespaced by the corresponding SOC (easy part) Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 05/25] imx/mach-mx3: " Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 06/25] imx/mx3: rename clock.c and iomux.c to {clock, iomux}-imx31.c Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 07/25] imx/mx1: add newline at end of Makefile Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 08/25] imx/mx1: rename files defining a machine to mach-$mach.c Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 09/25] imx: rename Kconfig symbol for "Eukrea CPUIMX27 module" Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 10/25] imx: rename Kconfig symbol for "LogicPD MX27 LITEKIT platform" Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 11/25] imx/mx2: rename files defining a machine to mach-$mach.c Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 12/25] imx/mx3: " Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 13/25] imx: provide helper macro to define IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 14/25] imx21: define and use MX21_IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 15/25] imx27: define and use MX27_IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 16/25] imx31: define and use MX31_IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 17/25] imx25: redefine MX25_IO_ADDRESS using IMX_IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 18/25] imx35: define and use MX35_IO_ADDRESS Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 19/25] mx3/kzm_arm11_01: define and use board specific IO_ADDRESS macro Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 20/25] imx: mangle addresses after adding the offset Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 21/25] imx: only define deprecated symbols conditionally Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 22/25] imx: remove mx1ads defconfig Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 23/25] imx: remove unneeded include of mach/hardware.h Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 24/25] imx: properly protect mach/mx{1, [25][157x]}.h from multiple inclusion Uwe Kleine-König
2010-01-08 16:17 ` [PATCH 25/25] imx: define functions to configure chip selects in the WEIM Uwe Kleine-König
2010-02-02 13:43 ` [PATCH 21/25] imx: only define deprecated symbols conditionally Jiri Kosina
2010-02-02 13:44 ` Jiri Kosina
2010-02-02 14:33 ` Uwe Kleine-König
2010-02-04 1:29 ` [PATCH 08/25] imx/mx1: rename files defining a machine to mach-$mach.c Amit Kucheria
2010-02-04 8:45 ` Uwe Kleine-König
2010-02-05 17:38 ` Amit Kucheria
2010-02-04 12:06 ` Mark Brown
2010-02-04 12:25 ` Eric Miao
2010-01-14 10:24 ` [PATCH 00/20] imx cleanup series Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0912162147050.5283@axis700.grange \
--to=g.liakhovetski@gmx.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).