diff options
author | Mark A. Greer <mgreer@mvista.com> | 2009-04-15 15:40:21 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-26 11:20:31 -0400 |
commit | 951d6f6d703110790256abfce03ced117d2dcc6b (patch) | |
tree | 598b30a93ff618f56579d2c1218088bd908e5125 /arch/arm/mach-davinci/include | |
parent | f64691b3ab795268072e76ddb89290b6277cdf33 (diff) |
davinci: Add watchdog base address flexibility
The watchdog code currently hardcodes the base address
of the timer its using. To support new SoCs, make it
support timers at any address. Use the soc_info structure
to do this.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/common.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/time.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index 90b43be1174e..d63703826a60 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h | |||
@@ -57,6 +57,7 @@ struct davinci_soc_info { | |||
57 | u8 *intc_irq_prios; | 57 | u8 *intc_irq_prios; |
58 | unsigned long intc_irq_num; | 58 | unsigned long intc_irq_num; |
59 | struct davinci_timer_info *timer_info; | 59 | struct davinci_timer_info *timer_info; |
60 | void __iomem *wdt_base; | ||
60 | }; | 61 | }; |
61 | 62 | ||
62 | extern struct davinci_soc_info davinci_soc_info; | 63 | extern struct davinci_soc_info davinci_soc_info; |
diff --git a/arch/arm/mach-davinci/include/mach/time.h b/arch/arm/mach-davinci/include/mach/time.h index 1428d77c989e..1c971d8d8ba8 100644 --- a/arch/arm/mach-davinci/include/mach/time.h +++ b/arch/arm/mach-davinci/include/mach/time.h | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define DAVINCI_TIMER0_BASE (IO_PHYS + 0x21400) | 14 | #define DAVINCI_TIMER0_BASE (IO_PHYS + 0x21400) |
15 | #define DAVINCI_TIMER1_BASE (IO_PHYS + 0x21800) | 15 | #define DAVINCI_TIMER1_BASE (IO_PHYS + 0x21800) |
16 | #define DAVINCI_WDOG_BASE (IO_PHYS + 0x21C00) | ||
16 | 17 | ||
17 | enum { | 18 | enum { |
18 | T0_BOT, | 19 | T0_BOT, |