18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# For a description of the syntax of this configuration file,
48c2ecf20Sopenharmony_ci# see Documentation/kbuild/kconfig-language.rst.
58c2ecf20Sopenharmony_ci#
68c2ecf20Sopenharmony_ci# Auxiliary display drivers configuration.
78c2ecf20Sopenharmony_ci#
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimenuconfig AUXDISPLAY
108c2ecf20Sopenharmony_ci	bool "Auxiliary Display support"
118c2ecf20Sopenharmony_ci	help
128c2ecf20Sopenharmony_ci	  Say Y here to get to see options for auxiliary display drivers.
138c2ecf20Sopenharmony_ci	  This option alone does not add any kernel code.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci	  If you say N, all options in this submenu will be skipped and disabled.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciif AUXDISPLAY
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciconfig HD44780
208c2ecf20Sopenharmony_ci	tristate "HD44780 Character LCD support"
218c2ecf20Sopenharmony_ci	depends on GPIOLIB || COMPILE_TEST
228c2ecf20Sopenharmony_ci	select CHARLCD
238c2ecf20Sopenharmony_ci	help
248c2ecf20Sopenharmony_ci	  Enable support for Character LCDs using a HD44780 controller.
258c2ecf20Sopenharmony_ci	  The LCD is accessible through the /dev/lcd char device (10, 156).
268c2ecf20Sopenharmony_ci	  This code can either be compiled as a module, or linked into the
278c2ecf20Sopenharmony_ci	  kernel and started at boot.
288c2ecf20Sopenharmony_ci	  If you don't understand what all this is about, say N.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciconfig KS0108
318c2ecf20Sopenharmony_ci	tristate "KS0108 LCD Controller"
328c2ecf20Sopenharmony_ci	depends on PARPORT_PC
338c2ecf20Sopenharmony_ci	default n
348c2ecf20Sopenharmony_ci	help
358c2ecf20Sopenharmony_ci	  If you have a LCD controlled by one or more KS0108
368c2ecf20Sopenharmony_ci	  controllers, say Y. You will need also another more specific
378c2ecf20Sopenharmony_ci	  driver for your LCD.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci	  Depends on Parallel Port support. If you say Y at
408c2ecf20Sopenharmony_ci	  parport, you will be able to compile this as a module (M)
418c2ecf20Sopenharmony_ci	  and built-in as well (Y).
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	  To compile this as a module, choose M here:
448c2ecf20Sopenharmony_ci	  the module will be called ks0108.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	  If unsure, say N.
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciconfig KS0108_PORT
498c2ecf20Sopenharmony_ci	hex "Parallel port where the LCD is connected"
508c2ecf20Sopenharmony_ci	depends on KS0108
518c2ecf20Sopenharmony_ci	default 0x378
528c2ecf20Sopenharmony_ci	help
538c2ecf20Sopenharmony_ci	  The address of the parallel port where the LCD is connected.
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci	  The first  standard parallel port address is 0x378.
568c2ecf20Sopenharmony_ci	  The second standard parallel port address is 0x278.
578c2ecf20Sopenharmony_ci	  The third  standard parallel port address is 0x3BC.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	  You can specify a different address if you need.
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci	  If you don't know what I'm talking about, load the parport module,
628c2ecf20Sopenharmony_ci	  and execute "dmesg" or "cat /proc/ioports". You can see there how
638c2ecf20Sopenharmony_ci	  many parallel ports are present and which address each one has.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci	  Usually you only need to use 0x378.
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci	  If you compile this as a module, you can still override this
688c2ecf20Sopenharmony_ci	  using the module parameters.
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ciconfig KS0108_DELAY
718c2ecf20Sopenharmony_ci	int "Delay between each control writing (microseconds)"
728c2ecf20Sopenharmony_ci	depends on KS0108
738c2ecf20Sopenharmony_ci	default "2"
748c2ecf20Sopenharmony_ci	help
758c2ecf20Sopenharmony_ci	  Amount of time the ks0108 should wait between each control write
768c2ecf20Sopenharmony_ci	  to the parallel port.
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci	  If your LCD seems to miss random writings, increment this.
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci	  If you don't know what I'm talking about, ignore it.
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci	  If you compile this as a module, you can still override this
838c2ecf20Sopenharmony_ci	  value using the module parameters.
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciconfig CFAG12864B
868c2ecf20Sopenharmony_ci	tristate "CFAG12864B LCD"
878c2ecf20Sopenharmony_ci	depends on X86
888c2ecf20Sopenharmony_ci	depends on FB
898c2ecf20Sopenharmony_ci	depends on KS0108
908c2ecf20Sopenharmony_ci	select FB_SYS_FILLRECT
918c2ecf20Sopenharmony_ci	select FB_SYS_COPYAREA
928c2ecf20Sopenharmony_ci	select FB_SYS_IMAGEBLIT
938c2ecf20Sopenharmony_ci	select FB_SYS_FOPS
948c2ecf20Sopenharmony_ci	default n
958c2ecf20Sopenharmony_ci	help
968c2ecf20Sopenharmony_ci	  If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
978c2ecf20Sopenharmony_ci	  say Y. You also need the ks0108 LCD Controller driver.
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci	  For help about how to wire your LCD to the parallel port,
1008c2ecf20Sopenharmony_ci	  check Documentation/admin-guide/auxdisplay/cfag12864b.rst
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci	  Depends on the x86 arch and the framebuffer support.
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci	  The LCD framebuffer driver can be attached to a console.
1058c2ecf20Sopenharmony_ci	  It will work fine. However, you can't attach it to the fbdev driver
1068c2ecf20Sopenharmony_ci	  of the xorg server.
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci	  To compile this as a module, choose M here:
1098c2ecf20Sopenharmony_ci	  the modules will be called cfag12864b and cfag12864bfb.
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci	  If unsure, say N.
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ciconfig CFAG12864B_RATE
1148c2ecf20Sopenharmony_ci	int "Refresh rate (hertz)"
1158c2ecf20Sopenharmony_ci	depends on CFAG12864B
1168c2ecf20Sopenharmony_ci	default "20"
1178c2ecf20Sopenharmony_ci	help
1188c2ecf20Sopenharmony_ci	  Refresh rate of the LCD.
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci	  As the LCD is not memory mapped, the driver has to make the work by
1218c2ecf20Sopenharmony_ci	  software. This means you should be careful setting this value higher.
1228c2ecf20Sopenharmony_ci	  If your CPUs are really slow or you feel the system is slowed down,
1238c2ecf20Sopenharmony_ci	  decrease the value.
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci	  Be careful modifying this value to a very high value:
1268c2ecf20Sopenharmony_ci	  You can freeze the computer, or the LCD maybe can't draw as fast as you
1278c2ecf20Sopenharmony_ci	  are requesting.
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci	  If you don't know what I'm talking about, ignore it.
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci	  If you compile this as a module, you can still override this
1328c2ecf20Sopenharmony_ci	  value using the module parameters.
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ciconfig IMG_ASCII_LCD
1358c2ecf20Sopenharmony_ci	tristate "Imagination Technologies ASCII LCD Display"
1368c2ecf20Sopenharmony_ci	depends on HAS_IOMEM
1378c2ecf20Sopenharmony_ci	default y if MIPS_MALTA
1388c2ecf20Sopenharmony_ci	select MFD_SYSCON
1398c2ecf20Sopenharmony_ci	help
1408c2ecf20Sopenharmony_ci	  Enable this to support the simple ASCII LCD displays found on
1418c2ecf20Sopenharmony_ci	  development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3
1428c2ecf20Sopenharmony_ci	  from Imagination Technologies.
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ciconfig HT16K33
1458c2ecf20Sopenharmony_ci	tristate "Holtek Ht16K33 LED controller with keyscan"
1468c2ecf20Sopenharmony_ci	depends on FB && OF && I2C && INPUT
1478c2ecf20Sopenharmony_ci	select FB_SYS_FOPS
1488c2ecf20Sopenharmony_ci	select FB_SYS_FILLRECT
1498c2ecf20Sopenharmony_ci	select FB_SYS_COPYAREA
1508c2ecf20Sopenharmony_ci	select FB_SYS_IMAGEBLIT
1518c2ecf20Sopenharmony_ci	select INPUT_MATRIXKMAP
1528c2ecf20Sopenharmony_ci	select FB_BACKLIGHT
1538c2ecf20Sopenharmony_ci	help
1548c2ecf20Sopenharmony_ci	  Say yes here to add support for Holtek HT16K33, RAM mapping 16*8
1558c2ecf20Sopenharmony_ci	  LED controller driver with keyscan.
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ciconfig ARM_CHARLCD
1588c2ecf20Sopenharmony_ci	bool "ARM Ltd. Character LCD Driver"
1598c2ecf20Sopenharmony_ci	depends on PLAT_VERSATILE
1608c2ecf20Sopenharmony_ci	help
1618c2ecf20Sopenharmony_ci	  This is a driver for the character LCD found on the ARM Ltd.
1628c2ecf20Sopenharmony_ci	  Versatile and RealView Platform Baseboards. It doesn't do
1638c2ecf20Sopenharmony_ci	  very much more than display the text "ARM Linux" on the first
1648c2ecf20Sopenharmony_ci	  line and the Linux version on the second line, but that's
1658c2ecf20Sopenharmony_ci	  still useful.
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_cimenuconfig PARPORT_PANEL
1688c2ecf20Sopenharmony_ci	tristate "Parallel port LCD/Keypad Panel support"
1698c2ecf20Sopenharmony_ci	depends on PARPORT
1708c2ecf20Sopenharmony_ci	select CHARLCD
1718c2ecf20Sopenharmony_ci	help
1728c2ecf20Sopenharmony_ci	  Say Y here if you have an HD44780 or KS-0074 LCD connected to your
1738c2ecf20Sopenharmony_ci	  parallel port. This driver also features 4 and 6-key keypads. The LCD
1748c2ecf20Sopenharmony_ci	  is accessible through the /dev/lcd char device (10, 156), and the
1758c2ecf20Sopenharmony_ci	  keypad through /dev/keypad (10, 185). This code can either be
1768c2ecf20Sopenharmony_ci	  compiled as a module, or linked into the kernel and started at boot.
1778c2ecf20Sopenharmony_ci	  If you don't understand what all this is about, say N.
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_ciif PARPORT_PANEL
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ciconfig PANEL_PARPORT
1828c2ecf20Sopenharmony_ci	int "Default parallel port number (0=LPT1)"
1838c2ecf20Sopenharmony_ci	range 0 255
1848c2ecf20Sopenharmony_ci	default "0"
1858c2ecf20Sopenharmony_ci	help
1868c2ecf20Sopenharmony_ci	  This is the index of the parallel port the panel is connected to. One
1878c2ecf20Sopenharmony_ci	  driver instance only supports one parallel port, so if your keypad
1888c2ecf20Sopenharmony_ci	  and LCD are connected to two separate ports, you have to start two
1898c2ecf20Sopenharmony_ci	  modules with different arguments. Numbering starts with '0' for LPT1,
1908c2ecf20Sopenharmony_ci	  and so on.
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ciconfig PANEL_PROFILE
1938c2ecf20Sopenharmony_ci	int "Default panel profile (0-5, 0=custom)"
1948c2ecf20Sopenharmony_ci	range 0 5
1958c2ecf20Sopenharmony_ci	default "5"
1968c2ecf20Sopenharmony_ci	help
1978c2ecf20Sopenharmony_ci	  To ease configuration, the driver supports different configuration
1988c2ecf20Sopenharmony_ci	  profiles for past and recent wirings. These profiles can also be
1998c2ecf20Sopenharmony_ci	  used to define an approximative configuration, completed by a few
2008c2ecf20Sopenharmony_ci	  other options. Here are the profiles :
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci	    0 = custom (see further)
2038c2ecf20Sopenharmony_ci	    1 = 2x16 parallel LCD, old keypad
2048c2ecf20Sopenharmony_ci	    2 = 2x16 serial LCD (KS-0074), new keypad
2058c2ecf20Sopenharmony_ci	    3 = 2x16 parallel LCD (Hantronix), no keypad
2068c2ecf20Sopenharmony_ci	    4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
2078c2ecf20Sopenharmony_ci	    5 = 2x40 parallel LCD (old one), with old keypad
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_ci	  Custom configurations allow you to define how your display is
2108c2ecf20Sopenharmony_ci	  wired to the parallel port, and how it works. This is only intended
2118c2ecf20Sopenharmony_ci	  for experts.
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ciconfig PANEL_KEYPAD
2148c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0"
2158c2ecf20Sopenharmony_ci	int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
2168c2ecf20Sopenharmony_ci	range 0 3
2178c2ecf20Sopenharmony_ci	default 0
2188c2ecf20Sopenharmony_ci	help
2198c2ecf20Sopenharmony_ci	  This enables and configures a keypad connected to the parallel port.
2208c2ecf20Sopenharmony_ci	  The keys will be read from character device 10,185. Valid values are :
2218c2ecf20Sopenharmony_ci
2228c2ecf20Sopenharmony_ci	    0 : do not enable this driver
2238c2ecf20Sopenharmony_ci	    1 : old 6 keys keypad
2248c2ecf20Sopenharmony_ci	    2 : new 6 keys keypad, as used on the server at www.ant-computing.com
2258c2ecf20Sopenharmony_ci	    3 : Nexcom NSA1045's 4 keys keypad
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci	  New profiles can be described in the driver source. The driver also
2288c2ecf20Sopenharmony_ci	  supports simultaneous keys pressed when the keypad supports them.
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ciconfig PANEL_LCD
2318c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0"
2328c2ecf20Sopenharmony_ci	int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
2338c2ecf20Sopenharmony_ci	range 0 5
2348c2ecf20Sopenharmony_ci	default 0
2358c2ecf20Sopenharmony_ci	help
2368c2ecf20Sopenharmony_ci	   This enables and configures an LCD connected to the parallel port.
2378c2ecf20Sopenharmony_ci	   The driver includes an interpreter for escape codes starting with
2388c2ecf20Sopenharmony_ci	   '\e[L' which are specific to the LCD, and a few ANSI codes. The
2398c2ecf20Sopenharmony_ci	   driver will be registered as character device 10,156, usually
2408c2ecf20Sopenharmony_ci	   under the name '/dev/lcd'. There are a total of 6 supported types :
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci	     0 : do not enable the driver
2438c2ecf20Sopenharmony_ci	     1 : custom configuration and wiring (see further)
2448c2ecf20Sopenharmony_ci	     2 : 2x16 & 2x40 parallel LCD (old wiring)
2458c2ecf20Sopenharmony_ci	     3 : 2x16 serial LCD (KS-0074 based)
2468c2ecf20Sopenharmony_ci	     4 : 2x16 parallel LCD (Hantronix wiring)
2478c2ecf20Sopenharmony_ci	     5 : 2x16 parallel LCD (Nexcom wiring)
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci	   When type '1' is specified, other options will appear to configure
2508c2ecf20Sopenharmony_ci	   more precise aspects (wiring, dimensions, protocol, ...). Please note
2518c2ecf20Sopenharmony_ci	   that those values changed from the 2.4 driver for better consistency.
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ciconfig PANEL_LCD_HEIGHT
2548c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
2558c2ecf20Sopenharmony_ci	int "Number of lines on the LCD (1-2)"
2568c2ecf20Sopenharmony_ci	range 1 2
2578c2ecf20Sopenharmony_ci	default 2
2588c2ecf20Sopenharmony_ci	help
2598c2ecf20Sopenharmony_ci	  This is the number of visible character lines on the LCD in custom profile.
2608c2ecf20Sopenharmony_ci	  It can either be 1 or 2.
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ciconfig PANEL_LCD_WIDTH
2638c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
2648c2ecf20Sopenharmony_ci	int "Number of characters per line on the LCD (1-40)"
2658c2ecf20Sopenharmony_ci	range 1 40
2668c2ecf20Sopenharmony_ci	default 40
2678c2ecf20Sopenharmony_ci	help
2688c2ecf20Sopenharmony_ci	  This is the number of characters per line on the LCD in custom profile.
2698c2ecf20Sopenharmony_ci	  Common values are 16,20,24,40.
2708c2ecf20Sopenharmony_ci
2718c2ecf20Sopenharmony_ciconfig PANEL_LCD_BWIDTH
2728c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
2738c2ecf20Sopenharmony_ci	int "Internal LCD line width (1-40, 40 by default)"
2748c2ecf20Sopenharmony_ci	range 1 40
2758c2ecf20Sopenharmony_ci	default 40
2768c2ecf20Sopenharmony_ci	help
2778c2ecf20Sopenharmony_ci	  Most LCDs use a standard controller which supports hardware lines of 40
2788c2ecf20Sopenharmony_ci	  characters, although sometimes only 16, 20 or 24 of them are really wired
2798c2ecf20Sopenharmony_ci	  to the terminal. This results in some non-visible but addressable characters,
2808c2ecf20Sopenharmony_ci	  and is the case for most parallel LCDs. Other LCDs, and some serial ones,
2818c2ecf20Sopenharmony_ci	  however, use the same line width internally as what is visible. The KS0074
2828c2ecf20Sopenharmony_ci	  for example, uses 16 characters per line for 16 visible characters per line.
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci	  This option lets you configure the value used by your LCD in 'custom' profile.
2858c2ecf20Sopenharmony_ci	  If you don't know, put '40' here.
2868c2ecf20Sopenharmony_ci
2878c2ecf20Sopenharmony_ciconfig PANEL_LCD_HWIDTH
2888c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
2898c2ecf20Sopenharmony_ci	int "Hardware LCD line width (1-64, 64 by default)"
2908c2ecf20Sopenharmony_ci	range 1 64
2918c2ecf20Sopenharmony_ci	default 64
2928c2ecf20Sopenharmony_ci	help
2938c2ecf20Sopenharmony_ci	  Most LCDs use a single address bit to differentiate line 0 and line 1. Since
2948c2ecf20Sopenharmony_ci	  some of them need to be able to address 40 chars with the lower bits, they
2958c2ecf20Sopenharmony_ci	  often use the immediately superior power of 2, which is 64, to address the
2968c2ecf20Sopenharmony_ci	  next line.
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci	  If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
2998c2ecf20Sopenharmony_ci	  64 here for a 2x40.
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_ciconfig PANEL_LCD_CHARSET
3028c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
3038c2ecf20Sopenharmony_ci	int "LCD character set (0=normal, 1=KS0074)"
3048c2ecf20Sopenharmony_ci	range 0 1
3058c2ecf20Sopenharmony_ci	default 0
3068c2ecf20Sopenharmony_ci	help
3078c2ecf20Sopenharmony_ci	  Some controllers such as the KS0074 use a somewhat strange character set
3088c2ecf20Sopenharmony_ci	  where many symbols are at unusual places. The driver knows how to map
3098c2ecf20Sopenharmony_ci	  'standard' ASCII characters to the character sets used by these controllers.
3108c2ecf20Sopenharmony_ci	  Valid values are :
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci	     0 : normal (untranslated) character set
3138c2ecf20Sopenharmony_ci	     1 : KS0074 character set
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci	  If you don't know, use the normal one (0).
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_ciconfig PANEL_LCD_PROTO
3188c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
3198c2ecf20Sopenharmony_ci	int "LCD communication mode (0=parallel 8 bits, 1=serial)"
3208c2ecf20Sopenharmony_ci	range 0 1
3218c2ecf20Sopenharmony_ci	default 0
3228c2ecf20Sopenharmony_ci	help
3238c2ecf20Sopenharmony_ci	  This driver now supports any serial or parallel LCD wired to a parallel
3248c2ecf20Sopenharmony_ci	  port. But before assigning signals, the driver needs to know if it will
3258c2ecf20Sopenharmony_ci	  be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
3268c2ecf20Sopenharmony_ci	  (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
3278c2ecf20Sopenharmony_ci	  (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
3288c2ecf20Sopenharmony_ci	  parallel LCD, and 1 for a serial LCD.
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_E
3318c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
3328c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
3338c2ecf20Sopenharmony_ci	range -17 17
3348c2ecf20Sopenharmony_ci	default 14
3358c2ecf20Sopenharmony_ci	help
3368c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'E'
3378c2ecf20Sopenharmony_ci	  signal has been connected. It can be :
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
3408c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
3418c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci	  Default for the 'E' pin in custom profile is '14' (AUTOFEED).
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_RS
3468c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
3478c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
3488c2ecf20Sopenharmony_ci	range -17 17
3498c2ecf20Sopenharmony_ci	default 17
3508c2ecf20Sopenharmony_ci	help
3518c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'RS'
3528c2ecf20Sopenharmony_ci	  signal has been connected. It can be :
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
3558c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
3568c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
3578c2ecf20Sopenharmony_ci
3588c2ecf20Sopenharmony_ci	  Default for the 'RS' pin in custom profile is '17' (SELECT IN).
3598c2ecf20Sopenharmony_ci
3608c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_RW
3618c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
3628c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
3638c2ecf20Sopenharmony_ci	range -17 17
3648c2ecf20Sopenharmony_ci	default 16
3658c2ecf20Sopenharmony_ci	help
3668c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'RW'
3678c2ecf20Sopenharmony_ci	  signal has been connected. It can be :
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
3708c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
3718c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_ci	  Default for the 'RW' pin in custom profile is '16' (INIT).
3748c2ecf20Sopenharmony_ci
3758c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_SCL
3768c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
3778c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
3788c2ecf20Sopenharmony_ci	range -17 17
3798c2ecf20Sopenharmony_ci	default 1
3808c2ecf20Sopenharmony_ci	help
3818c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the serial
3828c2ecf20Sopenharmony_ci	  LCD 'SCL' signal has been connected. It can be :
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
3858c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
3868c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci	  Default for the 'SCL' pin in custom profile is '1' (STROBE).
3898c2ecf20Sopenharmony_ci
3908c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_SDA
3918c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
3928c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
3938c2ecf20Sopenharmony_ci	range -17 17
3948c2ecf20Sopenharmony_ci	default 2
3958c2ecf20Sopenharmony_ci	help
3968c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the serial
3978c2ecf20Sopenharmony_ci	  LCD 'SDA' signal has been connected. It can be :
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
4008c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
4018c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
4028c2ecf20Sopenharmony_ci
4038c2ecf20Sopenharmony_ci	  Default for the 'SDA' pin in custom profile is '2' (D0).
4048c2ecf20Sopenharmony_ci
4058c2ecf20Sopenharmony_ciconfig PANEL_LCD_PIN_BL
4068c2ecf20Sopenharmony_ci	depends on PANEL_PROFILE="0" && PANEL_LCD="1"
4078c2ecf20Sopenharmony_ci	int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
4088c2ecf20Sopenharmony_ci	range -17 17
4098c2ecf20Sopenharmony_ci	default 0
4108c2ecf20Sopenharmony_ci	help
4118c2ecf20Sopenharmony_ci	  This describes the number of the parallel port pin to which the LCD 'BL' signal
4128c2ecf20Sopenharmony_ci	  has been connected. It can be :
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_ci	          0 : no connection (eg: connected to ground)
4158c2ecf20Sopenharmony_ci	      1..17 : directly connected to any of these pins on the DB25 plug
4168c2ecf20Sopenharmony_ci	    -1..-17 : connected to the same pin through an inverter (eg: transistor).
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ci	  Default for the 'BL' pin in custom profile is '0' (uncontrolled).
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ciendif # PARPORT_PANEL
4218c2ecf20Sopenharmony_ci
4228c2ecf20Sopenharmony_ciconfig PANEL_CHANGE_MESSAGE
4238c2ecf20Sopenharmony_ci	bool "Change LCD initialization message ?"
4248c2ecf20Sopenharmony_ci	depends on CHARLCD
4258c2ecf20Sopenharmony_ci	default "n"
4268c2ecf20Sopenharmony_ci	help
4278c2ecf20Sopenharmony_ci	  This allows you to replace the boot message indicating the kernel version
4288c2ecf20Sopenharmony_ci	  and the driver version with a custom message. This is useful on appliances
4298c2ecf20Sopenharmony_ci	  where a simple 'Starting system' message can be enough to stop a customer
4308c2ecf20Sopenharmony_ci	  from worrying.
4318c2ecf20Sopenharmony_ci
4328c2ecf20Sopenharmony_ci	  If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
4338c2ecf20Sopenharmony_ci	  say 'N' and keep the default message with the version.
4348c2ecf20Sopenharmony_ci
4358c2ecf20Sopenharmony_ciconfig PANEL_BOOT_MESSAGE
4368c2ecf20Sopenharmony_ci	depends on PANEL_CHANGE_MESSAGE="y"
4378c2ecf20Sopenharmony_ci	string "New initialization message"
4388c2ecf20Sopenharmony_ci	default ""
4398c2ecf20Sopenharmony_ci	help
4408c2ecf20Sopenharmony_ci	  This allows you to replace the boot message indicating the kernel version
4418c2ecf20Sopenharmony_ci	  and the driver version with a custom message. This is useful on appliances
4428c2ecf20Sopenharmony_ci	  where a simple 'Starting system' message can be enough to stop a customer
4438c2ecf20Sopenharmony_ci	  from worrying.
4448c2ecf20Sopenharmony_ci
4458c2ecf20Sopenharmony_ci	  An empty message will only clear the display at driver init time. Any other
4468c2ecf20Sopenharmony_ci	  printf()-formatted message is valid with newline and escape codes.
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_cichoice
4498c2ecf20Sopenharmony_ci	prompt "Backlight initial state"
4508c2ecf20Sopenharmony_ci	default CHARLCD_BL_FLASH
4518c2ecf20Sopenharmony_ci	help
4528c2ecf20Sopenharmony_ci	  Select the initial backlight state on boot or module load.
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ci	  Previously, there was no option for this: the backlight flashed
4558c2ecf20Sopenharmony_ci	  briefly on init. Now you can also turn it off/on.
4568c2ecf20Sopenharmony_ci
4578c2ecf20Sopenharmony_ci	config CHARLCD_BL_OFF
4588c2ecf20Sopenharmony_ci		bool "Off"
4598c2ecf20Sopenharmony_ci		help
4608c2ecf20Sopenharmony_ci		  Backlight is initially turned off
4618c2ecf20Sopenharmony_ci
4628c2ecf20Sopenharmony_ci	config CHARLCD_BL_ON
4638c2ecf20Sopenharmony_ci		bool "On"
4648c2ecf20Sopenharmony_ci		help
4658c2ecf20Sopenharmony_ci		  Backlight is initially turned on
4668c2ecf20Sopenharmony_ci
4678c2ecf20Sopenharmony_ci	config CHARLCD_BL_FLASH
4688c2ecf20Sopenharmony_ci		bool "Flash"
4698c2ecf20Sopenharmony_ci		help
4708c2ecf20Sopenharmony_ci		  Backlight is flashed briefly on init
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ciendchoice
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ciendif # AUXDISPLAY
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ciconfig PANEL
4778c2ecf20Sopenharmony_ci	tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)"
4788c2ecf20Sopenharmony_ci	depends on PARPORT
4798c2ecf20Sopenharmony_ci	select AUXDISPLAY
4808c2ecf20Sopenharmony_ci	select PARPORT_PANEL
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_ciconfig CHARLCD
4838c2ecf20Sopenharmony_ci	tristate "Character LCD core support" if COMPILE_TEST
484