diff options
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
| -rw-r--r-- | arch/arm/mach-pxa/generic.c | 23 | 
1 files changed, 15 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 42254175fcf4..04b013fbc98f 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c @@ -25,11 +25,13 @@  #include <asm/mach/map.h>  #include <asm/mach-types.h> +#include <mach/irqs.h>  #include <mach/reset.h>  #include <mach/smemc.h>  #include <mach/pxa3xx-regs.h>  #include "generic.h" +#include <clocksource/pxa.h>  void clear_reset_status(unsigned int mask)  { @@ -57,6 +59,15 @@ unsigned long get_clock_tick_rate(void)  EXPORT_SYMBOL(get_clock_tick_rate);  /* + * For non device-tree builds, keep legacy timer init + */ +void __init pxa_timer_init(void) +{ +	pxa_timer_nodt_init(IRQ_OST0, io_p2v(0x40a00000), +			    get_clock_tick_rate()); +} + +/*   * Get the clock frequency as reflected by CCCR and the turbo flag.   * We assume these values have been applied via a fcs.   * If info is not 0 we also display the current settings. @@ -79,19 +90,15 @@ EXPORT_SYMBOL(get_clk_frequency_khz);   */  static struct map_desc common_io_desc[] __initdata = {    	{	/* Devs */ -		.virtual	=  0xf2000000, -		.pfn		= __phys_to_pfn(0x40000000), -		.length		= 0x02000000, -		.type		= MT_DEVICE -	}, {	/* UNCACHED_PHYS_0 */ -		.virtual	= 0xff000000, -		.pfn		= __phys_to_pfn(0x00000000), -		.length		= 0x00100000, +		.virtual	= (unsigned long)PERIPH_VIRT, +		.pfn		= __phys_to_pfn(PERIPH_PHYS), +		.length		= PERIPH_SIZE,  		.type		= MT_DEVICE  	}  };  void __init pxa_map_io(void)  { +	debug_ll_io_init();  	iotable_init(ARRAY_AND_SIZE(common_io_desc));  }  |