Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Serial: Ingenic: Add support for the X1000.

Add support for probing the 8250_ingenic driver on the
X1000 Soc from Ingenic.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhou Yanjie and committed by
Greg Kroah-Hartman
8a417cde 3a50365d

+9 -4
+9 -4
drivers/tty/serial/8250/8250_ingenic.c
··· 129 129 return 0; 130 130 } 131 131 132 - EARLYCON_DECLARE(jz4740_uart, ingenic_early_console_setup); 133 132 OF_EARLYCON_DECLARE(jz4740_uart, "ingenic,jz4740-uart", 134 133 ingenic_early_console_setup); 135 134 136 - EARLYCON_DECLARE(jz4770_uart, ingenic_early_console_setup); 137 135 OF_EARLYCON_DECLARE(jz4770_uart, "ingenic,jz4770-uart", 138 136 ingenic_early_console_setup); 139 137 140 - EARLYCON_DECLARE(jz4775_uart, ingenic_early_console_setup); 141 138 OF_EARLYCON_DECLARE(jz4775_uart, "ingenic,jz4775-uart", 142 139 ingenic_early_console_setup); 143 140 144 - EARLYCON_DECLARE(jz4780_uart, ingenic_early_console_setup); 145 141 OF_EARLYCON_DECLARE(jz4780_uart, "ingenic,jz4780-uart", 142 + ingenic_early_console_setup); 143 + 144 + OF_EARLYCON_DECLARE(x1000_uart, "ingenic,x1000-uart", 146 145 ingenic_early_console_setup); 147 146 148 147 static void ingenic_uart_serial_out(struct uart_port *p, int offset, int value) ··· 327 328 .fifosize = 64, 328 329 }; 329 330 331 + static const struct ingenic_uart_config x1000_uart_config = { 332 + .tx_loadsz = 32, 333 + .fifosize = 64, 334 + }; 335 + 330 336 static const struct of_device_id of_match[] = { 331 337 { .compatible = "ingenic,jz4740-uart", .data = &jz4740_uart_config }, 332 338 { .compatible = "ingenic,jz4760-uart", .data = &jz4760_uart_config }, 333 339 { .compatible = "ingenic,jz4770-uart", .data = &jz4760_uart_config }, 334 340 { .compatible = "ingenic,jz4775-uart", .data = &jz4760_uart_config }, 335 341 { .compatible = "ingenic,jz4780-uart", .data = &jz4780_uart_config }, 342 + { .compatible = "ingenic,x1000-uart", .data = &x1000_uart_config }, 336 343 { /* sentinel */ } 337 344 }; 338 345 MODULE_DEVICE_TABLE(of, of_match);