| 1 | --- a/arch/arm/mach-cns3xxx/core.c |
| 2 | +++ b/arch/arm/mach-cns3xxx/core.c |
| 3 | @@ -19,6 +19,7 @@ |
| 4 | #include <asm/mach/time.h> |
| 5 | #include <asm/mach/irq.h> |
| 6 | #include <asm/hardware/gic.h> |
| 7 | +#include <asm/smp_twd.h> |
| 8 | #include <asm/hardware/cache-l2x0.h> |
| 9 | #include <mach/cns3xxx.h> |
| 10 | #include "core.h" |
| 11 | @@ -73,6 +74,9 @@ static struct map_desc cns3xxx_io_desc[] |
| 12 | |
| 13 | void __init cns3xxx_map_io(void) |
| 14 | { |
| 15 | +#ifdef CONFIG_LOCAL_TIMERS |
| 16 | + twd_base = (void __iomem *) CNS3XXX_TC11MP_TWD_BASE_VIRT; |
| 17 | +#endif |
| 18 | iotable_init(cns3xxx_io_desc, ARRAY_SIZE(cns3xxx_io_desc)); |
| 19 | } |
| 20 | |
| 21 | |