diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-09-08 13:57:13 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-09-08 13:57:13 +0000 |
commit | e2ccabf89df325ddf0407bfea2fee3c00334264b (patch) | |
tree | 2b003f4c00258b95e04ab2a8cf373a60467e7ab7 /firmware/target | |
parent | b54b0665167f87850712640d5253e892fe1aa537 (diff) |
Samsung YH925: Reset the LCD orientation to what the OF expects before branching to it in dualbooting
Author: Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22659 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/samsung/yh925/lcd-yh925.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/arm/samsung/yh925/lcd-yh925.c b/firmware/target/arm/samsung/yh925/lcd-yh925.c index edeef49d40..7509deff36 100644 --- a/firmware/target/arm/samsung/yh925/lcd-yh925.c +++ b/firmware/target/arm/samsung/yh925/lcd-yh925.c @@ -190,6 +190,18 @@ void lcd_set_flip(bool flip) lcd_write_reg(R_ENTRY_MODE, 0x1028); } +/* Reset the LCD prior to booting the OF */ +#ifdef BOOTLOADER +void lcd_reset(void) +{ + lcd_write_reg(R_DRV_OUTPUT_CONTROL, 0x0315); + lcd_write_reg(R_ENTRY_MODE, 0x1028); + lcd_write_reg(R_HORIZ_RAM_ADDR_POS, 0x7f00); + lcd_write_reg(R_VERT_RAM_ADDR_POS, 0xaf10); + lcd_write_reg(R_RAM_ADDR_SET, 0x0000); +} +#endif + /* LCD init */ void lcd_init_device(void) { |