forked from len0rd/rockbox
Remove the hack which read the ipod hardware revision from flash in the bootloader and passed it to Rockbox via a fixed address in SDRAM. Rockbox now remaps flash and so can just read the value itself. Also clean up the debug menu a little - only display the hw revision for ipods, and add the lcd_type variable to indicate the type of LCD (0 or 1) for ipod Color/Photo.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13986 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ed095235d4
commit
ebc076bc15
7 changed files with 27 additions and 27 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "power.h"
|
||||
#include "file.h"
|
||||
#include "common.h"
|
||||
#include "hwcompat.h"
|
||||
|
||||
#define XSC(X) #X
|
||||
#define SC(X) XSC(X)
|
||||
|
|
@ -55,12 +56,6 @@ unsigned char *loadbuffer = (unsigned char *)DRAM_START;
|
|||
/* Bootloader version */
|
||||
char version[] = APPSVERSION;
|
||||
|
||||
#define IPOD_HW_REVISION (*((volatile unsigned long*)(0x00002084)))
|
||||
|
||||
/* We copy the hardware revision to the last four bytes of SDRAM and then
|
||||
re-read it after we have re-mapped SDRAM to 0x0 in Rockbox */
|
||||
#define TMP_IPOD_HW_REVISION (*((volatile unsigned long*)(0x11fffffc)))
|
||||
|
||||
#define BUTTON_LEFT 1
|
||||
#define BUTTON_MENU 2
|
||||
#define BUTTON_RIGHT 3
|
||||
|
|
@ -240,9 +235,6 @@ void* main(void)
|
|||
|
||||
__backlight_on();
|
||||
|
||||
TMP_IPOD_HW_REVISION = IPOD_HW_REVISION;
|
||||
ipod_hw_rev = IPOD_HW_REVISION;
|
||||
|
||||
system_init();
|
||||
kernel_init();
|
||||
lcd_init();
|
||||
|
|
@ -300,7 +292,6 @@ void* main(void)
|
|||
printf("Partition 1: 0x%02x %ld MB",
|
||||
pinfo->type, pinfo->size / 2048);
|
||||
|
||||
|
||||
if (button_was_held || (btn==BUTTON_MENU)) {
|
||||
/* If either the hold switch was on, or the Menu button was held, then
|
||||
try the Apple firmware */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue