diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-mrobe500.h | 25 | ||||
-rw-r--r-- | firmware/export/dm320.h | 17 |
2 files changed, 23 insertions, 19 deletions
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h index d5d31ffc41..25699bd005 100644 --- a/firmware/export/config-mrobe500.h +++ b/firmware/export/config-mrobe500.h | |||
@@ -41,6 +41,9 @@ | |||
41 | /* define this if you have a colour LCD */ | 41 | /* define this if you have a colour LCD */ |
42 | #define HAVE_LCD_COLOR | 42 | #define HAVE_LCD_COLOR |
43 | 43 | ||
44 | /* define this if you want album art for this target */ | ||
45 | //#define HAVE_ALBUMART | ||
46 | |||
44 | /* define this if you have access to the quickscreen */ | 47 | /* define this if you have access to the quickscreen */ |
45 | #define HAVE_QUICKSCREEN | 48 | #define HAVE_QUICKSCREEN |
46 | 49 | ||
@@ -58,14 +61,22 @@ | |||
58 | 61 | ||
59 | /* choose the lcd orientation. both work */ | 62 | /* choose the lcd orientation. both work */ |
60 | /* #define CONFIG_ORIENTATION SCREEN_PORTRAIT */ | 63 | /* #define CONFIG_ORIENTATION SCREEN_PORTRAIT */ |
61 | #define CONFIG_ORIENTATION SCREEN_LANDSCAPE | 64 | #define CONFIG_ORIENTATION SCREEN_PORTRAIT |
65 | |||
66 | #if 1 | ||
67 | #define NATIVE_MAX_WIDTH 480 | ||
68 | #define NATIVE_MAX_HEIGHT 640 | ||
69 | #else | ||
70 | #define NATIVE_MAX_WIDTH 240 | ||
71 | #define NATIVE_MAX_HEIGHT 320 | ||
72 | #endif | ||
62 | 73 | ||
63 | #if CONFIG_ORIENTATION == SCREEN_PORTRAIT | 74 | #if CONFIG_ORIENTATION == SCREEN_PORTRAIT |
64 | #define LCD_WIDTH 480 | 75 | #define LCD_WIDTH NATIVE_MAX_WIDTH |
65 | #define LCD_HEIGHT 640 | 76 | #define LCD_HEIGHT NATIVE_MAX_HEIGHT |
66 | #else | 77 | #else |
67 | #define LCD_WIDTH 640 | 78 | #define LCD_WIDTH NATIVE_MAX_HEIGHT |
68 | #define LCD_HEIGHT 480 | 79 | #define LCD_HEIGHT NATIVE_MAX_WIDTH |
69 | #endif | 80 | #endif |
70 | 81 | ||
71 | #define LCD_DEPTH 16 /* 65k colours */ | 82 | #define LCD_DEPTH 16 /* 65k colours */ |
@@ -80,10 +91,6 @@ | |||
80 | should be defined as well. */ | 91 | should be defined as well. */ |
81 | #define HAVE_LCD_SLEEP | 92 | #define HAVE_LCD_SLEEP |
82 | 93 | ||
83 | /* We don't use a setting but a fixed delay after the backlight has | ||
84 | * turned off */ | ||
85 | #define LCD_SLEEP_TIMEOUT (5*HZ) | ||
86 | |||
87 | /* remote LCD */ | 94 | /* remote LCD */ |
88 | //#define HAVE_REMOTE_LCD | 95 | //#define HAVE_REMOTE_LCD |
89 | #define LCD_REMOTE_WIDTH 79 | 96 | #define LCD_REMOTE_WIDTH 79 |
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index 3d932c69c1..d6599a6745 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h | |||
@@ -27,17 +27,14 @@ | |||
27 | #ifndef __DM320_H__ | 27 | #ifndef __DM320_H__ |
28 | #define __DM320_H__ | 28 | #define __DM320_H__ |
29 | 29 | ||
30 | #define LCD_BUFFER_SIZE (LCD_WIDTH*LCD_HEIGHT*2) | 30 | #if !defined(__ASSEMBLER__) && !defined(__LD__) |
31 | #define TTB_SIZE (0x4000) | 31 | /* These variables are created during linking (app/boot.lds) */ |
32 | /* must be 16Kb (0x4000) aligned */ | 32 | extern unsigned long _lcdbuf; |
33 | #if 1 | 33 | extern unsigned long _ttbstart; |
34 | #define MEM_END 0x00900000 + (MEM*0x00100000) | ||
35 | #define TTB_BASE_ADDR (MEM_END - TTB_SIZE) | ||
36 | #else | ||
37 | #define TTB_BASE_ADDR (0x04900000 - TTB_SIZE) | ||
38 | #endif | 34 | #endif |
39 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */ | 35 | |
40 | #define FRAME ((short *) (TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */ | 36 | #define TTB_BASE_ADDR (_ttbstart) /* End of memory */ |
37 | #define FRAME ((short *) (&_lcdbuf)) /* Right before TTB */ | ||
41 | 38 | ||
42 | #define PHY_IO_BASE 0x00030000 | 39 | #define PHY_IO_BASE 0x00030000 |
43 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) | 40 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) |