kernel-compiled-in-support of TFT 16bit and STN 8bit LCD

From: Fritz Code <hidden>
Date: 2009-02-02 08:58:41

Hi,

the framebuffer-driver is hard compiled in the linux kernel, so its
not realized as a module.

I want to build a linux kernel (I'm using 2.4.21, an update to a newer
version is at the moment not possible)
which supports at runtime a TFT 16bit and a STN 8bit LCD.
Im using a Samsung Framebuffer-Driver (s3c2410fb_core.c in
driver/video) since Im using an embedded system based on Samsung
S3C2410.

Well at the moment the selection of LCD support is done my defines in .config:

CONFIG_S3C2410_TFT / CONFIG_S3C2410_STN

depending on the LCD type one of the above defines must be set and as
a result of this the define LCD_TYPE gets set
to STN or TFT.

color-depth:
CONFIG_FBCON_CFB8 /CONFIG_FBCON_CFB16


The defines are used in the samsung framebuffer driver. Well my
question is now if it is a good idea to substitute this
"hardcoded" defines in the driver with dynamic if-requests to
distinguish during the runtime and build a kernel with support of both
LCD types?

Thanks

Regards,
--Codefritz

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help