mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
imx: make ipu's di configurable
The ipu has two display interfaces. Make the used one a parameter in struct display_info_t instead of using unconditionally DI0. DI0 is the default setting. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Reviewed-by: Eric Nelson <eric@nelint.com>
This commit is contained in:
parent
c8d7647f63
commit
15fde0fc11
2 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,7 @@ int board_video_skip(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i < display_count) {
|
if (i < display_count) {
|
||||||
ret = ipuv3_fb_init(&displays[i].mode, 0,
|
ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0,
|
||||||
displays[i].pixfmt);
|
displays[i].pixfmt);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
if (displays[i].enable)
|
if (displays[i].enable)
|
||||||
|
|
|
@ -12,6 +12,7 @@ struct display_info_t {
|
||||||
int bus;
|
int bus;
|
||||||
int addr;
|
int addr;
|
||||||
int pixfmt;
|
int pixfmt;
|
||||||
|
int di;
|
||||||
int (*detect)(struct display_info_t const *dev);
|
int (*detect)(struct display_info_t const *dev);
|
||||||
void (*enable)(struct display_info_t const *dev);
|
void (*enable)(struct display_info_t const *dev);
|
||||||
struct fb_videomode mode;
|
struct fb_videomode mode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue