Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47015
b: refs/heads/master
c: a3d912c
h: refs/heads/master
i:
  47013: 30c3d81
  47011: 3cd44e2
  47007: 32507c8
v: v3
  • Loading branch information
David Brownell authored and Haavard Skinnemoen committed Feb 9, 2007
1 parent ea82d5c commit f512f88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 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: 914ab06279f15d3f368f4fae74db58fdcf03a2ed
refs/heads/master: a3d912c8fa709c4078ceaabf4d71001190e19325
16 changes: 13 additions & 3 deletions trunk/arch/avr32/boards/atstk1000/atstk1002.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include <asm/arch/board.h>
#include <asm/arch/init.h>


#define SW2_DEFAULT /* MMCI and UART_A available */

struct eth_addr {
u8 addr[6];
};
Expand Down Expand Up @@ -86,9 +89,13 @@ static void __init set_hw_addr(struct platform_device *pdev)

void __init setup_board(void)
{
at32_map_usart(1, 0); /* /dev/ttyS0 */
at32_map_usart(2, 1); /* /dev/ttyS1 */
at32_map_usart(3, 2); /* /dev/ttyS2 */
#ifdef SW2_DEFAULT
at32_map_usart(1, 0); /* USART 1/A: /dev/ttyS0, DB9 */
#else
at32_map_usart(0, 1); /* USART 0/B: /dev/ttyS1, IRDA */
#endif
/* USART 2/unused: expansion connector */
at32_map_usart(3, 2); /* USART 3/C: /dev/ttyS2, DB9 */

at32_setup_serial_console(0);
}
Expand All @@ -97,8 +104,11 @@ static int __init atstk1002_init(void)
{
at32_add_system_devices();

#ifdef SW2_DEFAULT
at32_add_device_usart(0);
#else
at32_add_device_usart(1);
#endif
at32_add_device_usart(2);

set_hw_addr(at32_add_device_eth(0, &eth_data[0]));
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/avr32/mach-at32ap/at32ap7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ static struct atmel_uart_data atmel_usart0_data = {
};
static struct resource atmel_usart0_resource[] = {
PBMEM(0xffe00c00),
IRQ(7),
IRQ(6),
};
DEFINE_DEV_DATA(atmel_usart, 0);
DEV_CLK(usart, atmel_usart0, pba, 4);
Expand Down Expand Up @@ -583,7 +583,7 @@ static inline void configure_usart3_pins(void)
select_peripheral(PB(17), PERIPH_B, 0); /* TXD */
}

static struct platform_device *at32_usarts[4];
static struct platform_device *__initdata at32_usarts[4];

void __init at32_map_usart(unsigned int hw_id, unsigned int line)
{
Expand Down

0 comments on commit f512f88

Please sign in to comment.