return off;
}
+#ifdef CONFIG_SYS_LVDS_IF
int karo_fdt_get_lcd_bus_width(const void *blob, int default_width)
{
int off = fdt_path_offset(blob, "display");
}
return lvds_chan_mask;
}
+#endif
int karo_fdt_get_backlight_polarity(const void *blob)
{
int karo_fdt_update_fb_mode(void *blob, const char *name);
int karo_fdt_create_fb_mode(void *blob, const char *name,
struct fb_videomode *mode);
-int karo_fdt_get_lcd_bus_width(const void *blob, int default_width);
-int karo_fdt_get_lvds_mapping(const void *blob, int default_mapping);
-u8 karo_fdt_get_lvds_channels(const void *blob);
int karo_fdt_get_backlight_polarity(const void *blob);
#else
static inline void karo_fdt_remove_node(void *blob, const char *node)
{
return 0;
}
+static inline int karo_fdt_get_backlight_polarity(const void *blob)
+{
+ return getenv_yesno("backlight_polarity");
+}
+#endif
+
+#if defined(CONFIG_SYS_LVDS_IF) && defined(CONFIG_OF_LIBFDT)
+int karo_fdt_get_lcd_bus_width(const void *blob, int default_width);
+int karo_fdt_get_lvds_mapping(const void *blob, int default_mapping);
+u8 karo_fdt_get_lvds_channels(const void *blob);
+#else
static inline int karo_fdt_get_lcd_bus_width(const void *blob, int default_width)
{
return default_width;
{
return 0;
}
-static inline int karo_fdt_get_backlight_polarity(const void *blob)
-{
- return getenv_yesno("backlight_polarity");
-}
#endif
static inline const char *karo_get_vmode(const char *video_mode)