summaryrefslogtreecommitdiffstats
path: root/board/gateworks
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2015-04-08 12:54:58 -0700
committerStefano Babic <sbabic@denx.de>2015-04-22 14:39:11 +0200
commit4569cd561d0df3b5f9221a9517bc4c399ce8a25b (patch)
tree1c6842ba72c5cd8408d1f1122dac9f030fe58652 /board/gateworks
parentf02390b6ab9002f1ed4229c9d42de8eb7c2fdf41 (diff)
downloadtalos-obmc-uboot-4569cd561d0df3b5f9221a9517bc4c399ce8a25b.tar.gz
talos-obmc-uboot-4569cd561d0df3b5f9221a9517bc4c399ce8a25b.zip
imx: ventana: added device-tree display configuration for LVDS displays
Configure kernel device-tree for display from env var. This is useful to specify the display present when the device-tree supports multiple non-detectable display configurations. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks')
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index d8eeb6d931..871af09d41 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -1606,6 +1606,7 @@ int ft_board_setup(void *blob, bd_t *bd)
{ "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, }, /* NAND flash */
};
const char *model = getenv("model");
+ const char *display = getenv("display");
int i;
char rev = 0;
@@ -1626,6 +1627,13 @@ int ft_board_setup(void *blob, bd_t *bd)
puts(" Updating MTD partitions...\n");
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+ /* Update display timings from display env var */
+ if (display) {
+ if (fdt_fixup_display(blob, fdt_get_alias(blob, "lvds0"),
+ display) >= 0)
+ printf(" Set display timings for %s...\n", display);
+ }
+
if (!model) {
puts("invalid board info: Leaving FDT fully enabled\n");
return 0;
OpenPOWER on IntegriCloud