xref: /openbmc/linux/drivers/auxdisplay/Kconfig (revision f15cbe6f)
1#
2# For a description of the syntax of this configuration file,
3# see Documentation/kbuild/kconfig-language.txt.
4#
5# Auxiliary display drivers configuration.
6#
7
8menuconfig AUXDISPLAY
9	depends on PARPORT
10	bool "Auxiliary Display support"
11	---help---
12	  Say Y here to get to see options for auxiliary display drivers.
13	  This option alone does not add any kernel code.
14
15	  If you say N, all options in this submenu will be skipped and disabled.
16
17if AUXDISPLAY && PARPORT
18
19config KS0108
20	tristate "KS0108 LCD Controller"
21	depends on PARPORT_PC
22	default n
23	---help---
24	  If you have a LCD controlled by one or more KS0108
25	  controllers, say Y. You will need also another more specific
26	  driver for your LCD.
27
28	  Depends on Parallel Port support. If you say Y at
29	  parport, you will be able to compile this as a module (M)
30	  and built-in as well (Y).
31
32	  To compile this as a module, choose M here:
33	  the module will be called ks0108.
34
35	  If unsure, say N.
36
37config KS0108_PORT
38	hex "Parallel port where the LCD is connected"
39	depends on KS0108
40	default 0x378
41	---help---
42	  The address of the parallel port where the LCD is connected.
43
44	  The first  standard parallel port address is 0x378.
45	  The second standard parallel port address is 0x278.
46	  The third  standard parallel port address is 0x3BC.
47
48	  You can specify a different address if you need.
49
50	  If you don't know what I'm talking about, load the parport module,
51	  and execute "dmesg" or "cat /proc/ioports". You can see there how
52	  many parallel ports are present and which address each one has.
53
54	  Usually you only need to use 0x378.
55
56	  If you compile this as a module, you can still override this
57	  using the module parameters.
58
59config KS0108_DELAY
60	int "Delay between each control writing (microseconds)"
61	depends on KS0108
62	default "2"
63	---help---
64	  Amount of time the ks0108 should wait between each control write
65	  to the parallel port.
66
67	  If your LCD seems to miss random writings, increment this.
68
69	  If you don't know what I'm talking about, ignore it.
70
71	  If you compile this as a module, you can still override this
72	  value using the module parameters.
73
74config CFAG12864B
75	tristate "CFAG12864B LCD"
76	depends on X86
77	depends on FB
78	depends on KS0108
79	select FB_SYS_FILLRECT
80	select FB_SYS_COPYAREA
81	select FB_SYS_IMAGEBLIT
82	select FB_SYS_FOPS
83	default n
84	---help---
85	  If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
86	  say Y. You also need the ks0108 LCD Controller driver.
87
88	  For help about how to wire your LCD to the parallel port,
89	  check Documentation/auxdisplay/cfag12864b
90
91	  Depends on the x86 arch and the framebuffer support.
92
93	  The LCD framebuffer driver can be attached to a console.
94	  It will work fine. However, you can't attach it to the fbdev driver
95	  of the xorg server.
96
97	  To compile this as a module, choose M here:
98	  the modules will be called cfag12864b and cfag12864bfb.
99
100	  If unsure, say N.
101
102config CFAG12864B_RATE
103       int "Refresh rate (hertz)"
104	depends on CFAG12864B
105	default "20"
106	---help---
107	  Refresh rate of the LCD.
108
109	  As the LCD is not memory mapped, the driver has to make the work by
110	  software. This means you should be careful setting this value higher.
111	  If your CPUs are really slow or you feel the system is slowed down,
112	  decrease the value.
113
114	  Be careful modifying this value to a very high value:
115	  You can freeze the computer, or the LCD maybe can't draw as fast as you
116	  are requesting.
117
118	  If you don't know what I'm talking about, ignore it.
119
120	  If you compile this as a module, you can still override this
121	  value using the module parameters.
122
123endif # AUXDISPLAY
124