diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
commit | a4e7bc383ed296b532a648a02db62a06c99c9ad8 (patch) | |
tree | 97ab9a2d4441aebeae7a76ef1c448f10883daadf /firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c | |
parent | 95577c7996e7a79a71a12e27433cbd5126c0ccd8 (diff) | |
download | rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.tar.gz rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.zip |
Onda VX747:
* Implement lcd_flip()
* Add support for multiple banks in NAND driver
* Add basic I²C driver (untested)
* Get audio back working
* Add power driver
* Other minor fixes and cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19863 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c index faed5ecda2..c07a191bbe 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c | |||
@@ -240,6 +240,34 @@ void lcd_set_target(short x, short y, short width, short height) | |||
240 | SLCD_SET_COMMAND(REG_RW_GRAM); /* write data to GRAM */ | 240 | SLCD_SET_COMMAND(REG_RW_GRAM); /* write data to GRAM */ |
241 | } | 241 | } |
242 | 242 | ||
243 | void lcd_set_flip(bool yesno) | ||
244 | { | ||
245 | int i; | ||
246 | |||
247 | __cpm_start_lcd(); | ||
248 | #if CONFIG_ORIENTATION == SCREEN_PORTRAIT | ||
249 | if(yesno) | ||
250 | { | ||
251 | SLCD_SEND_COMMAND(REG_ENTRY_MODE, (ENTRY_MODE_BGR | ENTRY_MODE_HWM)); | ||
252 | } | ||
253 | else | ||
254 | { | ||
255 | SLCD_SEND_COMMAND(REG_ENTRY_MODE, (ENTRY_MODE_BGR | ENTRY_MODE_VID | ENTRY_MODE_HID | ENTRY_MODE_HWM)); | ||
256 | } | ||
257 | #else | ||
258 | if(yesno) | ||
259 | { | ||
260 | SLCD_SEND_COMMAND(REG_ENTRY_MODE, (ENTRY_MODE_BGR | ENTRY_MODE_HID | ENTRY_MODE_AM)); | ||
261 | } | ||
262 | else | ||
263 | { | ||
264 | SLCD_SEND_COMMAND(REG_ENTRY_MODE, (ENTRY_MODE_BGR | ENTRY_MODE_VID | ENTRY_MODE_AM)); | ||
265 | } | ||
266 | #endif | ||
267 | DELAY; | ||
268 | __cpm_stop_lcd(); | ||
269 | } | ||
270 | |||
243 | void lcd_on(void) | 271 | void lcd_on(void) |
244 | { | 272 | { |
245 | _display_on(); | 273 | _display_on(); |