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@xxxxxxxxxxxxxx> --- drivers/serial/stm-serial.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c index e5f57dc..8bb242b 100644 --- a/drivers/serial/stm-serial.c +++ b/drivers/serial/stm-serial.c @@ -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); -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox