diff options
author | Dario Binacchi <dariobin@libero.it> | 2020-12-30 02:16:26 +0300 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-01-12 08:28:05 +0300 |
commit | 15daa4860bf3c49f53ae76812e0033e4d5faa0a2 (patch) | |
tree | c632e5e8fbc12a732c91acc95d103dd1367b1b0d /drivers/core/read.c | |
parent | 0f4effb05b275f36c490673313317cfe897c9b79 (diff) | |
download | u-boot-15daa4860bf3c49f53ae76812e0033e4d5faa0a2.tar.xz |
dm: core: add a function to decode display timings
The patch adds a function to get display timings from the device tree
node attached to the device.
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/read.c')
-rw-r--r-- | drivers/core/read.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c index fc74d64814..4d9b5dd038 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -379,3 +379,9 @@ int dev_read_pci_bus_range(const struct udevice *dev, return 0; } + +int dev_decode_display_timing(const struct udevice *dev, int index, + struct display_timing *config) +{ + return ofnode_decode_display_timing(dev_ofnode(dev), index, config); +} |