170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# 270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# For a description of the syntax of this configuration file, 370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# see Documentation/kbuild/kconfig-language.txt. 470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# 570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# Auxiliary display drivers configuration. 670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis# 770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 8f5920969fb9e29c9d60568864d0a56fe85e8f4b6Jan Engelhardtmenuconfig AUXDISPLAY 9f5920969fb9e29c9d60568864d0a56fe85e8f4b6Jan Engelhardt bool "Auxiliary Display support" 1006bfb7eb1535822a3338ffea9918e22215abed90Jan Engelhardt ---help--- 1106bfb7eb1535822a3338ffea9918e22215abed90Jan Engelhardt Say Y here to get to see options for auxiliary display drivers. 1206bfb7eb1535822a3338ffea9918e22215abed90Jan Engelhardt This option alone does not add any kernel code. 1306bfb7eb1535822a3338ffea9918e22215abed90Jan Engelhardt 1406bfb7eb1535822a3338ffea9918e22215abed90Jan Engelhardt If you say N, all options in this submenu will be skipped and disabled. 15f5920969fb9e29c9d60568864d0a56fe85e8f4b6Jan Engelhardt 16c0aa24ba8962bd1db98938fb2f3773f870896036H Hartley Sweetenif AUXDISPLAY 1770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 1870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonisconfig KS0108 1970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis tristate "KS0108 LCD Controller" 2070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on PARPORT_PC 2170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis default n 2270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis ---help--- 2370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you have a LCD controlled by one or more KS0108 2470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis controllers, say Y. You will need also another more specific 2570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis driver for your LCD. 2670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 2770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Depends on Parallel Port support. If you say Y at 2870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis parport, you will be able to compile this as a module (M) 2970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis and built-in as well (Y). 3070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 3170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis To compile this as a module, choose M here: 3270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis the module will be called ks0108. 3370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 3470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If unsure, say N. 3570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 3670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonisconfig KS0108_PORT 3770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis hex "Parallel port where the LCD is connected" 3870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on KS0108 3970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis default 0x378 4070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis ---help--- 4170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis The address of the parallel port where the LCD is connected. 4270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 4370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis The first standard parallel port address is 0x378. 4470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis The second standard parallel port address is 0x278. 4570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis The third standard parallel port address is 0x3BC. 4670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 4770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis You can specify a different address if you need. 4870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 4970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you don't know what I'm talking about, load the parport module, 5070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis and execute "dmesg" or "cat /proc/ioports". You can see there how 5170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis many parallel ports are present and which address each one has. 5270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 5370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Usually you only need to use 0x378. 5470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 5570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you compile this as a module, you can still override this 5670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis using the module parameters. 5770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 5870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonisconfig KS0108_DELAY 5970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis int "Delay between each control writing (microseconds)" 6070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on KS0108 6170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis default "2" 6270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis ---help--- 6370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Amount of time the ks0108 should wait between each control write 6470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis to the parallel port. 6570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 66450c622e9ff19888818d4e2c4d31adb97a5242b2Miguel Ojeda If your LCD seems to miss random writings, increment this. 6770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 6870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you don't know what I'm talking about, ignore it. 6970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 7070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you compile this as a module, you can still override this 7170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis value using the module parameters. 7270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 7370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonisconfig CFAG12864B 7470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis tristate "CFAG12864B LCD" 7570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on X86 7670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on FB 7770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on KS0108 78bfeeffbb4fb73a32c00d52742850f88e563726a5Avuton Olrich select FB_SYS_FILLRECT 79bfeeffbb4fb73a32c00d52742850f88e563726a5Avuton Olrich select FB_SYS_COPYAREA 80bfeeffbb4fb73a32c00d52742850f88e563726a5Avuton Olrich select FB_SYS_IMAGEBLIT 81bfeeffbb4fb73a32c00d52742850f88e563726a5Avuton Olrich select FB_SYS_FOPS 8270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis default n 8370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis ---help--- 8470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series, 8570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis say Y. You also need the ks0108 LCD Controller driver. 8670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 8770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis For help about how to wire your LCD to the parallel port, 8870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis check Documentation/auxdisplay/cfag12864b 8970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 9070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Depends on the x86 arch and the framebuffer support. 9170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 9270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis The LCD framebuffer driver can be attached to a console. 9370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis It will work fine. However, you can't attach it to the fbdev driver 9470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis of the xorg server. 9570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 9670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis To compile this as a module, choose M here: 9770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis the modules will be called cfag12864b and cfag12864bfb. 9870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 9970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If unsure, say N. 10070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 10170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonisconfig CFAG12864B_RATE 10270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis int "Refresh rate (hertz)" 10370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis depends on CFAG12864B 10470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis default "20" 10570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis ---help--- 10670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Refresh rate of the LCD. 10770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 10870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis As the LCD is not memory mapped, the driver has to make the work by 10970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis software. This means you should be careful setting this value higher. 11070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If your CPUs are really slow or you feel the system is slowed down, 11170e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis decrease the value. 11270e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 11370e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis Be careful modifying this value to a very high value: 11470e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis You can freeze the computer, or the LCD maybe can't draw as fast as you 11570e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis are requesting. 11670e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 11770e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you don't know what I'm talking about, ignore it. 11870e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis 11970e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis If you compile this as a module, you can still override this 12070e840499aae90be1de542894062ad2899d23642Miguel Ojeda Sandonis value using the module parameters. 121f5920969fb9e29c9d60568864d0a56fe85e8f4b6Jan Engelhardt 122f5920969fb9e29c9d60568864d0a56fe85e8f4b6Jan Engelhardtendif # AUXDISPLAY 123