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>
This commit is contained in:
committed by
Lokesh Vutla
parent
0f4effb05b
commit
15daa4860b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user