mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
acca9b83ac
commit
c194588dba
6 changed files with 26 additions and 18 deletions
|
|
@ -17,6 +17,7 @@ struct atmel_uart_data {
|
|||
short use_dma_rx; /* use receive DMA? */
|
||||
void __iomem *regs; /* virtual base address, if any */
|
||||
};
|
||||
void at32_map_usart(unsigned int hw_id, unsigned int line);
|
||||
struct platform_device *at32_add_device_usart(unsigned int id);
|
||||
|
||||
struct eth_platform_data {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#define __ASM_AVR32_AT32AP_INIT_H__
|
||||
|
||||
void setup_platform(void);
|
||||
void setup_board(void);
|
||||
|
||||
/* Called by setup_platform */
|
||||
void at32_clock_init(void);
|
||||
|
|
|
|||
Loading…
Reference in a new issue