diff options
author | Fabian Vogt <fvogt@suse.com> | 2016-09-26 14:26:45 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-28 20:09:47 -0500 |
commit | 165316e38f7391b9269d2539edc1cceac25c16cc (patch) | |
tree | fc0569409016802f81caa4534e15d919658484c9 /drivers/serial/serial_pl01x.c | |
parent | 9f755f5d09b8739441265d56ac1081e0fba2b21f (diff) | |
download | u-boot-imx-165316e38f7391b9269d2539edc1cceac25c16cc.zip u-boot-imx-165316e38f7391b9269d2539edc1cceac25c16cc.tar.gz u-boot-imx-165316e38f7391b9269d2539edc1cceac25c16cc.tar.bz2 |
serial: pl01x: expose skip_init platdata option in DT
To be able to represent the skip-init platdata element with OF_CONTROL,
it needs to be read from the device tree as well and put into the platform data.
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Fabian Vogt <fvogt@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/serial_pl01x.c')
-rw-r--r-- | drivers/serial/serial_pl01x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 6f83835..a8d3d67 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -356,6 +356,8 @@ static int pl01x_serial_ofdata_to_platdata(struct udevice *dev) plat->base = addr; plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset, "clock", 1); plat->type = dev_get_driver_data(dev); + plat->skip_init = fdtdec_get_bool(gd->fdt_blob, dev->of_offset, + "skip-init"); return 0; } #endif |