forked from len0rd/rockbox
Unified the H100 and H300 startup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7792 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6da4e33aac
commit
1550bdcea6
4 changed files with 13 additions and 8 deletions
|
@ -242,7 +242,7 @@ irq_handler:
|
||||||
pop r1, r0
|
pop r1, r0
|
||||||
ret_irq
|
ret_irq
|
||||||
|
|
||||||
#elif defined(IRIVER_H100_SERIES)
|
#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
|
||||||
/* Platform: iRiver H120/H140 */
|
/* Platform: iRiver H120/H140 */
|
||||||
move.w #0x2700,%sr
|
move.w #0x2700,%sr
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ irq_handler:
|
||||||
/* Chip select 0 - Flash ROM */
|
/* Chip select 0 - Flash ROM */
|
||||||
moveq.l #0x00,%d0 /* CSAR0 - Base = 0x00000000 */
|
moveq.l #0x00,%d0 /* CSAR0 - Base = 0x00000000 */
|
||||||
move.l %d0,(0x080,%a0)
|
move.l %d0,(0x080,%a0)
|
||||||
move.l #0x001f0001,%d0 /* CSMR0 - 2M, All access */
|
move.l #FLASH_SIZE-0x10000+1,%d0 /* CSMR0 - All access */
|
||||||
move.l %d0,(0x084,%a0)
|
move.l %d0,(0x084,%a0)
|
||||||
move.l #0x00000180,%d0 /* CSCR0 - no wait states, 16 bits, no bursts */
|
move.l #0x00000180,%d0 /* CSCR0 - no wait states, 16 bits, no bursts */
|
||||||
move.l %d0,(0x088,%a0)
|
move.l %d0,(0x088,%a0)
|
||||||
|
|
|
@ -71,8 +71,8 @@
|
||||||
/* 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 0x200000
|
||||||
|
|
||||||
/* Define this for LCD backlight available */
|
/* Define this for LCD backlight available */
|
||||||
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
||||||
|
|
|
@ -66,8 +66,8 @@
|
||||||
/* 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 0x200000
|
||||||
|
|
||||||
/* Define this for LCD backlight available */
|
/* Define this for LCD backlight available */
|
||||||
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*
|
||||||
|
* This config file is for iriver H320, H340
|
||||||
|
*/
|
||||||
|
#define IRIVER_H300_SERIES 1
|
||||||
|
|
||||||
/* For Rolo and boot loader */
|
/* For Rolo and boot loader */
|
||||||
#define MODEL_NUMBER 2
|
#define MODEL_NUMBER 2
|
||||||
|
|
||||||
|
@ -60,8 +65,8 @@
|
||||||
/* 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 for LCD backlight available */
|
/* Define this for LCD backlight available */
|
||||||
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
#define CONFIG_BACKLIGHT BL_IRIVER /* port controlled */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue