diff options
Diffstat (limited to 'arch/avr32/mach-at32ap/at32ap7000.c')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap7000.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap7000.c b/arch/avr32/mach-at32ap/at32ap7000.c index 21561ab60471..981d553e471b 100644 --- a/arch/avr32/mach-at32ap/at32ap7000.c +++ b/arch/avr32/mach-at32ap/at32ap7000.c | |||
@@ -496,6 +496,13 @@ static struct resource pio3_resource[] = { | |||
496 | DEFINE_DEV(pio, 3); | 496 | DEFINE_DEV(pio, 3); |
497 | DEV_CLK(mck, pio3, pba, 13); | 497 | DEV_CLK(mck, pio3, pba, 13); |
498 | 498 | ||
499 | static struct resource pio4_resource[] = { | ||
500 | PBMEM(0xffe03800), | ||
501 | IRQ(17), | ||
502 | }; | ||
503 | DEFINE_DEV(pio, 4); | ||
504 | DEV_CLK(mck, pio4, pba, 14); | ||
505 | |||
499 | void __init at32_add_system_devices(void) | 506 | void __init at32_add_system_devices(void) |
500 | { | 507 | { |
501 | system_manager.eim_first_irq = EIM_IRQ_BASE; | 508 | system_manager.eim_first_irq = EIM_IRQ_BASE; |
@@ -509,6 +516,7 @@ void __init at32_add_system_devices(void) | |||
509 | platform_device_register(&pio1_device); | 516 | platform_device_register(&pio1_device); |
510 | platform_device_register(&pio2_device); | 517 | platform_device_register(&pio2_device); |
511 | platform_device_register(&pio3_device); | 518 | platform_device_register(&pio3_device); |
519 | platform_device_register(&pio4_device); | ||
512 | } | 520 | } |
513 | 521 | ||
514 | /* -------------------------------------------------------------------- | 522 | /* -------------------------------------------------------------------- |
@@ -860,6 +868,7 @@ struct clk *at32_clock_list[] = { | |||
860 | &pio1_mck, | 868 | &pio1_mck, |
861 | &pio2_mck, | 869 | &pio2_mck, |
862 | &pio3_mck, | 870 | &pio3_mck, |
871 | &pio4_mck, | ||
863 | &atmel_usart0_usart, | 872 | &atmel_usart0_usart, |
864 | &atmel_usart1_usart, | 873 | &atmel_usart1_usart, |
865 | &atmel_usart2_usart, | 874 | &atmel_usart2_usart, |
@@ -880,6 +889,7 @@ void __init at32_portmux_init(void) | |||
880 | at32_init_pio(&pio1_device); | 889 | at32_init_pio(&pio1_device); |
881 | at32_init_pio(&pio2_device); | 890 | at32_init_pio(&pio2_device); |
882 | at32_init_pio(&pio3_device); | 891 | at32_init_pio(&pio3_device); |
892 | at32_init_pio(&pio4_device); | ||
883 | } | 893 | } |
884 | 894 | ||
885 | void __init at32_clock_init(void) | 895 | void __init at32_clock_init(void) |