ARM: zynq: move arm-specific sys_timer out of ttc
Move the sys_timer definition out of ttc driver and make it part of the common zynq code. This is preparation for renaming and COMMON_CLK support. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Tested-by: Michal Simek <michal.simek@xilinx.com>
Tento commit je obsažen v:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <asm/mach/arch.h>
|
||||
#include <asm/mach/map.h>
|
||||
#include <asm/mach/time.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/hardware/gic.h>
|
||||
@@ -93,6 +94,18 @@ static struct map_desc io_desc[] __initdata = {
|
||||
|
||||
};
|
||||
|
||||
static void __init xilinx_zynq_timer_init(void)
|
||||
{
|
||||
xttcpss_timer_init();
|
||||
}
|
||||
|
||||
/*
|
||||
* Instantiate and initialize the system timer structure
|
||||
*/
|
||||
static struct sys_timer xttcpss_sys_timer = {
|
||||
.init = xilinx_zynq_timer_init,
|
||||
};
|
||||
|
||||
/**
|
||||
* xilinx_map_io() - Create memory mappings needed for early I/O.
|
||||
*/
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele