mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 14:42:31 -05:00
Setup LCD ourselves; move LCD buffer and TTB to free up 1.7MB of memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11994 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
35b0c3f24f
commit
355be5010a
12 changed files with 138 additions and 103 deletions
|
|
@ -86,7 +86,7 @@
|
|||
#define BATTERY_TYPES_COUNT 1 /* only one type */
|
||||
|
||||
/* ADC[0] is (530) at discharge and 625 at full charge */
|
||||
#define BATTERY_SCALE_FACTOR 6450
|
||||
#define BATTERY_SCALE_FACTOR 6450
|
||||
|
||||
/* Hardware controlled charging with monitoring */
|
||||
#define CONFIG_CHARGING CHARGING_MONITOR
|
||||
|
|
@ -132,5 +132,5 @@
|
|||
#define BOOTFILE_EXT "gigabeat"
|
||||
#define BOOTFILE "rockbox." BOOTFILE_EXT
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -347,8 +347,10 @@ extern void lcd_set_drawinfo(int mode, unsigned foreground,
|
|||
void lcd_set_backdrop(fb_data* backdrop);
|
||||
#if defined(TOSHIBA_GIGABEAT_F) && !defined(SIMULATOR)
|
||||
void lcd_device_prepare_backdrop(fb_data* backdrop);
|
||||
bool lcd_enabled(void);
|
||||
#else
|
||||
#define lcd_device_prepare_backdrop(x) ;
|
||||
#define lcd_enabled() true
|
||||
#endif
|
||||
|
||||
fb_data* lcd_get_backdrop(void);
|
||||
|
|
|
|||
|
|
@ -143,9 +143,12 @@
|
|||
#define LCDINTMSK (*(volatile int *)0x4D00005C) /* LCD interrupt mask */
|
||||
#define TCONSEL (*(volatile int *)0x4D000060) /* TCON(LPC3600/LCC3600) control */
|
||||
|
||||
/* The following should be computed but for now, we cheat. */
|
||||
#define FRAME ( (short *) 0x31E00000 ) /* LCD Frame buffer */
|
||||
|
||||
#define LCD_BUFFER_SIZE ((320*240*2))
|
||||
#define TTB_SIZE (0x4000)
|
||||
/*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */
|
||||
/* must be 16Kb (0x4000) aligned */
|
||||
#define TTB_BASE (0x30000000 + (32*1024*1024) - TTB_SIZE) /* End of memory */
|
||||
#define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
|
||||
/* NAND Flash */
|
||||
|
||||
#define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue