Skip to content

Commit 3afbd89

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
serial/efm32: add new driver
Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e9aba51 commit 3afbd89

File tree

6 files changed

+878
-0
lines changed

6 files changed

+878
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* Energymicro efm32 UART
2+
3+
Required properties:
4+
- compatible : Should be "efm32,uart"
5+
- reg : Address and length of the register set
6+
- interrupts : Should contain uart interrupt
7+
8+
Example:
9+
10+
uart@0x4000c400 {
11+
compatible = "efm32,uart";
12+
reg = <0x4000c400 0x400>;
13+
interrupts = <15>;
14+
};

drivers/tty/serial/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,4 +1628,17 @@ config SERIAL_AR933X_NR_UARTS
16281628
Set this to the number of serial ports you want the driver
16291629
to support.
16301630

1631+
config SERIAL_EFM32_UART
1632+
tristate "EFM32 UART/USART port."
1633+
depends on ARCH_EFM32
1634+
select SERIAL_CORE
1635+
help
1636+
This driver support the USART and UART ports on
1637+
Energy Micro's efm32 SoCs.
1638+
1639+
config SERIAL_EFM32_UART_CONSOLE
1640+
bool "EFM32 UART/USART console support"
1641+
depends on SERIAL_EFM32_UART=y
1642+
select SERIAL_CORE_CONSOLE
1643+
16311644
endmenu

drivers/tty/serial/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ obj-$(CONFIG_SERIAL_LANTIQ) += lantiq.o
9292
obj-$(CONFIG_SERIAL_XILINX_PS_UART) += xilinx_uartps.o
9393
obj-$(CONFIG_SERIAL_SIRFSOC) += sirfsoc_uart.o
9494
obj-$(CONFIG_SERIAL_AR933X) += ar933x_uart.o
95+
obj-$(CONFIG_SERIAL_EFM32_UART) += efm32-uart.o

0 commit comments

Comments
 (0)