Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 1 | ================= |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | What is sa1100fb? |
| 3 | ================= |
| 4 | |
Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 5 | .. [This file is cloned from VesaFB/matroxfb] |
| 6 | |
| 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | This is a driver for a graphic framebuffer for the SA-1100 LCD |
| 9 | controller. |
| 10 | |
| 11 | Configuration |
| 12 | ============== |
| 13 | |
Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 14 | For most common passive displays, giving the option:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 16 | video=sa1100fb:bpp:<value>,lccr0:<value>,lccr1:<value>,lccr2:<value>,lccr3:<value> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
| 18 | on the kernel command line should be enough to configure the |
| 19 | controller. The bits per pixel (bpp) value should be 4, 8, 12, or |
| 20 | 16. LCCR values are display-specific and should be computed as |
| 21 | documented in the SA-1100 Developer's Manual, Section 11.7. Dual-panel |
| 22 | displays are supported as long as the SDS bit is set in LCCR0; GPIO<9:2> |
| 23 | are used for the lower panel. |
| 24 | |
| 25 | For active displays or displays requiring additional configuration |
| 26 | (controlling backlights, powering on the LCD, etc.), the command line |
| 27 | options may not be enough to configure the display. Adding sections to |
| 28 | sa1100fb_init_fbinfo(), sa1100fb_activate_var(), |
| 29 | sa1100fb_disable_lcd_controller(), and sa1100fb_enable_lcd_controller() |
| 30 | will probably be necessary. |
| 31 | |
Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 32 | Accepted options:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Mauro Carvalho Chehab | ab42b81 | 2019-06-12 14:52:45 -0300 | [diff] [blame] | 34 | bpp:<value> Configure for <value> bits per pixel |
| 35 | lccr0:<value> Configure LCD control register 0 (11.7.3) |
| 36 | lccr1:<value> Configure LCD control register 1 (11.7.4) |
| 37 | lccr2:<value> Configure LCD control register 2 (11.7.5) |
| 38 | lccr3:<value> Configure LCD control register 3 (11.7.6) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | Mark Huang <mhuang@livetoy.com> |