Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. config PANEL
  2. tristate "Parallel port LCD/Keypad Panel support"
  3. depends on PARPORT
  4. ---help---
  5. Say Y here if you have an HD44780 or KS-0074 LCD connected to your
  6. parallel port. This driver also features 4 and 6-key keypads. The LCD
  7. is accessible through the /dev/lcd char device (10, 156), and the
  8. keypad through /dev/keypad (10, 185). Both require misc device to be
  9. enabled. This code can either be compiled as a module, or linked into
  10. the kernel and started at boot. If you don't understand what all this
  11. is about, say N.
  12. config PANEL_PARPORT
  13. int "Default parallel port number (0=LPT1)"
  14. depends on PANEL
  15. range 0 255
  16. default "0"
  17. ---help---
  18. This is the index of the parallel port the panel is connected to. One
  19. driver instance only supports one parallel port, so if your keypad
  20. and LCD are connected to two separate ports, you have to start two
  21. modules with different arguments. Numbering starts with '0' for LPT1,
  22. and so on.
  23. config PANEL_PROFILE
  24. int "Default panel profile (0-5, 0=custom)"
  25. depends on PANEL
  26. range 0 5
  27. default "5"
  28. ---help---
  29. To ease configuration, the driver supports different configuration
  30. profiles for past and recent wirings. These profiles can also be
  31. used to define an approximative configuration, completed by a few
  32. other options. Here are the profiles :
  33. 0 = custom (see further)
  34. 1 = 2x16 parallel LCD, old keypad
  35. 2 = 2x16 serial LCD (KS-0074), new keypad
  36. 3 = 2x16 parallel LCD (Hantronix), no keypad
  37. 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
  38. 5 = 2x40 parallel LCD (old one), with old keypad
  39. Custom configurations allow you to define how your display is
  40. wired to the parallel port, and how it works. This is only intended
  41. for experts.
  42. config PANEL_KEYPAD
  43. depends on PANEL && PANEL_PROFILE="0"
  44. int "Keypad type (0=none, 1=old 6 keys, 2=new 6 keys, 3=Nexcom 4 keys)"
  45. range 0 3
  46. default 0
  47. ---help---
  48. This enables and configures a keypad connected to the parallel port.
  49. The keys will be read from character device 10,185. Valid values are :
  50. 0 : do not enable this driver
  51. 1 : old 6 keys keypad
  52. 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
  53. 3 : Nexcom NSA1045's 4 keys keypad
  54. New profiles can be described in the driver source. The driver also
  55. supports simultaneous keys pressed when the keypad supports them.
  56. config PANEL_LCD
  57. depends on PANEL && PANEL_PROFILE="0"
  58. int "LCD type (0=none, 1=custom, 2=old //, 3=ks0074, 4=hantronix, 5=Nexcom)"
  59. range 0 5
  60. default 0
  61. ---help---
  62. This enables and configures an LCD connected to the parallel port.
  63. The driver includes an interpreter for escape codes starting with
  64. '\e[L' which are specific to the LCD, and a few ANSI codes. The
  65. driver will be registered as character device 10,156, usually
  66. under the name '/dev/lcd'. There are a total of 6 supported types :
  67. 0 : do not enable the driver
  68. 1 : custom configuration and wiring (see further)
  69. 2 : 2x16 & 2x40 parallel LCD (old wiring)
  70. 3 : 2x16 serial LCD (KS-0074 based)
  71. 4 : 2x16 parallel LCD (Hantronix wiring)
  72. 5 : 2x16 parallel LCD (Nexcom wiring)
  73. When type '1' is specified, other options will appear to configure
  74. more precise aspects (wiring, dimensions, protocol, ...). Please note
  75. that those values changed from the 2.4 driver for better consistency.
  76. config PANEL_LCD_HEIGHT
  77. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  78. int "Number of lines on the LCD (1-2)"
  79. range 1 2
  80. default 2
  81. ---help---
  82. This is the number of visible character lines on the LCD in custom profile.
  83. It can either be 1 or 2.
  84. config PANEL_LCD_WIDTH
  85. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  86. int "Number of characters per line on the LCD (1-40)"
  87. range 1 40
  88. default 40
  89. ---help---
  90. This is the number of characters per line on the LCD in custom profile.
  91. Common values are 16,20,24,40.
  92. config PANEL_LCD_BWIDTH
  93. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  94. int "Internal LCD line width (1-40, 40 by default)"
  95. range 1 40
  96. default 40
  97. ---help---
  98. Most LCDs use a standard controller which supports hardware lines of 40
  99. characters, although sometimes only 16, 20 or 24 of them are really wired
  100. to the terminal. This results in some non-visible but addressable characters,
  101. and is the case for most parallel LCDs. Other LCDs, and some serial ones,
  102. however, use the same line width internally as what is visible. The KS0074
  103. for example, uses 16 characters per line for 16 visible characters per line.
  104. This option lets you configure the value used by your LCD in 'custom' profile.
  105. If you don't know, put '40' here.
  106. config PANEL_LCD_HWIDTH
  107. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  108. int "Hardware LCD line width (1-64, 64 by default)"
  109. range 1 64
  110. default 64
  111. ---help---
  112. Most LCDs use a single address bit to differentiate line 0 and line 1. Since
  113. some of them need to be able to address 40 chars with the lower bits, they
  114. often use the immediately superior power of 2, which is 64, to address the
  115. next line.
  116. If you don't know what your LCD uses, in doubt let 16 here for a 2x16, and
  117. 64 here for a 2x40.
  118. config PANEL_LCD_CHARSET
  119. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  120. int "LCD character set (0=normal, 1=KS0074)"
  121. range 0 1
  122. default 0
  123. ---help---
  124. Some controllers such as the KS0074 use a somewhat strange character set
  125. where many symbols are at unusual places. The driver knows how to map
  126. 'standard' ASCII characters to the character sets used by these controllers.
  127. Valid values are :
  128. 0 : normal (untranslated) character set
  129. 1 : KS0074 character set
  130. If you don't know, use the normal one (0).
  131. config PANEL_LCD_PROTO
  132. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  133. int "LCD communication mode (0=parallel 8 bits, 1=serial)"
  134. range 0 1
  135. default 0
  136. ---help---
  137. This driver now supports any serial or parallel LCD wired to a parallel
  138. port. But before assigning signals, the driver needs to know if it will
  139. be driving a serial LCD or a parallel one. Serial LCDs only use 2 wires
  140. (SDA/SCL), while parallel ones use 2 or 3 wires for the control signals
  141. (E, RS, sometimes RW), and 4 or 8 for the data. Use 0 here for a 8 bits
  142. parallel LCD, and 1 for a serial LCD.
  143. config PANEL_LCD_PIN_E
  144. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  145. int "Parallel port pin number & polarity connected to the LCD E signal (-17...17) "
  146. range -17 17
  147. default 14
  148. ---help---
  149. This describes the number of the parallel port pin to which the LCD 'E'
  150. signal has been connected. It can be :
  151. 0 : no connection (eg: connected to ground)
  152. 1..17 : directly connected to any of these pins on the DB25 plug
  153. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  154. Default for the 'E' pin in custom profile is '14' (AUTOFEED).
  155. config PANEL_LCD_PIN_RS
  156. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  157. int "Parallel port pin number & polarity connected to the LCD RS signal (-17...17) "
  158. range -17 17
  159. default 17
  160. ---help---
  161. This describes the number of the parallel port pin to which the LCD 'RS'
  162. signal has been connected. It can be :
  163. 0 : no connection (eg: connected to ground)
  164. 1..17 : directly connected to any of these pins on the DB25 plug
  165. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  166. Default for the 'RS' pin in custom profile is '17' (SELECT IN).
  167. config PANEL_LCD_PIN_RW
  168. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO="0"
  169. int "Parallel port pin number & polarity connected to the LCD RW signal (-17...17) "
  170. range -17 17
  171. default 16
  172. ---help---
  173. This describes the number of the parallel port pin to which the LCD 'RW'
  174. signal has been connected. It can be :
  175. 0 : no connection (eg: connected to ground)
  176. 1..17 : directly connected to any of these pins on the DB25 plug
  177. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  178. Default for the 'RW' pin in custom profile is '16' (INIT).
  179. config PANEL_LCD_PIN_SCL
  180. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  181. int "Parallel port pin number & polarity connected to the LCD SCL signal (-17...17) "
  182. range -17 17
  183. default 1
  184. ---help---
  185. This describes the number of the parallel port pin to which the serial
  186. LCD 'SCL' signal has been connected. It can be :
  187. 0 : no connection (eg: connected to ground)
  188. 1..17 : directly connected to any of these pins on the DB25 plug
  189. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  190. Default for the 'SCL' pin in custom profile is '1' (STROBE).
  191. config PANEL_LCD_PIN_SDA
  192. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1" && PANEL_LCD_PROTO!="0"
  193. int "Parallel port pin number & polarity connected to the LCD SDA signal (-17...17) "
  194. range -17 17
  195. default 2
  196. ---help---
  197. This describes the number of the parallel port pin to which the serial
  198. LCD 'SDA' signal has been connected. It can be :
  199. 0 : no connection (eg: connected to ground)
  200. 1..17 : directly connected to any of these pins on the DB25 plug
  201. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  202. Default for the 'SDA' pin in custom profile is '2' (D0).
  203. config PANEL_LCD_PIN_BL
  204. depends on PANEL && PANEL_PROFILE="0" && PANEL_LCD="1"
  205. int "Parallel port pin number & polarity connected to the LCD backlight signal (-17...17) "
  206. range -17 17
  207. default 0
  208. ---help---
  209. This describes the number of the parallel port pin to which the LCD 'BL' signal
  210. has been connected. It can be :
  211. 0 : no connection (eg: connected to ground)
  212. 1..17 : directly connected to any of these pins on the DB25 plug
  213. -1..-17 : connected to the same pin through an inverter (eg: transistor).
  214. Default for the 'BL' pin in custom profile is '0' (uncontrolled).
  215. config PANEL_CHANGE_MESSAGE
  216. depends on PANEL
  217. bool "Change LCD initialization message ?"
  218. default "n"
  219. ---help---
  220. This allows you to replace the boot message indicating the kernel version
  221. and the driver version with a custom message. This is useful on appliances
  222. where a simple 'Starting system' message can be enough to stop a customer
  223. from worrying.
  224. If you say 'Y' here, you'll be able to choose a message yourself. Otherwise,
  225. say 'N' and keep the default message with the version.
  226. config PANEL_BOOT_MESSAGE
  227. depends on PANEL && PANEL_CHANGE_MESSAGE="y"
  228. string "New initialization message"
  229. default ""
  230. ---help---
  231. This allows you to replace the boot message indicating the kernel version
  232. and the driver version with a custom message. This is useful on appliances
  233. where a simple 'Starting system' message can be enough to stop a customer
  234. from worrying.
  235. An empty message will only clear the display at driver init time. Any other
  236. printf()-formatted message is valid with newline and escape codes.