20 #include <linux/device.h>
23 #include <linux/module.h>
25 #include <linux/serial_core.h>
29 #include <linux/slab.h>
34 #define UART_DLM_EM 10
101 dev_err(&pdev->
dev,
"missing registers or irq\n");
107 dev_err(&pdev->
dev,
"unable to allocate private data\n");
113 if (IS_ERR(priv->
sclk)) {
115 ret = PTR_ERR(priv->
sclk);
124 up.port.dev = &pdev->
dev;
125 up.port.private_data =
priv;
131 up.port.serial_in = serial8250_em_serial_in;
132 up.port.serial_out = serial8250_em_serial_out;
133 up.dl_read = serial8250_em_serial_dl_read;
134 up.dl_write = serial8250_em_serial_dl_write;
138 dev_err(&pdev->
dev,
"unable to register 8250 port\n");
143 platform_set_drvdata(pdev, priv);
167 { .compatible =
"renesas,em-uart", },
174 .name =
"serial8250-em",
175 .of_match_table = serial8250_em_dt_ids,
178 .probe = serial8250_em_probe,