diff options
Diffstat (limited to 'arch/arm/mach-davinci/dm646x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index beb522e8a1a5..219063f4d000 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <mach/irqs.h> | 22 | #include <mach/irqs.h> |
23 | #include <mach/psc.h> | 23 | #include <mach/psc.h> |
24 | #include <mach/mux.h> | 24 | #include <mach/mux.h> |
25 | #include <mach/time.h> | ||
25 | #include <mach/common.h> | 26 | #include <mach/common.h> |
26 | 27 | ||
27 | #include "clock.h" | 28 | #include "clock.h" |
@@ -538,6 +539,18 @@ static void __iomem *dm646x_psc_bases[] = { | |||
538 | IO_ADDRESS(DAVINCI_PWR_SLEEP_CNTRL_BASE), | 539 | IO_ADDRESS(DAVINCI_PWR_SLEEP_CNTRL_BASE), |
539 | }; | 540 | }; |
540 | 541 | ||
542 | /* | ||
543 | * T0_BOT: Timer 0, bottom: clockevent source for hrtimers | ||
544 | * T0_TOP: Timer 0, top : clocksource for generic timekeeping | ||
545 | * T1_BOT: Timer 1, bottom: (used by DSP in TI DSPLink code) | ||
546 | * T1_TOP: Timer 1, top : <unused> | ||
547 | */ | ||
548 | struct davinci_timer_info dm646x_timer_info = { | ||
549 | .timers = davinci_timer_instance, | ||
550 | .clockevent_id = T0_BOT, | ||
551 | .clocksource_id = T0_TOP, | ||
552 | }; | ||
553 | |||
541 | static struct davinci_soc_info davinci_soc_info_dm646x = { | 554 | static struct davinci_soc_info davinci_soc_info_dm646x = { |
542 | .io_desc = dm646x_io_desc, | 555 | .io_desc = dm646x_io_desc, |
543 | .io_desc_num = ARRAY_SIZE(dm646x_io_desc), | 556 | .io_desc_num = ARRAY_SIZE(dm646x_io_desc), |
@@ -554,6 +567,7 @@ static struct davinci_soc_info davinci_soc_info_dm646x = { | |||
554 | .intc_type = DAVINCI_INTC_TYPE_AINTC, | 567 | .intc_type = DAVINCI_INTC_TYPE_AINTC, |
555 | .intc_irq_prios = dm646x_default_priorities, | 568 | .intc_irq_prios = dm646x_default_priorities, |
556 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, | 569 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, |
570 | .timer_info = &dm646x_timer_info, | ||
557 | }; | 571 | }; |
558 | 572 | ||
559 | void __init dm646x_init(void) | 573 | void __init dm646x_init(void) |