void lcd_ctrl_init(void *lcdbase)
{
int color_depth = 24;
- char *video_mode = getenv("video_mode");
- char *vm;
+ const char *video_mode = getenv("video_mode");
+ const char *vm;
unsigned long val;
int refresh = 60;
struct fb_videomode *p = &tx6_fb_modes[0];
if (p != &fb_mode) {
int ret;
- printf("Creating new display-timing node from '%s'\n",
+ debug("Creating new display-timing node from '%s'\n",
video_mode);
ret = karo_fdt_create_fb_mode(working_fdt, video_mode, p);
if (ret)
{
const char *baseboard = getenv("baseboard");
int stk5_v5 = baseboard != NULL && (strcmp(baseboard, "stk5-v5") == 0);
- char *video_mode = getenv("video_mode");
+ const char *video_mode = getenv("video_mode");
karo_fdt_enable_node(blob, "stk5led", !stk5_v5);