iAudio X5: various fixes to make the bootloader compile

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8560 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2006-02-04 00:01:15 +00:00
parent 44a5c827b7
commit 760fea9ac7
9 changed files with 31 additions and 7 deletions

View file

@ -26,6 +26,12 @@ INPUT(crt0.o)
#define IRAMSIZE 0x18000 #define IRAMSIZE 0x18000
#define FLASHORIG 0x003f0000 #define FLASHORIG 0x003f0000
#define FLASHSIZE 4M #define FLASHSIZE 4M
#elif defined(IAUDIO_X5)
#define DRAMORIG 0x31000000
#define IRAMORIG 0x10000000
#define IRAMSIZE 0x20000
#define FLASHORIG 0x00100000
#define FLASHSIZE 4M
#elif CONFIG_CPU == PP5020 #elif CONFIG_CPU == PP5020
#define DRAMORIG 0x10000000 #define DRAMORIG 0x10000000
#define IRAMORIG 0x40000000 #define IRAMORIG 0x40000000

View file

@ -452,7 +452,7 @@ irq_handler:
pop r1, r0 pop r1, r0
ret_irq ret_irq
#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) #elif defined(CPU_COLDFIRE)
move.w #0x2700,%sr move.w #0x2700,%sr
move.l #vectors,%d0 move.l #vectors,%d0

View file

@ -27,7 +27,7 @@
#include "lcd.h" #include "lcd.h"
#include "serial.h" #include "serial.h"
#if (CONFIG_CPU != MCF5249) && (CONFIG_CPU != TCC730) && (CONFIG_CPU != PP5020) && (CONFIG_CPU != PNX0101) #if (CONFIG_CPU != MCF5249) && (CONFIG_CPU != TCC730) && (CONFIG_CPU != PP5020) && (CONFIG_CPU != PNX0101) && (CONFIG_CPU != MCF5250)
/* FIX: this doesn't work on iRiver or Gmini or iPod yet */ /* FIX: this doesn't work on iRiver or Gmini or iPod yet */
/* iFP7xx has no remote */ /* iFP7xx has no remote */

View file

@ -182,6 +182,9 @@ bool button_hold(void);
#define BUTTON_UP 0x0008 #define BUTTON_UP 0x0008
#define BUTTON_DOWN 0x0010 #define BUTTON_DOWN 0x0010
#define BUTTON_MENU 0x0020 #define BUTTON_MENU 0x0020
#define BUTTON_OFF 0x0040 /* DOES NOT EXIST!!! */
#define BUTTON_RC_REC (BUTTON_REMOTE | 0x00400000)
#endif /* RECORDER/PLAYER/ONDIO/GMINI KEYPAD */ #endif /* RECORDER/PLAYER/ONDIO/GMINI KEYPAD */

View file

@ -2,6 +2,9 @@
* This config file is for iAudio X5 * This config file is for iAudio X5
*/ */
/* For Rolo and boot loader */
#define MODEL_NUMBER 1
/* define this if you have recording possibility */ /* define this if you have recording possibility */
/*#define HAVE_RECORDING 1*/ /*#define HAVE_RECORDING 1*/
@ -59,12 +62,17 @@
/* define this if the hardware can be powered off while charging */ /* define this if the hardware can be powered off while charging */
#define HAVE_POWEROFF_WHILE_CHARGING #define HAVE_POWEROFF_WHILE_CHARGING
/* The start address index for ROM builds */ /* The size of the flash ROM */
#define ROM_START 0x11010 #define FLASH_SIZE 0x400000
/* Define this to the CPU frequency */ /* Define this to the CPU frequency */
#define CPU_FREQ 11289600 #define CPU_FREQ 11289600
/* Type of mobile power */
#define CONFIG_BATTERY BATT_LIPOL1300
#define BATTERY_SCALE_FACTOR 23437 /* FIX: this value is picked at random */
/* Define this if you have ATA power-off control */ /* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF #define HAVE_ATA_POWER_OFF
@ -74,6 +82,8 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_X5STYLE
/* Define this if you have adjustable CPU frequency */ /* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ #define HAVE_ADJUSTABLE_CPU_FREQ

View file

@ -530,6 +530,9 @@ void pcm_calculate_peaks(int *left, int *right)
#elif defined(HAVE_WM8975) #elif defined(HAVE_WM8975)
long samples = size / 4; long samples = size / 4;
short *addr = p; short *addr = p;
#elif defined(HAVE_TLV320)
long samples = 4; /* TODO X5 */
short *addr = NULL;
#endif #endif
if (samples > PEAK_SAMPLES) if (samples > PEAK_SAMPLES)

View file

@ -43,7 +43,7 @@
#endif #endif
#ifdef HAVE_UDA1380 #ifdef HAVE_UDA1380
#include "uda1380.h" #include "uda1380.h"
#elif HAVE_TLV320 #elif defined(HAVE_TLV320)
#include "tlv320.h" #include "tlv320.h"
#endif #endif
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
@ -939,7 +939,7 @@ void shutdown_hw(void)
mp3_shutdown(); mp3_shutdown();
#ifdef HAVE_UDA1380 #ifdef HAVE_UDA1380
uda1380_close(); uda1380_close();
#elif HAVE_TLV320 #elif defined(HAVE_TLV320)
tlv320_close(); tlv320_close();
#endif #endif
backlight_off(); backlight_off();

View file

@ -28,7 +28,7 @@
#include "uda1380.h" #include "uda1380.h"
#elif defined(HAVE_WM8975) #elif defined(HAVE_WM8975)
#include "wm8975.h" #include "wm8975.h"
#elif HAVE_TLV320 #elif defined(HAVE_TLV320)
#include "tlv320.h" #include "tlv320.h"
#endif #endif
#include "dac.h" #include "dac.h"

View file

@ -183,6 +183,8 @@ void usb_enable(bool on)
#elif defined(USB_ISP1582) #elif defined(USB_ISP1582)
/* TODO: Implement USB_ISP1582 */ /* TODO: Implement USB_ISP1582 */
(void) on; (void) on;
#elif defined(USB_X5STYLE)
/* TODO X5 */
#else #else
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
if(read_hw_mask() & USB_ACTIVE_HIGH) if(read_hw_mask() & USB_ACTIVE_HIGH)