mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
b54b066516
commit
e2ccabf89d
2 changed files with 24 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue