serial: stm_serial: Add devicetree support
This adds device tree support for the stm serial driver. This driver really is a AMBA primecell, so the amba-pl011 could be used. However, the current code tries to get the apb_pclk before the clocks are registered, so this does not work. Use the stm driver instead until a solution is found. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
846f27cf92
commit
f0535fe5ee
|
@ -189,9 +189,18 @@ static void stm_serial_remove(struct device_d *dev)
|
|||
free(priv);
|
||||
}
|
||||
|
||||
static __maybe_unused struct of_device_id stm_serial_dt_ids[] = {
|
||||
{
|
||||
.compatible = "arm,pl011",
|
||||
}, {
|
||||
/* sentinel */
|
||||
}
|
||||
};
|
||||
|
||||
static struct driver_d stm_serial_driver = {
|
||||
.name = "stm_serial",
|
||||
.probe = stm_serial_probe,
|
||||
.remove = stm_serial_remove,
|
||||
.of_compatible = DRV_OF_COMPAT(stm_serial_dt_ids),
|
||||
};
|
||||
console_platform_driver(stm_serial_driver);
|
||||
|
|
Loading…
Reference in New Issue