diff options
Diffstat (limited to 'arch/arm/mach-davinci/dm644x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 5c6a7b175786..8e9385c34853 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.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" |
@@ -559,6 +560,18 @@ static void __iomem *dm644x_psc_bases[] = { | |||
559 | IO_ADDRESS(DAVINCI_PWR_SLEEP_CNTRL_BASE), | 560 | IO_ADDRESS(DAVINCI_PWR_SLEEP_CNTRL_BASE), |
560 | }; | 561 | }; |
561 | 562 | ||
563 | /* | ||
564 | * T0_BOT: Timer 0, bottom: clockevent source for hrtimers | ||
565 | * T0_TOP: Timer 0, top : clocksource for generic timekeeping | ||
566 | * T1_BOT: Timer 1, bottom: (used by DSP in TI DSPLink code) | ||
567 | * T1_TOP: Timer 1, top : <unused> | ||
568 | */ | ||
569 | struct davinci_timer_info dm644x_timer_info = { | ||
570 | .timers = davinci_timer_instance, | ||
571 | .clockevent_id = T0_BOT, | ||
572 | .clocksource_id = T0_TOP, | ||
573 | }; | ||
574 | |||
562 | static struct davinci_soc_info davinci_soc_info_dm644x = { | 575 | static struct davinci_soc_info davinci_soc_info_dm644x = { |
563 | .io_desc = dm644x_io_desc, | 576 | .io_desc = dm644x_io_desc, |
564 | .io_desc_num = ARRAY_SIZE(dm644x_io_desc), | 577 | .io_desc_num = ARRAY_SIZE(dm644x_io_desc), |
@@ -575,6 +588,7 @@ static struct davinci_soc_info davinci_soc_info_dm644x = { | |||
575 | .intc_type = DAVINCI_INTC_TYPE_AINTC, | 588 | .intc_type = DAVINCI_INTC_TYPE_AINTC, |
576 | .intc_irq_prios = dm644x_default_priorities, | 589 | .intc_irq_prios = dm644x_default_priorities, |
577 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, | 590 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, |
591 | .timer_info = &dm644x_timer_info, | ||
578 | }; | 592 | }; |
579 | 593 | ||
580 | void __init dm644x_init(void) | 594 | void __init dm644x_init(void) |