Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # For a description of the syntax of this configuration file,
  4. # see Documentation/kbuild/kconfig-language.rst.
  5. #
  6. # Auxiliary display drivers configuration.
  7. #
  8. menuconfig AUXDISPLAY
  9. bool "Auxiliary Display support"
  10. help
  11. Say Y here to get to see options for auxiliary display drivers.
  12. This option alone does not add any kernel code.
  13. If you say N, all options in this submenu will be skipped and disabled.
  14. if AUXDISPLAY
  15. #
  16. # Character LCD section
  17. #
  18. config CHARLCD
  19. tristate "Character LCD core support" if COMPILE_TEST
  20. help
  21. This is the base system for character-based LCD displays.
  22. It makes no sense to have this alone, you select your display driver
  23. and if it needs the charlcd core, it will select it automatically.
  24. This is some character LCD core interface that multiple drivers can
  25. use.
  26. config HD44780_COMMON
  27. tristate "Common functions for HD44780 (and compatibles) LCD displays" if COMPILE_TEST
  28. select CHARLCD
  29. help
  30. This is a module with the common symbols for HD44780 (and compatibles)
  31. displays. This is the code that multiple other modules use. It is not
  32. useful alone. If you have some sort of HD44780 compatible display,
  33. you very likely use this. It is selected automatically by selecting
  34. your concrete display.
  35. config HD44780
  36. tristate "HD44780 Character LCD support"
  37. depends on GPIOLIB || COMPILE_TEST
  38. select HD44780_COMMON
  39. help
  40. Enable support for Character LCDs using a HD44780 controller.
  41. The LCD is accessible through the /dev/lcd char device (10, 156).
  42. This code can either be compiled as a module, or linked into the
  43. kernel and started at boot.
  44. If you don't understand what all this is about, say N.
  45. config LCD2S
  46. tristate "lcd2s 20x4 character display over I2C console"
  47. depends on I2C
  48. select CHARLCD
  49. help
  50. This is a driver that lets you use the lcd2s 20x4 character display
  51. from Modtronix engineering as a console output device. The display
  52. is a simple single color character display. You have to connect it
  53. to an I2C bus.
  54. menuconfig PARPORT_PANEL
  55. tristate "Parallel port LCD/Keypad Panel support"
  56. depends on PARPORT
  57. select HD44780_COMMON
  58. help
  59. Say Y here if you have an HD44780 or KS-0074 LCD connected to your
  60. parallel port. This driver also features 4 and 6-key keypads. The LCD
  61. is accessible through the /dev/lcd char device (10, 156), and the
  62. keypad through /dev/keypad (10, 185). This code can either be
  63. compiled as a module, or linked into the kernel and started at boot.
  64. If you don't understand what all this is about, say N.
  65. if PARPORT_PANEL
  66. config PANEL_PARPORT
  67. int "Default parallel port number (0=LPT1)"
  68. range 0 255
  69. default "0"
  70. help
  71. This is the index of the parallel port the panel is connected to. One
  72. driver instance only supports one parallel port, so if your keypad
  73. and LCD are connected to two separate ports, you have to start two
  74. modules with different arguments. Numbering starts with '0' for LPT1,
  75. and so on.
  76. config PANEL_PROFILE
  77. int "Default panel profile (0-5, 0=custom)"
  78. range 0 5
  79. default "5"
  80. help
  81. To ease configuration, the driver supports different configuration
  82. profiles for past and recent wirings. These profiles can also be
  83. used to define an approximative configuration, completed by a few
  84. other options. Here are the profiles :
  85. 0 = custom (see further)
  86. 1 = 2x16 parallel LCD, old keypad
  87. 2 = 2x16 serial LCD (KS-0074), new keypad
  88. 3 = 2x16 parallel LCD (Hantronix), no keypad
  89. 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
  90. 5 = 2x40 parallel LCD (old one), with old keypad
  91. Custom configurations allow you to define how your display is
  92. wired to the parallel port, and how it works. This is only intended
  93. for experts.
  94. config PANEL_KEYPAD
  95. depends on PANEL_PROFILE="0"
  96. int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
  97. range 0 3
  98. default 0
  99. help
  100. This enables and configures a keypad connected to the parallel port.
  101. The keys will be read from character device 10,185. Valid values are :
  102. 0 : do not enable this driver
  103. 1 : old 6 keys keypad
  104. 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
  105. 3 : Nexcom NSA1045's 4 keys keypad
  106. New profiles can be described in the driver source. The driver also
  107. supports simultaneous keys pressed when the keypad supports them.
  108. config PANEL_LCD
  109. depends on PANEL_PROFILE="0"
  110. int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
  111. range 0 5
  112. default 0
  113. help
  114. This enables and configures an LCD connected to the parallel port.
  115. The driver includes an interpreter for escape codes starting with
  116. '\e[L' which are specific to the LCD, and a few ANSI codes. The
  117. driver will be registered as character device 10,156, usually
  118. under the name '/dev/lcd'. There are a total of 6 supported types :
  119. 0 : do not enable the driver
  120. 1 : custom configuration and wiring (see further)
  121. 2 : 2x16 & 2x40 parallel LCD (old wiring)
  122. 3 : 2x16 serial LCD (KS-0074 based)
  123. 4 : 2x16 parallel LCD (Hantronix wiring)
  124. 5 : 2x16 parallel LCD (Nexcom wiring)
  125. When type '1' is specified, other options will appear to configure
  126. more precise aspects (wiring, dimensions, protocol, ...). Please note
  127. that those values changed from the 2.4 driver for better consistency.
  128. config PANEL_LCD_HEIGHT
  129. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  130. int "Number of lines on the LCD (1-2)"
  131. range 1 2
  132. default 2
  133. help
  134. This is the number of visible character lines on the LCD in custom profile.
  135. It can either be 1 or 2.
  136. config PANEL_LCD_WIDTH
  137. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  138. int "Number of characters per line on the LCD (1-40)"
  139. range 1 40
  140. default 40
  141. help
  142. This is the number of characters per line on the LCD in custom profile.
  143. Common values are 16,20,24,40.
  144. config PANEL_LCD_BWIDTH
  145. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  146. int "Internal LCD line width (1-40, 40 by default)"
  147. range 1 40
  148. default 40
  149. help
  150. Most LCDs use a standard controller which supports hardware lines of 40
  151. characters, although sometimes only 16, 20 or 24 of them are really wired
  152. to the terminal. This results in some non-visible but addressable characters,
  153. and is the case for most parallel LCDs. Other LCDs, and some serial ones,
  154. however, use the same line width internally as what is visible. The KS0074
  155. for example, uses 16 characters per line for 16 visible characters per line.
  156. This option lets you configure the value used by your LCD in 'custom' profile.
  157. If you don't know, put '40' here.
  158. config PANEL_LCD_HWIDTH
  159. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  160. int "Hardware LCD line width (1-64, 64 by default)"
  161. range 1 64
  162. default 64
  163. help
  164. Most LCDs use a single address bit to differentiate line 0 and line 1. Since
  165. some of them need to be able to address 40 chars with the lower bits, they
  166. often use the immediately superior power of 2, which is 64, to address the
  167. next line.
  168. If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
  169. 64 here for a 2x40.
  170. config PANEL_LCD_CHARSET
  171. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  172. int "LCD character set (0=normal, 1=KS0074)"
  173. range 0 1
  174. default 0
  175. help
  176. Some controllers such as the KS0074 use a somewhat strange character set
  177. where many symbols are at unusual places. The driver knows how to map
  178. 'standard' ASCII characters to the character sets used by these controllers.
  179. Valid values are :
  180. 0 : normal (untranslated) character set
  181. 1 : KS0074 character set
  182. If you don't know, use the normal one (0).
  183. config PANEL_LCD_PROTO
  184. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  185. int "LCD communication mode (0=parallel 8 bits, 1=serial)"
  186. range 0 1
  187. default 0
  188. help
  189. This driver now supports any serial or parallel LCD wired to a parallel
  190. port. But before assigning signals, the driver needs to know if it will
  191. be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
  192. (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
  193. (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
  194. parallel LCD, and 1 for a serial LCD.
  195. config PANEL_LCD_PIN_E
  196. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  197. int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
  198. range -17 17
  199. default 14
  200. help
  201. This describes the number of the parallel port pin to which the LCD 'E'
  202. signal has been connected. It can be :
  203. 0 : no connection (eg: connected to ground)
  204. 1..17 : directly connected to any of these pins on the DB25 plug
  205. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  206. Default for the 'E' pin in custom profile is '14' (AUTOFEED).
  207. config PANEL_LCD_PIN_RS
  208. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  209. int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
  210. range -17 17
  211. default 17
  212. help
  213. This describes the number of the parallel port pin to which the LCD 'RS'
  214. signal has been connected. It can be :
  215. 0 : no connection (eg: connected to ground)
  216. 1..17 : directly connected to any of these pins on the DB25 plug
  217. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  218. Default for the 'RS' pin in custom profile is '17' (SELECT IN).
  219. config PANEL_LCD_PIN_RW
  220. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  221. int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
  222. range -17 17
  223. default 16
  224. help
  225. This describes the number of the parallel port pin to which the LCD 'RW'
  226. signal has been connected. It can be :
  227. 0 : no connection (eg: connected to ground)
  228. 1..17 : directly connected to any of these pins on the DB25 plug
  229. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  230. Default for the 'RW' pin in custom profile is '16' (INIT).
  231. config PANEL_LCD_PIN_SCL
  232. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  233. int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
  234. range -17 17
  235. default 1
  236. help
  237. This describes the number of the parallel port pin to which the serial
  238. LCD 'SCL' signal has been connected. It can be :
  239. 0 : no connection (eg: connected to ground)
  240. 1..17 : directly connected to any of these pins on the DB25 plug
  241. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  242. Default for the 'SCL' pin in custom profile is '1' (STROBE).
  243. config PANEL_LCD_PIN_SDA
  244. depends on PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  245. int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
  246. range -17 17
  247. default 2
  248. help
  249. This describes the number of the parallel port pin to which the serial
  250. LCD 'SDA' signal has been connected. It can be :
  251. 0 : no connection (eg: connected to ground)
  252. 1..17 : directly connected to any of these pins on the DB25 plug
  253. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  254. Default for the 'SDA' pin in custom profile is '2' (D0).
  255. config PANEL_LCD_PIN_BL
  256. depends on PANEL_PROFILE="0" && PANEL_LCD="1"
  257. int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
  258. range -17 17
  259. default 0
  260. help
  261. This describes the number of the parallel port pin to which the LCD 'BL' signal
  262. has been connected. It can be :
  263. 0 : no connection (eg: connected to ground)
  264. 1..17 : directly connected to any of these pins on the DB25 plug
  265. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  266. Default for the 'BL' pin in custom profile is '0' (uncontrolled).
  267. endif # PARPORT_PANEL
  268. config PANEL_CHANGE_MESSAGE
  269. bool "Change LCD initialization message ?"
  270. depends on CHARLCD || LINEDISP
  271. help
  272. This allows you to replace the boot message indicating the kernel version
  273. and the driver version with a custom message. This is useful on appliances
  274. where a simple 'Starting system' message can be enough to stop a customer
  275. from worrying.
  276. If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
  277. say 'N' and keep the default message with the version.
  278. config PANEL_BOOT_MESSAGE
  279. depends on PANEL_CHANGE_MESSAGE="y"
  280. string "New initialization message"
  281. default ""
  282. help
  283. This allows you to replace the boot message indicating the kernel version
  284. and the driver version with a custom message. This is useful on appliances
  285. where a simple 'Starting system' message can be enough to stop a customer
  286. from worrying.
  287. An empty message will only clear the display at driver init time. Any other
  288. printf()-formatted message is valid with newline and escape codes.
  289. choice
  290. prompt "Backlight initial state"
  291. default CHARLCD_BL_FLASH
  292. help
  293. Select the initial backlight state on boot or module load.
  294. Previously, there was no option for this: the backlight flashed
  295. briefly on init. Now you can also turn it off/on.
  296. config CHARLCD_BL_OFF
  297. bool "Off"
  298. help
  299. Backlight is initially turned off
  300. config CHARLCD_BL_ON
  301. bool "On"
  302. help
  303. Backlight is initially turned on
  304. config CHARLCD_BL_FLASH
  305. bool "Flash"
  306. help
  307. Backlight is flashed briefly on init
  308. endchoice
  309. #
  310. # Samsung KS0108 LCD controller section
  311. #
  312. config KS0108
  313. tristate "KS0108 LCD Controller"
  314. depends on PARPORT_PC
  315. help
  316. If you have a LCD controlled by one or more KS0108
  317. controllers, say Y. You will need also another more specific
  318. driver for your LCD.
  319. Depends on Parallel Port support. If you say Y at
  320. parport, you will be able to compile this as a module (M)
  321. and built-in as well (Y).
  322. To compile this as a module, choose M here:
  323. the module will be called ks0108.
  324. If unsure, say N.
  325. config KS0108_PORT
  326. hex "Parallel port where the LCD is connected"
  327. depends on KS0108
  328. default 0x378
  329. help
  330. The address of the parallel port where the LCD is connected.
  331. The first standard parallel port address is 0x378.
  332. The second standard parallel port address is 0x278.
  333. The third standard parallel port address is 0x3BC.
  334. You can specify a different address if you need.
  335. If you don't know what I'm talking about, load the parport module,
  336. and execute "dmesg" or "cat /proc/ioports". You can see there how
  337. many parallel ports are present and which address each one has.
  338. Usually you only need to use 0x378.
  339. If you compile this as a module, you can still override this
  340. using the module parameters.
  341. config KS0108_DELAY
  342. int "Delay between each control writing (microseconds)"
  343. depends on KS0108
  344. default "2"
  345. help
  346. Amount of time the ks0108 should wait between each control write
  347. to the parallel port.
  348. If your LCD seems to miss random writings, increment this.
  349. If you don't know what I'm talking about, ignore it.
  350. If you compile this as a module, you can still override this
  351. value using the module parameters.
  352. config CFAG12864B
  353. tristate "CFAG12864B LCD"
  354. depends on X86
  355. depends on FB
  356. depends on KS0108
  357. select FB_SYSMEM_HELPERS
  358. help
  359. If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
  360. say Y. You also need the ks0108 LCD Controller driver.
  361. For help about how to wire your LCD to the parallel port,
  362. check Documentation/admin-guide/auxdisplay/cfag12864b.rst
  363. Depends on the x86 arch and the framebuffer support.
  364. The LCD framebuffer driver can be attached to a console.
  365. It will work fine. However, you can't attach it to the fbdev driver
  366. of the xorg server.
  367. To compile this as a module, choose M here:
  368. the modules will be called cfag12864b and cfag12864bfb.
  369. If unsure, say N.
  370. config CFAG12864B_RATE
  371. int "Refresh rate (hertz)"
  372. depends on CFAG12864B
  373. default "20"
  374. help
  375. Refresh rate of the LCD.
  376. As the LCD is not memory mapped, the driver has to make the work by
  377. software. This means you should be careful setting this value higher.
  378. If your CPUs are really slow or you feel the system is slowed down,
  379. decrease the value.
  380. Be careful modifying this value to a very high value:
  381. You can freeze the computer, or the LCD maybe can't draw as fast as you
  382. are requesting.
  383. If you don't know what I'm talking about, ignore it.
  384. If you compile this as a module, you can still override this
  385. value using the module parameters.
  386. #
  387. # Single character line display section
  388. #
  389. config LINEDISP
  390. tristate "Character line display core support" if COMPILE_TEST
  391. help
  392. This is the core support for single-line character displays, to be
  393. selected by drivers that use it.
  394. config IMG_ASCII_LCD
  395. tristate "Imagination Technologies ASCII LCD Display"
  396. depends on HAS_IOMEM
  397. default y if MIPS_MALTA
  398. select MFD_SYSCON
  399. select LINEDISP
  400. help
  401. Enable this to support the simple ASCII LCD displays found on
  402. development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3
  403. from Imagination Technologies.
  404. config HT16K33
  405. tristate "Holtek Ht16K33 LED controller with keyscan"
  406. depends on FB && I2C && INPUT && BACKLIGHT_CLASS_DEVICE
  407. select FB_SYSMEM_HELPERS
  408. select INPUT_MATRIXKMAP
  409. select FB_BACKLIGHT
  410. select NEW_LEDS
  411. select LEDS_CLASS
  412. select LINEDISP
  413. help
  414. Say yes here to add support for Holtek HT16K33, RAM mapping 16*8
  415. LED controller driver with keyscan.
  416. config MAX6959
  417. tristate "Maxim MAX6958/6959 7-segment LED controller"
  418. depends on I2C
  419. select BITREVERSE
  420. select REGMAP_I2C
  421. select LINEDISP
  422. help
  423. If you say yes here you get support for the following Maxim chips
  424. (I2C 7-segment LED display controller):
  425. - MAX6958
  426. - MAX6959 (input support)
  427. This driver can also be built as a module. If so, the module
  428. will be called max6959.
  429. config SEG_LED_GPIO
  430. tristate "Generic 7-segment LED display"
  431. depends on GPIOLIB || COMPILE_TEST
  432. select LINEDISP
  433. help
  434. This driver supports a generic 7-segment LED display made up
  435. of GPIO pins connected to the individual segments.
  436. This driver can also be built as a module. If so, the module
  437. will be called seg-led-gpio.
  438. #
  439. # Character LCD with non-conforming interface section
  440. #
  441. config ARM_CHARLCD
  442. bool "ARM Ltd. Character LCD Driver"
  443. depends on PLAT_VERSATILE
  444. help
  445. This is a driver for the character LCD found on the ARM Ltd.
  446. Versatile and RealView Platform Baseboards. It doesn't do
  447. very much more than display the text "ARM Linux" on the first
  448. line and the Linux version on the second line, but that's
  449. still useful.
  450. endif # AUXDISPLAY
  451. #
  452. # Deprecated options
  453. #
  454. config PANEL
  455. tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)"
  456. depends on PARPORT
  457. select AUXDISPLAY
  458. select PARPORT_PANEL