aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2009-08-31 06:17:59 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 13:21:19 -0500
commit6a28adef21e551602023afc5bba330f8013556d8 (patch)
tree6001f5b92b5550012b6ec9c6a25c3323842ebb2b /arch/arm/mach-davinci
parent3c60a66de662dca6e47951a78b73de1bf081e785 (diff)
davinci: DA8XX/OMAP-L1XX: Avoid use of IO_ADDRESS for SYSCFG module
Avoid use of IO_ADDRESS() for SYSCFG module by doing an ioremap() instead. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r--arch/arm/mach-davinci/da830.c7
-rw-r--r--arch/arm/mach-davinci/da850.c7
-rw-r--r--arch/arm/mach-davinci/devices-da8xx.c2
-rw-r--r--arch/arm/mach-davinci/include/mach/da8xx.h3
4 files changed, 17 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c
index c2224b968311..3d70eae19b59 100644
--- a/arch/arm/mach-davinci/da830.c
+++ b/arch/arm/mach-davinci/da830.c
@@ -1184,7 +1184,6 @@ static struct davinci_soc_info davinci_soc_info_da830 = {
1184 .cpu_clks = da830_clks, 1184 .cpu_clks = da830_clks,
1185 .psc_bases = da830_psc_bases, 1185 .psc_bases = da830_psc_bases,
1186 .psc_bases_num = ARRAY_SIZE(da830_psc_bases), 1186 .psc_bases_num = ARRAY_SIZE(da830_psc_bases),
1187 .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120),
1188 .pinmux_pins = da830_pins, 1187 .pinmux_pins = da830_pins,
1189 .pinmux_pins_num = ARRAY_SIZE(da830_pins), 1188 .pinmux_pins_num = ARRAY_SIZE(da830_pins),
1190 .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT, 1189 .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
@@ -1201,5 +1200,11 @@ static struct davinci_soc_info davinci_soc_info_da830 = {
1201 1200
1202void __init da830_init(void) 1201void __init da830_init(void)
1203{ 1202{
1203 da8xx_syscfg_base = ioremap(DA8XX_SYSCFG_BASE, SZ_4K);
1204 if (WARN(!da8xx_syscfg_base, "Unable to map syscfg module"))
1205 return;
1206
1207 davinci_soc_info_da830.pinmux_base = DA8XX_SYSCFG_VIRT(0x120);
1208
1204 davinci_common_init(&davinci_soc_info_da830); 1209 davinci_common_init(&davinci_soc_info_da830);
1205} 1210}
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index 18c33b6cbfdd..54d1836f1224 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -799,7 +799,6 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
799 .cpu_clks = da850_clks, 799 .cpu_clks = da850_clks,
800 .psc_bases = da850_psc_bases, 800 .psc_bases = da850_psc_bases,
801 .psc_bases_num = ARRAY_SIZE(da850_psc_bases), 801 .psc_bases_num = ARRAY_SIZE(da850_psc_bases),
802 .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120),
803 .pinmux_pins = da850_pins, 802 .pinmux_pins = da850_pins,
804 .pinmux_pins_num = ARRAY_SIZE(da850_pins), 803 .pinmux_pins_num = ARRAY_SIZE(da850_pins),
805 .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT, 804 .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
@@ -816,5 +815,11 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
816 815
817void __init da850_init(void) 816void __init da850_init(void)
818{ 817{
818 da8xx_syscfg_base = ioremap(DA8XX_SYSCFG_BASE, SZ_4K);
819 if (WARN(!da8xx_syscfg_base, "Unable to map syscfg module"))
820 return;
821
822 davinci_soc_info_da850.pinmux_base = DA8XX_SYSCFG_VIRT(0x120);
823
819 davinci_common_init(&davinci_soc_info_da850); 824 davinci_common_init(&davinci_soc_info_da850);
820} 825}
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index a54aa4edc1b0..0102e0a55578 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -43,6 +43,8 @@
43#define DA8XX_MDIO_REG_OFFSET 0x4000 43#define DA8XX_MDIO_REG_OFFSET 0x4000
44#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K 44#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K
45 45
46void __iomem *da8xx_syscfg_base;
47
46static struct plat_serial8250_port da8xx_serial_pdata[] = { 48static struct plat_serial8250_port da8xx_serial_pdata[] = {
47 { 49 {
48 .mapbase = DA8XX_UART0_BASE, 50 .mapbase = DA8XX_UART0_BASE,
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h
index 1c42379a390d..11d2079a8203 100644
--- a/arch/arm/mach-davinci/include/mach/da8xx.h
+++ b/arch/arm/mach-davinci/include/mach/da8xx.h
@@ -18,6 +18,8 @@
18#include <mach/asp.h> 18#include <mach/asp.h>
19#include <mach/mmc.h> 19#include <mach/mmc.h>
20 20
21extern void __iomem *da8xx_syscfg_base;
22
21/* 23/*
22 * The cp_intc interrupt controller for the da8xx isn't in the same 24 * The cp_intc interrupt controller for the da8xx isn't in the same
23 * chunk of physical memory space as the other registers (like it is 25 * chunk of physical memory space as the other registers (like it is
@@ -30,6 +32,7 @@
30#define DA8XX_CP_INTC_VIRT (IO_VIRT - DA8XX_CP_INTC_SIZE - SZ_4K) 32#define DA8XX_CP_INTC_VIRT (IO_VIRT - DA8XX_CP_INTC_SIZE - SZ_4K)
31 33
32#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000) 34#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)
35#define DA8XX_SYSCFG_VIRT(x) (da8xx_syscfg_base + (x))
33 36
34#define DA8XX_PSC0_BASE 0x01c10000 37#define DA8XX_PSC0_BASE 0x01c10000
35#define DA8XX_PLL0_BASE 0x01c11000 38#define DA8XX_PLL0_BASE 0x01c11000