diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-h10.h | 2 | ||||
-rw-r--r-- | firmware/export/pp5002.h | 10 | ||||
-rw-r--r-- | firmware/export/pp5020.h | 25 |
3 files changed, 28 insertions, 9 deletions
diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index 93ec226c50..8054152c77 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h | |||
@@ -39,7 +39,7 @@ | |||
39 | #define LCD_WIDTH 160 | 39 | #define LCD_WIDTH 160 |
40 | #define LCD_HEIGHT 128 | 40 | #define LCD_HEIGHT 128 |
41 | #define LCD_DEPTH 16 /* 65536 colours */ | 41 | #define LCD_DEPTH 16 /* 65536 colours */ |
42 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 42 | #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */ |
43 | 43 | ||
44 | /* Define this if your LCD can be enabled/disabled */ | 44 | /* Define this if your LCD can be enabled/disabled */ |
45 | #define HAVE_LCD_ENABLE | 45 | #define HAVE_LCD_ENABLE |
diff --git a/firmware/export/pp5002.h b/firmware/export/pp5002.h index c4baa7cfd3..b2e02f6174 100644 --- a/firmware/export/pp5002.h +++ b/firmware/export/pp5002.h | |||
@@ -23,11 +23,13 @@ | |||
23 | #define DRAM_START 0x28000000 | 23 | #define DRAM_START 0x28000000 |
24 | 24 | ||
25 | /* LCD bridge */ | 25 | /* LCD bridge */ |
26 | #define LCD1_BASE (*(volatile unsigned long *)(0xc0001000)) | 26 | #define LCD1_BASE 0xc0001000 |
27 | #define LCD1_CMD (*(volatile unsigned long *)(0xc0001008)) | ||
28 | #define LCD1_DATA (*(volatile unsigned long *)(0xc0001010)) | ||
29 | 27 | ||
30 | #define LCD1_BUSY_MASK 0x8000 | 28 | #define LCD1_CONTROL (*(volatile unsigned long *)(0xc0001000)) |
29 | #define LCD1_CMD (*(volatile unsigned long *)(0xc0001008)) | ||
30 | #define LCD1_DATA (*(volatile unsigned long *)(0xc0001010)) | ||
31 | |||
32 | #define LCD1_BUSY_MASK 0x8000 | ||
31 | 33 | ||
32 | /* I2S controller */ | 34 | /* I2S controller */ |
33 | #define IISCONFIG (*(volatile unsigned long *)(0xc0002500)) | 35 | #define IISCONFIG (*(volatile unsigned long *)(0xc0002500)) |
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h index 2c939300ab..5654a7de63 100644 --- a/firmware/export/pp5020.h +++ b/firmware/export/pp5020.h | |||
@@ -407,16 +407,33 @@ | |||
407 | /* Note: didn't bother to see of levels 0 and 16 actually work */ | 407 | /* Note: didn't bother to see of levels 0 and 16 actually work */ |
408 | 408 | ||
409 | /* First ("mono") LCD bridge */ | 409 | /* First ("mono") LCD bridge */ |
410 | #define LCD1_BASE (*(volatile unsigned long *)(0x70003000)) | 410 | #define LCD1_BASE 0x70003000 |
411 | #define LCD1_CMD (*(volatile unsigned long *)(0x70003008)) | ||
412 | #define LCD1_DATA (*(volatile unsigned long *)(0x70003010)) | ||
413 | 411 | ||
414 | #define LCD1_BUSY_MASK 0x8000 | 412 | #define LCD1_CONTROL (*(volatile unsigned long *)(0x70003000)) |
413 | #define LCD1_CMD (*(volatile unsigned long *)(0x70003008)) | ||
414 | #define LCD1_DATA (*(volatile unsigned long *)(0x70003010)) | ||
415 | |||
416 | #define LCD1_BUSY_MASK 0x8000 | ||
415 | 417 | ||
416 | /* Serial Controller */ | 418 | /* Serial Controller */ |
417 | #define SERIAL0 (*(volatile unsigned long*)(0x70006000)) | 419 | #define SERIAL0 (*(volatile unsigned long*)(0x70006000)) |
418 | #define SERIAL1 (*(volatile unsigned long*)(0x70006040)) | 420 | #define SERIAL1 (*(volatile unsigned long*)(0x70006040)) |
419 | 421 | ||
422 | /* Second ("color") LCD bridge */ | ||
423 | #define LCD2_BASE 0x70008a00 | ||
424 | |||
425 | #define LCD2_PORT (*(volatile unsigned long*)(0x70008a0c)) | ||
426 | #define LCD2_BLOCK_CTRL (*(volatile unsigned long*)(0x70008a20)) | ||
427 | #define LCD2_BLOCK_CONFIG (*(volatile unsigned long*)(0x70008a24)) | ||
428 | #define LCD2_BLOCK_DATA (*(volatile unsigned long*)(0x70008b00)) | ||
429 | |||
430 | #define LCD2_BUSY_MASK 0x80000000 | ||
431 | #define LCD2_CMD_MASK 0x80000000 | ||
432 | #define LCD2_DATA_MASK 0x81000000 | ||
433 | |||
434 | #define LCD2_BLOCK_READY 0x04000000 | ||
435 | #define LCD2_BLOCK_TXOK 0x01000000 | ||
436 | |||
420 | /* I2C */ | 437 | /* I2C */ |
421 | #define I2C_BASE 0x7000c000 | 438 | #define I2C_BASE 0x7000c000 |
422 | 439 | ||