drivers: core: ofnode: Add panel timing decode.
ofnode_decode_display_timing supports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support it ofnode_decode_panel_timing is added. Signed-off-by: Nikhil M Jain <n-jain1@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Anatolij Gustschin
parent
f4cf8710a1
commit
0347cc7732
@@ -420,6 +420,12 @@ int dev_decode_display_timing(const struct udevice *dev, int index,
|
||||
return ofnode_decode_display_timing(dev_ofnode(dev), index, config);
|
||||
}
|
||||
|
||||
int dev_decode_panel_timing(const struct udevice *dev,
|
||||
struct display_timing *config)
|
||||
{
|
||||
return ofnode_decode_panel_timing(dev_ofnode(dev), config);
|
||||
}
|
||||
|
||||
ofnode dev_get_phy_node(const struct udevice *dev)
|
||||
{
|
||||
return ofnode_get_phy_node(dev_ofnode(dev));
|
||||
|
||||
Reference in New Issue
Block a user