]> git.sur5r.net Git - u-boot/commitdiff
fdt: edid: Enable fdt_add_edid() function when CONFIG_LCD defined
authorTom Wai-Hong Tam <waihong@chromium.org>
Wed, 5 Dec 2012 14:46:41 +0000 (14:46 +0000)
committerTom Rini <trini@ti.com>
Tue, 11 Dec 2012 20:17:35 +0000 (13:17 -0700)
This function can be used for LCDs as well as monitors.

Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c

index 963ea90234699c29ad19eb0d8f855513a70539b0..6b9fa0550f18e5694cd9f1e83911c52c089920d8 100644 (file)
@@ -1315,7 +1315,7 @@ int fdt_set_status_by_alias(void *fdt, const char* alias,
        return fdt_set_node_status(fdt, offset, status, error_code);
 }
 
-#if defined(CONFIG_VIDEO)
+#if defined(CONFIG_VIDEO) || defined(CONFIG_LCD)
 int fdt_add_edid(void *blob, const char *compat, unsigned char *edid_buf)
 {
        int noff;