staging:panel: Add support for APEX lcd/keypad
PATCH 2/3 staging:panel: Add support for APEX lcd/keypad
Patch containing the following changes:
* Adds support for lcd/keypad from Taiwanese company APEX.
* Fixes lcd type constants in code to match the ones in Kconfig.
This patch depends on patch 1 and should therefore be applied after it.
Signed-off-by Zoltan Kelemen <[email protected]>
----
drivers/staging/panel/Kconfig +9 -6
@@ -23,9 +23,9 @@ and so on. config PANEL_PROFILE - int "Default panel profile (0-5, 0=custom)" + int "Default panel profile (0-6, 0=custom)" depends on PANEL - range 0 5 + range 0 6 default "5" ---help--- To ease configuration, the driver supports different configuration
@@ -39,6 +39,7 @@ 3 = 2x16 parallel LCD (Hantronix), no keypad 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad 5 = 2x40 parallel LCD (old one), with old keypad + 6 = 2x20 parallel LCD (APEX) with APEX's keypad Custom configurations allow you to define how your display is wired to the parallel port, and how it works. This is only intended
@@ -46,8 +47,8 @@ config PANEL_KEYPAD depends on PANEL && PANEL_PROFILE="0" - int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)" - range 0 3 + int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys, 4=APEX 4 keys)" + range 0 4 default 0 ---help--- This enables and configures a keypad connected to the parallel port.
@@ -57,14 +58,15 @@ 1 : old 6 keys keypad 2 : new 6 keys keypad, as used on the server at www.ant-computing.com 3 : Nexcom NSA1045's 4 keys keypad + 4 : APEX 4 keys keypad New profiles can be described in the driver source. The driver also supports simultaneous keys pressed when the keypad supports them. config PANEL_LCD depends on PANEL && PANEL_PROFILE="0" - int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)" - range 0 5 + int "LCD type (0=none, 1=custom, 2=old, 3=ks0074, 4=hantronix, 5=Nexcom, 6=APEX)" + range 0 6 default 0 ---help--- This enables and configures an LCD connected to the parallel port.
@@ -79,6 +81,7 @@ 3 : 2x16 serial LCD (KS-0074 based) 4 : 2x16 parallel LCD (Hantronix wiring) 5 : 2x16 parallel LCD (Nexcom wiring) + 6 : 2x20 parallel LCD (APEX wiring) When type '1' is specified, other options will appear to configure more precise aspects (wiring, dimensions, protocol, ...). Please note
drivers/staging/panel/panel.c +35 -9
106 lines not on this page · raw message