staging: olpc_dcon: add config options for XO_1 and XO_1_5, drop hardcoded XO-1 stuff
authorAndres Salomon <dilinger@queued.net>
Fri, 11 Feb 2011 01:53:24 +0000 (17:53 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:33:21 +0000 (12:33 -0800)
commit097cd83a4c312e1ae0d9c14526f846666cab4f3a
tree9c8229a0684c4ef8583245d25dd10eab2e009a44
parent8f2fb16a9cd015072b3da9038084930287e11985
staging: olpc_dcon: add config options for XO_1 and XO_1_5, drop hardcoded XO-1 stuff

This adds CONFIG_FB_OLPC_DCON_1 and CONFIG_FB_OLPC_DCON_1_5 options for
allowing selection of XO-1 and/or XO-1.5 DCON support.  In the process,
it also forces the xo_1.c and xo_1_5.c files to build as separate units,
correctly selects between XO-1 and XO-1.5 at runtime, and adds some
hacks to allow xo_1_5.c to build.

This isn't the cleanest patch, but it'll get better as more global
variables are dropped.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/olpc_dcon/Kconfig
drivers/staging/olpc_dcon/Makefile
drivers/staging/olpc_dcon/olpc_dcon.c
drivers/staging/olpc_dcon/olpc_dcon.h
drivers/staging/olpc_dcon/olpc_dcon_xo_1.c
drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c