serial: adds UART driver for SAM3X8E
This adds driver for the UART controller on Atmel SAM3X8E. This UART controller only has two wires for RX and TX, and does not have flow control (e.g. CTS, RTS) or FIFO. Currently, the driver does not support any interrupt driven operations. Change-Id: I63720bccfb70a89888353b8ee3dfc4b80793dc01 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
945ebd74be
commit
21c3118655
5 changed files with 335 additions and 0 deletions
|
@ -131,4 +131,28 @@ config KERNEL_INIT_PRIORITY_DEFAULT
|
|||
config KERNEL_INIT_PRIORITY_DEVICE
|
||||
default 50
|
||||
|
||||
config UART_CONSOLE_PRIORITY
|
||||
default 60
|
||||
|
||||
if UART_ATMEL_SAM3
|
||||
|
||||
config UART_ATMEL_SAM3_BAUD_RATE
|
||||
default 115200
|
||||
|
||||
config UART_ATMEL_SAM3_CLK_FREQ
|
||||
default 84000000
|
||||
|
||||
endif # UART_ATMEL_SAM3
|
||||
|
||||
if UART_CONSOLE
|
||||
|
||||
config UART_CONSOLE_ON_DEV_NAME
|
||||
default "UART_0"
|
||||
config UART_CONSOLE_IRQ
|
||||
default 8
|
||||
config UART_CONSOLE_IRQ_PRI
|
||||
default 3
|
||||
|
||||
endif # UART_CONSOLE
|
||||
|
||||
endif # SOC_ATMEL_SAM3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue