mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
Add more driver stubs to make the Fuze and e200v2 main builds compile; Correct the memory definition for the Fuze (8MB)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19090 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5c7d9f1015
commit
e25c1c6e43
13 changed files with 213 additions and 9 deletions
|
|
@ -690,4 +690,28 @@ tCardInfo *card_get_info_target(int card_no)
|
|||
return &card;
|
||||
}
|
||||
|
||||
bool card_detect_target(void)
|
||||
{
|
||||
#ifdef HAVE_HOTSWAP
|
||||
/* TODO */
|
||||
return false;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_HOTSWAP
|
||||
void card_enable_monitoring_target(bool on)
|
||||
{
|
||||
if (on)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOOTLOADER */
|
||||
|
|
|
|||
|
|
@ -74,3 +74,49 @@ const void * pcm_play_dma_get_peak_buffer(int *count)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
** Recording DMA transfer
|
||||
**/
|
||||
#ifdef HAVE_RECORDING
|
||||
void pcm_rec_lock(void)
|
||||
{
|
||||
}
|
||||
|
||||
void pcm_rec_unlock(void)
|
||||
{
|
||||
}
|
||||
|
||||
void pcm_record_more(void *start, size_t size)
|
||||
{
|
||||
(void)start;
|
||||
(void)size;
|
||||
}
|
||||
|
||||
void pcm_rec_dma_stop(void)
|
||||
{
|
||||
}
|
||||
|
||||
void pcm_rec_dma_start(void *addr, size_t size)
|
||||
{
|
||||
(void)addr;
|
||||
(void)size;
|
||||
}
|
||||
|
||||
void pcm_rec_dma_close(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void pcm_rec_dma_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
const void * pcm_rec_dma_get_peak_buffer(int *count)
|
||||
{
|
||||
(void)count;
|
||||
}
|
||||
|
||||
#endif /* HAVE_RECORDING */
|
||||
|
|
|
|||
|
|
@ -338,6 +338,11 @@ bool lcd_enabled(void)
|
|||
return display_on;
|
||||
}
|
||||
|
||||
void lcd_sleep(void)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
/*** update functions ***/
|
||||
|
||||
/* Performance function to blit a YUV bitmap directly to the LCD
|
||||
|
|
|
|||
|
|
@ -24,5 +24,7 @@
|
|||
#include "system-arm.h"
|
||||
|
||||
#define CPUFREQ_MAX 250000000
|
||||
#define CPUFREQ_DEFAULT 250000000
|
||||
#define CPUFREQ_NORMAL 250000000
|
||||
|
||||
#endif /* SYSTEM_TARGET_H */
|
||||
|
|
|
|||
|
|
@ -199,8 +199,9 @@ static void _display_on(void)
|
|||
}
|
||||
|
||||
/* I'm guessing this function is lcd_enable, but it may not be... */
|
||||
void lcd_enable(int r0)
|
||||
void lcd_enable(bool on)
|
||||
{
|
||||
int r0 = on;
|
||||
#if 0
|
||||
r4 = 0x1db12;
|
||||
[r4] = 1;
|
||||
|
|
@ -249,6 +250,36 @@ void lcd_enable(int r0)
|
|||
#endif
|
||||
}
|
||||
|
||||
bool lcd_enabled(void)
|
||||
{
|
||||
return display_on;
|
||||
}
|
||||
|
||||
void lcd_sleep(void)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
/*** update functions ***/
|
||||
|
||||
/* Performance function to blit a YUV bitmap directly to the LCD
|
||||
* src_x, src_y, width and height should be even
|
||||
* x, y, width and height have to be within LCD bounds
|
||||
*/
|
||||
void lcd_blit_yuv(unsigned char * const src[3],
|
||||
int src_x, int src_y, int stride,
|
||||
int x, int y, int width, int height)
|
||||
{
|
||||
(void)src;
|
||||
(void)src_x;
|
||||
(void)src_y;
|
||||
(void)stride;
|
||||
(void)x;
|
||||
(void)y;
|
||||
(void)width;
|
||||
(void)height;
|
||||
}
|
||||
|
||||
void lcd_init_device()
|
||||
{
|
||||
as3525_dbop_init();
|
||||
|
|
|
|||
|
|
@ -24,5 +24,7 @@
|
|||
#include "system-arm.h"
|
||||
|
||||
#define CPUFREQ_MAX 250000000
|
||||
#define CPUFREQ_DEFAULT 250000000
|
||||
#define CPUFREQ_NORMAL 250000000
|
||||
|
||||
#endif /* SYSTEM_TARGET_H */
|
||||
|
|
|
|||
|
|
@ -167,14 +167,16 @@ static void sdram_init(void)
|
|||
MPMC_DYNAMIC_tRRD = 2;
|
||||
MPMC_DYNAMIC_tMRD = 2;
|
||||
|
||||
#if defined(SANSA_CLIP) || defined(SANSA_M200V4) || defined(SANSA_FUZE)
|
||||
# define MEMORY_MODEL 0x21
|
||||
/* 16 bits external bus, low power SDRAM, 16 Mbits = 2 Mbytes */
|
||||
#elif defined(SANSA_E200V2)
|
||||
# define MEMORY_MODEL 0x5
|
||||
/* 16 bits external bus, high performance SDRAM, 64 Mbits = 8 Mbytes */
|
||||
#if defined(SANSA_CLIP) || defined(SANSA_M200V4)
|
||||
/* 16 bits external bus, low power SDRAM, 16 Mbits = 2 Mbytes */
|
||||
#define MEMORY_MODEL 0x21
|
||||
|
||||
#elif defined(SANSA_E200V2) || defined(SANSA_FUZE)
|
||||
/* 16 bits external bus, high performance SDRAM, 64 Mbits = 8 Mbytes */
|
||||
#define MEMORY_MODEL 0x5
|
||||
|
||||
#else
|
||||
# error "The external memory in your player is unknown"
|
||||
#error "The external memory in your player is unknown"
|
||||
#endif
|
||||
|
||||
MPMC_DYNAMIC_RASCAS_0 = (2<<8)|2; /* CAS & RAS latency = 2 clock cycles */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue