diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
| -rw-r--r-- | arch/arm/mach-omap2/io.c | 57 | 
1 files changed, 57 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 8d014ba04ab..8976be90c8e 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c @@ -233,6 +233,35 @@ static struct map_desc omap44xx_io_desc[] __initdata = {  };  #endif +#ifdef	CONFIG_SOC_OMAP5 +static struct map_desc omap54xx_io_desc[] __initdata = { +	{ +		.virtual	= L3_54XX_VIRT, +		.pfn		= __phys_to_pfn(L3_54XX_PHYS), +		.length		= L3_54XX_SIZE, +		.type		= MT_DEVICE, +	}, +	{ +		.virtual	= L4_54XX_VIRT, +		.pfn		= __phys_to_pfn(L4_54XX_PHYS), +		.length		= L4_54XX_SIZE, +		.type		= MT_DEVICE, +	}, +	{ +		.virtual	= L4_WK_54XX_VIRT, +		.pfn		= __phys_to_pfn(L4_WK_54XX_PHYS), +		.length		= L4_WK_54XX_SIZE, +		.type		= MT_DEVICE, +	}, +	{ +		.virtual	= L4_PER_54XX_VIRT, +		.pfn		= __phys_to_pfn(L4_PER_54XX_PHYS), +		.length		= L4_PER_54XX_SIZE, +		.type		= MT_DEVICE, +	}, +}; +#endif +  #ifdef CONFIG_SOC_OMAP2420  void __init omap242x_map_common_io(void)  { @@ -278,6 +307,12 @@ void __init omap44xx_map_common_io(void)  }  #endif +#ifdef CONFIG_SOC_OMAP5 +void __init omap5_map_common_io(void) +{ +	iotable_init(omap54xx_io_desc, ARRAY_SIZE(omap54xx_io_desc)); +} +#endif  /*   * omap2_init_reprogram_sdrc - reprogram SDRC timing parameters   * @@ -477,6 +512,19 @@ void __init ti81xx_init_late(void)  }  #endif +#ifdef CONFIG_SOC_AM33XX +void __init am33xx_init_early(void) +{ +	omap2_set_globals_am33xx(); +	omap3xxx_check_revision(); +	ti81xx_check_features(); +	omap_common_init_early(); +	am33xx_voltagedomains_init(); +	am33xx_powerdomains_init(); +	am33xx_clockdomains_init(); +} +#endif +  #ifdef CONFIG_ARCH_OMAP4  void __init omap4430_init_early(void)  { @@ -500,6 +548,15 @@ void __init omap4430_init_late(void)  }  #endif +#ifdef CONFIG_SOC_OMAP5 +void __init omap5_init_early(void) +{ +	omap2_set_globals_5xxx(); +	omap5xxx_check_revision(); +	omap_common_init_early(); +} +#endif +  void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,  				      struct omap_sdrc_params *sdrc_cs1)  {  |