mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: video: Add a operation to display uclass
The current display class only allow to get timing from edid. So add a operation to get timing directly from driver. In driver, I will use fdtdec_decode_display_timing to get timing. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Anatolij Gustschin
parent
df61a74e68
commit
eab314f590
@@ -23,7 +23,7 @@ struct display_plat {
|
||||
};
|
||||
|
||||
/**
|
||||
* display_read_timing() - Read timing information from EDID
|
||||
* display_read_timing() - Read timing information
|
||||
*
|
||||
* @dev: Device to read from
|
||||
* @return 0 if OK, -ve on error
|
||||
@@ -42,6 +42,15 @@ int display_enable(struct udevice *dev, int panel_bpp,
|
||||
const struct display_timing *timing);
|
||||
|
||||
struct dm_display_ops {
|
||||
/**
|
||||
* read_timing() - Read information directly
|
||||
*
|
||||
* @dev: Device to read from
|
||||
* @timing: Display timings
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int (*read_timing)(struct udevice *dev, struct display_timing *timing);
|
||||
|
||||
/**
|
||||
* read_edid() - Read information from EDID
|
||||
*
|
||||
|
Reference in New Issue
Block a user