diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-10-04 10:02:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 13:25:06 -0400 |
commit | c194588dba968510b5aa7a1818bd2c8b36a416f7 (patch) | |
tree | 4c9379f6482572340ab701c369e8b01eb2b43493 /include | |
parent | acca9b83acfe89fbb7421d5412176dee2ad2959a (diff) |
[PATCH] AVR32: Allow renumbering of serial devices
Allow the board to remap actual USART peripheral devices to serial
devices by calling at32_map_usart(hw_id, serial_line). This ensures
that even though ATSTK1002 uses USART1 as the first serial port, it
will still have a ttyS0 device.
This also adds a board-specific early setup hook and moves the
at32_setup_serial_console() call there from the platform code.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-avr32/arch-at32ap/board.h | 1 | ||||
-rw-r--r-- | include/asm-avr32/arch-at32ap/init.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h index 435507281f89..a39b3e999f18 100644 --- a/include/asm-avr32/arch-at32ap/board.h +++ b/include/asm-avr32/arch-at32ap/board.h | |||
@@ -17,6 +17,7 @@ struct atmel_uart_data { | |||
17 | short use_dma_rx; /* use receive DMA? */ | 17 | short use_dma_rx; /* use receive DMA? */ |
18 | void __iomem *regs; /* virtual base address, if any */ | 18 | void __iomem *regs; /* virtual base address, if any */ |
19 | }; | 19 | }; |
20 | void at32_map_usart(unsigned int hw_id, unsigned int line); | ||
20 | struct platform_device *at32_add_device_usart(unsigned int id); | 21 | struct platform_device *at32_add_device_usart(unsigned int id); |
21 | 22 | ||
22 | struct eth_platform_data { | 23 | struct eth_platform_data { |
diff --git a/include/asm-avr32/arch-at32ap/init.h b/include/asm-avr32/arch-at32ap/init.h index 43722634e069..5e75d850d707 100644 --- a/include/asm-avr32/arch-at32ap/init.h +++ b/include/asm-avr32/arch-at32ap/init.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #define __ASM_AVR32_AT32AP_INIT_H__ | 11 | #define __ASM_AVR32_AT32AP_INIT_H__ |
12 | 12 | ||
13 | void setup_platform(void); | 13 | void setup_platform(void); |
14 | void setup_board(void); | ||
14 | 15 | ||
15 | /* Called by setup_platform */ | 16 | /* Called by setup_platform */ |
16 | void at32_clock_init(void); | 17 | void at32_clock_init(void); |