]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
avr32: Move setup_platform() into chip-specific file
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Tue, 4 Mar 2008 14:15:00 +0000 (15:15 +0100)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sat, 28 Jun 2008 13:08:39 +0000 (15:08 +0200)
Combine at32_clock_init() and at32_portmux_init() into
setup_platform() and remove setup_platform() from at32ap.c. No
functional change since all setup_platform() ever did was call those
two functions.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/at32ap.c
arch/avr32/mach-at32ap/at32ap700x.c
include/asm-avr32/arch-at32ap/init.h

index 7c4987f3287a7ca52d944ee30bc435225bdaac56..1040bda4fda7c843ea0d4955129f17cc94ab79bd 100644 (file)
 #include <linux/init.h>
 #include <linux/platform_device.h>
 
-#include <asm/arch/init.h>
-
-void __init setup_platform(void)
-{
-       at32_clock_init();
-       at32_portmux_init();
-}
-
 static int __init pdc_probe(struct platform_device *pdev)
 {
        struct clk *pclk, *hclk;
index 2f208eb4d3c951a0468bd49c5415a2fbf839b6d9..baf4680b4988ce5d575da63baab7ffdf51129643 100644 (file)
@@ -2048,16 +2048,7 @@ struct clk *at32_clock_list[] = {
 };
 unsigned int at32_nr_clocks = ARRAY_SIZE(at32_clock_list);
 
-void __init at32_portmux_init(void)
-{
-       at32_init_pio(&pio0_device);
-       at32_init_pio(&pio1_device);
-       at32_init_pio(&pio2_device);
-       at32_init_pio(&pio3_device);
-       at32_init_pio(&pio4_device);
-}
-
-void __init at32_clock_init(void)
+void __init setup_platform(void)
 {
        u32 cpu_mask = 0, hsb_mask = 0, pba_mask = 0, pbb_mask = 0;
        int i;
@@ -2112,4 +2103,11 @@ void __init at32_clock_init(void)
        pm_writel(HSB_MASK, hsb_mask);
        pm_writel(PBA_MASK, pba_mask);
        pm_writel(PBB_MASK, pbb_mask);
+
+       /* Initialize the port muxes */
+       at32_init_pio(&pio0_device);
+       at32_init_pio(&pio1_device);
+       at32_init_pio(&pio2_device);
+       at32_init_pio(&pio3_device);
+       at32_init_pio(&pio4_device);
 }
index 5e75d850d7076409ecd6fea47adfb36412736886..bc40e3d461503aa9a77c344e8d9aba520d7dc541 100644 (file)
 void setup_platform(void);
 void setup_board(void);
 
-/* Called by setup_platform */
-void at32_clock_init(void);
-void at32_portmux_init(void);
-
 void at32_setup_serial_console(unsigned int usart_id);
 
 #endif /* __ASM_AVR32_AT32AP_INIT_H__ */