Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99238
b: refs/heads/master
c: 65033ed
h: refs/heads/master
v: v3
  • Loading branch information
Haavard Skinnemoen authored and Haavard Skinnemoen committed Jun 28, 2008
1 parent 6cdb258 commit 94c14bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d704fb0cc0cce474ac959adca6c3d1f606fcfa2a
refs/heads/master: 65033ed740ef06eddf9fde7a992eab336cbddd56
8 changes: 0 additions & 8 deletions trunk/arch/avr32/mach-at32ap/at32ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
#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;
Expand Down
18 changes: 8 additions & 10 deletions trunk/arch/avr32/mach-at32ap/at32ap700x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
4 changes: 0 additions & 4 deletions trunk/include/asm-avr32/arch-at32ap/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
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__ */

0 comments on commit 94c14bd

Please sign in to comment.