1.1 --- a/stage2/lcd.c Sat Dec 05 19:40:53 2015 +0100
1.2 +++ b/stage2/lcd.c Sat Dec 05 19:42:12 2015 +0100
1.3 @@ -39,7 +39,7 @@
1.4 {
1.5 unsigned short v_max = panel_info.vl_row;
1.6 unsigned short h_max = panel_info.vl_col;
1.7 - u32 *pix = (u32 *)lcd_base + v * h_max + h;
1.8 + u32 *pix = (u32 *)lcd_base + 0xa0000000 + v * h_max + h;
1.9
1.10 /* NOTE: Code assumes 32 bits/pixel. */
1.11 #ifdef NORMAL
1.12 @@ -70,12 +70,12 @@
1.13 void clear_pixel(unsigned short h, unsigned short v)
1.14 {
1.15 unsigned short h_max = panel_info.vl_col;
1.16 - u32 *pix = (u32 *)lcd_base + v * h_max + h;
1.17 + u32 *pix = (u32 *)lcd_base + 0xa0000000 + v * h_max + h;
1.18
1.19 *pix = 0;
1.20 }
1.21
1.22 -static void test_pattern(void *lcd_base)
1.23 +void test_pattern(void *lcd_base)
1.24 {
1.25 unsigned short v_max = panel_info.vl_row;
1.26 unsigned short h_max = panel_info.vl_col;
1.27 @@ -93,7 +93,7 @@
1.28 unsigned short v_max = panel_info.vl_row;
1.29 unsigned short h_max = panel_info.vl_col;
1.30 unsigned short v, h;
1.31 - u32 *pix = (u32 *)lcd_base;
1.32 + u32 *pix = (u32 *)lcd_base + 0xa0000000;
1.33
1.34 for (v = 0; v < v_max; v += 1) {
1.35 for (h = 0; h < h_max; h += 1) {
2.1 --- a/stage2/lcd.h Sat Dec 05 19:40:53 2015 +0100
2.2 +++ b/stage2/lcd.h Sat Dec 05 19:42:12 2015 +0100
2.3 @@ -10,4 +10,6 @@
2.4 void test_pixel(unsigned short h, unsigned short v);
2.5 void clear_pixel(unsigned short h, unsigned short v);
2.6
2.7 +void test_pattern();
2.8 +
2.9 #endif /* __LCD_H__ */