Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191776
b: refs/heads/master
c: 41ac329
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed May 4, 2010
1 parent 8b1b4c8 commit ccf7bda
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b1f7ddf18b75adeb433ef9d91a2e4bd7580facc
refs/heads/master: 41ac329f607add059ae8b063375c5d9d6e7471cf
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ux500/board-mop500.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
.map_io = u8500_map_io,
.init_irq = ux500_init_irq,
/* we re-use nomadik timer here */
.timer = &u8500_timer,
.timer = &ux500_timer,
.init_machine = u8500_init_machine,
MACHINE_END
21 changes: 0 additions & 21 deletions trunk/arch/arm/mach-ux500/cpu-u8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
#include <linux/platform_device.h>
#include <linux/io.h>

#include <asm/localtimer.h>
#include <asm/mach/map.h>
#include <plat/mtu.h>
#include <mach/hardware.h>
#include <mach/setup.h>
#include <mach/devices.h>
Expand Down Expand Up @@ -78,22 +76,3 @@ void __init u8500_init_devices(void)

return ;
}

static void __init u8500_timer_init(void)
{
#ifdef CONFIG_LOCAL_TIMERS
/* Setup the local timer base */
twd_base = __io_address(U8500_TWD_BASE);
#endif
/* Setup the MTU base */
if (cpu_is_u8500ed())
mtu_base = __io_address(U8500_MTU0_BASE_ED);
else
mtu_base = __io_address(U8500_MTU0_BASE);

nmdk_timer_init();
}

struct sys_timer u8500_timer = {
.init = u8500_timer_init,
};
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-ux500/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#include <asm/hardware/cache-l2x0.h>
#include <asm/hardware/gic.h>
#include <asm/mach/map.h>
#include <asm/localtimer.h>

#include <plat/mtu.h>
#include <mach/hardware.h>
#include <mach/setup.h>
#include <mach/devices.h>
Expand Down Expand Up @@ -76,3 +78,22 @@ static int ux500_l2x0_init(void)
}
early_initcall(ux500_l2x0_init);
#endif

static void __init ux500_timer_init(void)
{
#ifdef CONFIG_LOCAL_TIMERS
/* Setup the local timer base */
twd_base = __io_address(UX500_TWD_BASE);
#endif
/* Setup the MTU base */
if (cpu_is_u8500ed())
mtu_base = __io_address(U8500_MTU0_BASE_ED);
else
mtu_base = __io_address(UX500_MTU0_BASE);

nmdk_timer_init();
}

struct sys_timer ux500_timer = {
.init = ux500_timer_init,
};
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ux500/include/mach/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern void nmdk_timer_init(void);
extern void __init amba_add_devices(struct amba_device *devs[], int num);

struct sys_timer;
extern struct sys_timer u8500_timer;
extern struct sys_timer ux500_timer;

#define __IO_DEV_DESC(x, sz) { \
.virtual = IO_ADDRESS(x), \
Expand Down

0 comments on commit ccf7bda

Please sign in to comment.