Skip to content

Commit

Permalink
video: simplefb: HACK: Set video font size
Browse files Browse the repository at this point in the history
Request the 16x32 font for display resolutions strictly larger than
FullHD.

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Apr 18, 2024
1 parent 92ae962 commit e80039f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/video/simplefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ static int simple_video_probe(struct udevice *dev)
return -EINVAL;
}

/* Apple silicon specific hack, should calculate DPI from "panel"
* phandle reference.
*/
if (uc_priv->xsize > 1920 && uc_priv->ysize > 1080)
uc_priv->font_size = 32;
/*
panel_node = fdtdec_lookup_phandle(blob_, node, "panel");
if (panel_node > 0) {
uint dpi = fdtdec_get_uint(blob, node, "width-mm");
}
*/
return 0;
}

Expand Down

0 comments on commit e80039f

Please sign in to comment.