Hi all,
I meet some problem when I try to make a 4 BPP grayscale LCD work on the Ep7312 board.
First I modify the code which init LCD,the LCD can work but doesn't look very OK.
Then I trace to the char\console.c and take_over_console(...) to switch the console to framebuffer mode.But the following code make me confuse in the take_over_console function:
 
if (j >= 0)
  printk("to %s %s %dx%d\n",
         vc_cons[j].d->vc_can_do_color ? "colour" : "mono",
         desc, vc_cons[j].d->vc_cols, vc_cons[j].d->vc_rows);
 else
  printk("to %s\n", desc);
because the vc_cons[j].d->vc_can_do_color ? "colour" : "mono" alway be true.
 
I could not find where the vc_cons[i].d->vc_can_do_color be assigned value in the console.c,It seem that the code sw->con_init(vc_cons[currcons].d, init) in the visual_init function finsihed the assignment.
But I could not find the function definition in whole linux kernel.
 
Pls give me advice how I could fix the problem and what else code need to be modify .
 
 
With regards, healy yang          E-mail:[EMAIL PROTECTED]

Reply via email to