Clip+ LCD: support devices with a different controller

The new controller framebuffer (different from what is in clipv1/clipv2 and some clip+) has 128 columns, the old has 132 columns and is centered on the screen.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27257 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-03 18:50:07 +00:00
parent 12b89c11e3
commit 9a471e603e
7 changed files with 25 additions and 19 deletions

View file

@ -26,7 +26,7 @@
#include "system.h"
#include "cpu.h"
void lcd_hw_init(void)
void lcd_hw_init(int *offset)
{
/* DBOP initialisation, do what OF does */
CGU_DBOP = (1<<3) | AS3525_DBOP_DIV;
@ -45,6 +45,8 @@ void lcd_hw_init(void)
GPIOA_PIN(0) = (1<<0);
GPIOA_PIN(4) = 0;
GPIOB_PIN(6) = (1<<6);
*offset = 2;
}
#define LCD_DELAY 1