forked from len0rd/rockbox
Remove a bunch of superfluous stuff from the Nano2G bootloader and fix __dbg_hw_info for Nano2G yet again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
db569e6bbc
commit
52b4a1ef38
2 changed files with 14 additions and 29 deletions
|
|
@ -1422,24 +1422,25 @@ target/arm/s5l8700/udacodec-meizu.c
|
||||||
|
|
||||||
#ifdef IPOD_NANO2G
|
#ifdef IPOD_NANO2G
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
drivers/audio/wm8975.c
|
|
||||||
target/arm/usb-s3c6400x.c
|
|
||||||
target/arm/ipod/button-clickwheel.c
|
target/arm/ipod/button-clickwheel.c
|
||||||
target/arm/s5l8700/kernel-s5l8700.c
|
target/arm/s5l8700/kernel-s5l8700.c
|
||||||
target/arm/s5l8700/wmcodec-s5l8700.c
|
|
||||||
target/arm/s5l8700/pcm-s5l8700.c
|
|
||||||
target/arm/s5l8700/adc-s5l8700.c
|
|
||||||
target/arm/s5l8700/debug-s5l8700.c
|
|
||||||
target/arm/s5l8700/dma-s5l8700.c
|
target/arm/s5l8700/dma-s5l8700.c
|
||||||
target/arm/s5l8700/ipodnano2g/backlight-nano2g.c
|
target/arm/s5l8700/ipodnano2g/backlight-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
|
target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c
|
target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/power-nano2g.c
|
target/arm/s5l8700/ipodnano2g/power-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/audio-nano2g.c
|
|
||||||
target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
|
target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/nand-nano2g.c
|
target/arm/s5l8700/ipodnano2g/nand-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/pmu-nano2g.c
|
target/arm/s5l8700/ipodnano2g/pmu-nano2g.c
|
||||||
target/arm/s5l8700/ipodnano2g/rtc-nano2g.c
|
target/arm/s5l8700/ipodnano2g/rtc-nano2g.c
|
||||||
|
#ifndef BOOTLOADER
|
||||||
|
drivers/audio/wm8975.c
|
||||||
|
target/arm/usb-s3c6400x.c
|
||||||
|
target/arm/s5l8700/wmcodec-s5l8700.c
|
||||||
|
target/arm/s5l8700/pcm-s5l8700.c
|
||||||
|
target/arm/s5l8700/ipodnano2g/audio-nano2g.c
|
||||||
|
target/arm/s5l8700/debug-s5l8700.c
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@
|
||||||
#include "font.h"
|
#include "font.h"
|
||||||
#include "sprintf.h"
|
#include "sprintf.h"
|
||||||
#include "storage.h"
|
#include "storage.h"
|
||||||
#ifndef BOOTLOADER
|
|
||||||
#include "action.h"
|
|
||||||
#endif
|
|
||||||
#ifdef IPOD_NANO2G
|
#ifdef IPOD_NANO2G
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "pmu-target.h"
|
#include "pmu-target.h"
|
||||||
|
|
@ -40,23 +37,18 @@
|
||||||
/* Skeleton for adding target specific debug info to the debug menu
|
/* Skeleton for adding target specific debug info to the debug menu
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _DEBUG_PRINTF(a,varargs...) do { \
|
#define _DEBUG_PRINTF(a, varargs...) lcd_putsf(0, line++, (a), ##varargs);
|
||||||
snprintf(buf, sizeof(buf), (a), ##varargs); lcd_puts(0,line++,buf); \
|
|
||||||
} while(0)
|
|
||||||
|
|
||||||
extern int lcd_type;
|
extern int lcd_type;
|
||||||
extern uint32_t nand_type[4];
|
extern uint32_t nand_type[4];
|
||||||
|
|
||||||
bool __dbg_hw_info(void)
|
bool __dbg_hw_info(void)
|
||||||
{
|
{
|
||||||
char buf[50];
|
|
||||||
int line;
|
int line;
|
||||||
int i;
|
int i;
|
||||||
#ifdef IPOD_NANO2G
|
#ifdef IPOD_NANO2G
|
||||||
#ifndef BOOTLOADER
|
|
||||||
unsigned int state = 0;
|
unsigned int state = 0;
|
||||||
const unsigned int max_states=2;
|
const unsigned int max_states=2;
|
||||||
#endif
|
|
||||||
int nand_bank_count;
|
int nand_bank_count;
|
||||||
struct storage_info info;
|
struct storage_info info;
|
||||||
const struct nand_device_info_type *nand_devicetype[4];
|
const struct nand_device_info_type *nand_devicetype[4];
|
||||||
|
|
@ -72,9 +64,7 @@ bool __dbg_hw_info(void)
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
|
||||||
state=0;
|
state=0;
|
||||||
#endif
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
|
|
@ -83,10 +73,8 @@ bool __dbg_hw_info(void)
|
||||||
/* _DEBUG_PRINTF statements can be added here to show debug info */
|
/* _DEBUG_PRINTF statements can be added here to show debug info */
|
||||||
#ifdef IPOD_NANO2G
|
#ifdef IPOD_NANO2G
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
|
||||||
if(state == 0)
|
if(state == 0)
|
||||||
{
|
{
|
||||||
#endif
|
|
||||||
_DEBUG_PRINTF("CPU:");
|
_DEBUG_PRINTF("CPU:");
|
||||||
_DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick);
|
_DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick);
|
||||||
line++;
|
line++;
|
||||||
|
|
@ -109,7 +97,6 @@ bool __dbg_hw_info(void)
|
||||||
_DEBUG_PRINTF("sectors: %d", info.num_sectors);
|
_DEBUG_PRINTF("sectors: %d", info.num_sectors);
|
||||||
_DEBUG_PRINTF("sector size: %d", info.sector_size);
|
_DEBUG_PRINTF("sector size: %d", info.sector_size);
|
||||||
_DEBUG_PRINTF("last disk activity: %d", (unsigned int)nand_last_disk_activity());
|
_DEBUG_PRINTF("last disk activity: %d", (unsigned int)nand_last_disk_activity());
|
||||||
#ifndef BOOTLOADER
|
|
||||||
}
|
}
|
||||||
else if(state==1)
|
else if(state==1)
|
||||||
{
|
{
|
||||||
|
|
@ -144,32 +131,30 @@ bool __dbg_hw_info(void)
|
||||||
{
|
{
|
||||||
state=0;
|
state=0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
_DEBUG_PRINTF("__dbg_hw_info");
|
_DEBUG_PRINTF("__dbg_hw_info");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
lcd_update();
|
lcd_update();
|
||||||
#ifndef BOOTLOADER
|
switch(button_get_w_tmo(HZ/20))
|
||||||
switch(get_action(CONTEXT_STD,HZ/20))
|
|
||||||
{
|
{
|
||||||
case ACTION_STD_PREV:
|
case BUTTON_SCROLL_FWD:
|
||||||
if(state!=0) state--;
|
if(state!=0) state--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACTION_STD_NEXT:
|
case BUTTON_SCROLL_BACK:
|
||||||
if(state!=max_states-1)
|
if(state!=max_states-1)
|
||||||
{
|
{
|
||||||
state++;
|
state++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACTION_STD_CANCEL:
|
case DEBUG_CANCEL:
|
||||||
|
case BUTTON_REL:
|
||||||
lcd_setfont(FONT_UI);
|
lcd_setfont(FONT_UI);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_setfont(FONT_UI);
|
lcd_setfont(FONT_UI);
|
||||||
|
|
@ -178,7 +163,6 @@ bool __dbg_hw_info(void)
|
||||||
|
|
||||||
bool __dbg_ports(void)
|
bool __dbg_ports(void)
|
||||||
{
|
{
|
||||||
char buf[32];
|
|
||||||
int line;
|
int line;
|
||||||
|
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue