diff options
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/include/mach/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 16 |
3 files changed, 8 insertions, 26 deletions
diff --git a/arch/arm/mach-integrator/include/mach/uncompress.h b/arch/arm/mach-integrator/include/mach/uncompress.h index 30452f00a164..8f3cc9954c16 100644 --- a/arch/arm/mach-integrator/include/mach/uncompress.h +++ b/arch/arm/mach-integrator/include/mach/uncompress.h | |||
@@ -46,5 +46,3 @@ static inline void flush(void) | |||
46 | * nothing to do | 46 | * nothing to do |
47 | */ | 47 | */ |
48 | #define arch_decomp_setup() | 48 | #define arch_decomp_setup() |
49 | |||
50 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 592c168f4b62..ea961445e0e9 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -425,7 +425,7 @@ void __init ap_init_early(void) | |||
425 | 425 | ||
426 | #ifdef CONFIG_OF | 426 | #ifdef CONFIG_OF |
427 | 427 | ||
428 | static void __init ap_init_timer_of(void) | 428 | static void __init ap_of_timer_init(void) |
429 | { | 429 | { |
430 | struct device_node *node; | 430 | struct device_node *node; |
431 | const char *path; | 431 | const char *path; |
@@ -464,10 +464,6 @@ static void __init ap_init_timer_of(void) | |||
464 | integrator_clockevent_init(rate, base, irq); | 464 | integrator_clockevent_init(rate, base, irq); |
465 | } | 465 | } |
466 | 466 | ||
467 | static struct sys_timer ap_of_timer = { | ||
468 | .init = ap_init_timer_of, | ||
469 | }; | ||
470 | |||
471 | static const struct of_device_id fpga_irq_of_match[] __initconst = { | 467 | static const struct of_device_id fpga_irq_of_match[] __initconst = { |
472 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, | 468 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, |
473 | { /* Sentinel */ } | 469 | { /* Sentinel */ } |
@@ -586,7 +582,7 @@ DT_MACHINE_START(INTEGRATOR_AP_DT, "ARM Integrator/AP (Device Tree)") | |||
586 | .init_early = ap_init_early, | 582 | .init_early = ap_init_early, |
587 | .init_irq = ap_init_irq_of, | 583 | .init_irq = ap_init_irq_of, |
588 | .handle_irq = fpga_handle_irq, | 584 | .handle_irq = fpga_handle_irq, |
589 | .timer = &ap_of_timer, | 585 | .init_time = ap_of_timer_init, |
590 | .init_machine = ap_init_of, | 586 | .init_machine = ap_init_of, |
591 | .restart = integrator_restart, | 587 | .restart = integrator_restart, |
592 | .dt_compat = ap_dt_board_compat, | 588 | .dt_compat = ap_dt_board_compat, |
@@ -637,7 +633,7 @@ static struct platform_device cfi_flash_device = { | |||
637 | .resource = &cfi_flash_resource, | 633 | .resource = &cfi_flash_resource, |
638 | }; | 634 | }; |
639 | 635 | ||
640 | static void __init ap_init_timer(void) | 636 | static void __init ap_timer_init(void) |
641 | { | 637 | { |
642 | struct clk *clk; | 638 | struct clk *clk; |
643 | unsigned long rate; | 639 | unsigned long rate; |
@@ -656,10 +652,6 @@ static void __init ap_init_timer(void) | |||
656 | IRQ_TIMERINT1); | 652 | IRQ_TIMERINT1); |
657 | } | 653 | } |
658 | 654 | ||
659 | static struct sys_timer ap_timer = { | ||
660 | .init = ap_init_timer, | ||
661 | }; | ||
662 | |||
663 | #define INTEGRATOR_SC_VALID_INT 0x003fffff | 655 | #define INTEGRATOR_SC_VALID_INT 0x003fffff |
664 | 656 | ||
665 | static void __init ap_init_irq(void) | 657 | static void __init ap_init_irq(void) |
@@ -716,7 +708,7 @@ MACHINE_START(INTEGRATOR, "ARM-Integrator") | |||
716 | .init_early = ap_init_early, | 708 | .init_early = ap_init_early, |
717 | .init_irq = ap_init_irq, | 709 | .init_irq = ap_init_irq, |
718 | .handle_irq = fpga_handle_irq, | 710 | .handle_irq = fpga_handle_irq, |
719 | .timer = &ap_timer, | 711 | .init_time = ap_timer_init, |
720 | .init_machine = ap_init, | 712 | .init_machine = ap_init, |
721 | .restart = integrator_restart, | 713 | .restart = integrator_restart, |
722 | MACHINE_END | 714 | MACHINE_END |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 01a888d7b0b8..2b0db82a5381 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -251,7 +251,7 @@ static void __init intcp_init_early(void) | |||
251 | 251 | ||
252 | #ifdef CONFIG_OF | 252 | #ifdef CONFIG_OF |
253 | 253 | ||
254 | static void __init intcp_timer_init_of(void) | 254 | static void __init cp_of_timer_init(void) |
255 | { | 255 | { |
256 | struct device_node *node; | 256 | struct device_node *node; |
257 | const char *path; | 257 | const char *path; |
@@ -283,10 +283,6 @@ static void __init intcp_timer_init_of(void) | |||
283 | sp804_clockevents_init(base, irq, node->name); | 283 | sp804_clockevents_init(base, irq, node->name); |
284 | } | 284 | } |
285 | 285 | ||
286 | static struct sys_timer cp_of_timer = { | ||
287 | .init = intcp_timer_init_of, | ||
288 | }; | ||
289 | |||
290 | static const struct of_device_id fpga_irq_of_match[] __initconst = { | 286 | static const struct of_device_id fpga_irq_of_match[] __initconst = { |
291 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, | 287 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, |
292 | { /* Sentinel */ } | 288 | { /* Sentinel */ } |
@@ -390,7 +386,7 @@ DT_MACHINE_START(INTEGRATOR_CP_DT, "ARM Integrator/CP (Device Tree)") | |||
390 | .init_early = intcp_init_early, | 386 | .init_early = intcp_init_early, |
391 | .init_irq = intcp_init_irq_of, | 387 | .init_irq = intcp_init_irq_of, |
392 | .handle_irq = fpga_handle_irq, | 388 | .handle_irq = fpga_handle_irq, |
393 | .timer = &cp_of_timer, | 389 | .init_time = cp_of_timer_init, |
394 | .init_machine = intcp_init_of, | 390 | .init_machine = intcp_init_of, |
395 | .restart = integrator_restart, | 391 | .restart = integrator_restart, |
396 | .dt_compat = intcp_dt_board_compat, | 392 | .dt_compat = intcp_dt_board_compat, |
@@ -512,7 +508,7 @@ static void __init intcp_init_irq(void) | |||
512 | #define TIMER1_VA_BASE __io_address(INTEGRATOR_TIMER1_BASE) | 508 | #define TIMER1_VA_BASE __io_address(INTEGRATOR_TIMER1_BASE) |
513 | #define TIMER2_VA_BASE __io_address(INTEGRATOR_TIMER2_BASE) | 509 | #define TIMER2_VA_BASE __io_address(INTEGRATOR_TIMER2_BASE) |
514 | 510 | ||
515 | static void __init intcp_timer_init(void) | 511 | static void __init cp_timer_init(void) |
516 | { | 512 | { |
517 | writel(0, TIMER0_VA_BASE + TIMER_CTRL); | 513 | writel(0, TIMER0_VA_BASE + TIMER_CTRL); |
518 | writel(0, TIMER1_VA_BASE + TIMER_CTRL); | 514 | writel(0, TIMER1_VA_BASE + TIMER_CTRL); |
@@ -522,10 +518,6 @@ static void __init intcp_timer_init(void) | |||
522 | sp804_clockevents_init(TIMER1_VA_BASE, IRQ_TIMERINT1, "timer1"); | 518 | sp804_clockevents_init(TIMER1_VA_BASE, IRQ_TIMERINT1, "timer1"); |
523 | } | 519 | } |
524 | 520 | ||
525 | static struct sys_timer cp_timer = { | ||
526 | .init = intcp_timer_init, | ||
527 | }; | ||
528 | |||
529 | #define INTEGRATOR_CP_MMC_IRQS { IRQ_CP_MMCIINT0, IRQ_CP_MMCIINT1 } | 521 | #define INTEGRATOR_CP_MMC_IRQS { IRQ_CP_MMCIINT0, IRQ_CP_MMCIINT1 } |
530 | #define INTEGRATOR_CP_AACI_IRQS { IRQ_CP_AACIINT } | 522 | #define INTEGRATOR_CP_AACI_IRQS { IRQ_CP_AACIINT } |
531 | 523 | ||
@@ -565,7 +557,7 @@ MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP") | |||
565 | .init_early = intcp_init_early, | 557 | .init_early = intcp_init_early, |
566 | .init_irq = intcp_init_irq, | 558 | .init_irq = intcp_init_irq, |
567 | .handle_irq = fpga_handle_irq, | 559 | .handle_irq = fpga_handle_irq, |
568 | .timer = &cp_timer, | 560 | .init_time = cp_timer_init, |
569 | .init_machine = intcp_init, | 561 | .init_machine = intcp_init, |
570 | .restart = integrator_restart, | 562 | .restart = integrator_restart, |
571 | MACHINE_END | 563 | MACHINE_END |