소스 검색

sh-sci: Add h8300 SCI

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Yoshinori Sato 10 년 전
부모
커밋
e1d0be6161
3개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      Documentation/devicetree/bindings/serial/renesas,sci-serial.txt
  2. 1 1
      drivers/tty/serial/Kconfig
  3. 6 0
      drivers/tty/serial/sh-sci.c

+ 1 - 0
Documentation/devicetree/bindings/serial/renesas,sci-serial.txt

@@ -29,6 +29,7 @@ Required properties:
     - "renesas,scifa" for generic SCIFA compatible UART.
     - "renesas,scifb" for generic SCIFB compatible UART.
     - "renesas,hscif" for generic HSCIF compatible UART.
+    - "renesas,sci" for generic SCI compatible UART.
 
     When compatible with the generic version, nodes must list the
     SoC-specific version corresponding to the platform first followed by the

+ 1 - 1
drivers/tty/serial/Kconfig

@@ -728,7 +728,7 @@ config SERIAL_IP22_ZILOG_CONSOLE
 
 config SERIAL_SH_SCI
 	tristate "SuperH SCI(F) serial port support"
-	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
+	depends on SUPERH || ARCH_SHMOBILE || H8300 || COMPILE_TEST
 	select SERIAL_CORE
 
 config SERIAL_SH_SCI_NR_UARTS

+ 6 - 0
drivers/tty/serial/sh-sci.c

@@ -2535,6 +2535,12 @@ static const struct of_device_id of_sci_match[] = {
 			.type = PORT_HSCIF,
 			.regtype = SCIx_HSCIF_REGTYPE,
 		},
+	}, {
+		.compatible = "renesas,sci",
+		.data = &(const struct sci_port_info) {
+			.type = PORT_SCI,
+			.regtype = SCIx_SCI_REGTYPE,
+		},
 	}, {
 		/* Terminator */
 	},