mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
S5L8700/Meizu: miscellaneous minor fixes, stubs added, keywords set
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21820 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c133c6a964
commit
92fed35da6
7 changed files with 57 additions and 27 deletions
|
|
@ -49,12 +49,19 @@ void nand_led(bool onoff)
|
|||
int nand_read_sectors(IF_MV2(int drive,) unsigned long start, int incount,
|
||||
void* inbuf)
|
||||
{
|
||||
|
||||
(void)start;
|
||||
(void)incount;
|
||||
(void)inbuf;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int nand_write_sectors(IF_MV2(int drive,) unsigned long start, int count,
|
||||
const void* outbuf)
|
||||
{
|
||||
(void)start;
|
||||
(void)count;
|
||||
(void)outbuf;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void nand_spindown(int seconds)
|
||||
|
|
@ -82,8 +89,22 @@ int nand_soft_reset(void)
|
|||
|
||||
void nand_enable(bool on)
|
||||
{
|
||||
(void)on;
|
||||
}
|
||||
|
||||
void nand_get_info(IF_MV2(int drive,) struct storage_info *info)
|
||||
{
|
||||
(void)info;
|
||||
}
|
||||
|
||||
long nand_last_disk_activity(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int nand_init(void)
|
||||
{
|
||||
initialized = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2008 by Bertrik Sikken
|
||||
* Copyright (C) 2009 by Bertrik Sikken
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
|
|||
|
|
@ -33,8 +33,9 @@
|
|||
* data, pointer to data to be transfered
|
||||
A return value < 0 indicates an error.
|
||||
|
||||
Known issues:
|
||||
* uses polled mode (not interrupt driven), just like the OF
|
||||
Note:
|
||||
* blocks the calling thread for the entire duraton of the i2c transfer but
|
||||
uses wakeup_wait/wakeup_signal to allow other threads to run.
|
||||
* ACK from slave is not checked, so functions never return an error
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ void tick_start(unsigned int interval_in_ms)
|
|||
|
||||
/* configure timer for 10 kHz */
|
||||
TBCMD = (1 << 1); /* TB_CLR */
|
||||
TBPRE = 625; /* prescaler */
|
||||
TBPRE = 624; /* prescaler */
|
||||
TBCON = (0 << 13) | /* TB_INT1_EN */
|
||||
(1 << 12) | /* TB_INT0_EN */
|
||||
(0 << 11) | /* TB_START */
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ static void lcd_sleep(uint32_t t)
|
|||
for(i=0;i<t;++i);
|
||||
}
|
||||
|
||||
static uint8_t lcd_readdata()
|
||||
static uint8_t lcd_readdata(void)
|
||||
{
|
||||
LCD_RDATA = 0;
|
||||
lcd_sleep(64);
|
||||
|
|
@ -87,7 +87,7 @@ static void lcd_writereg(uint32_t reg, uint32_t data)
|
|||
LCD_WDATA = data & 0xff;
|
||||
}
|
||||
|
||||
void lcd_on() {
|
||||
void lcd_on(void) {
|
||||
if (lcd_type == 1) {
|
||||
LCD_WCMD = 0x29;
|
||||
} else {
|
||||
|
|
@ -101,7 +101,7 @@ void lcd_on() {
|
|||
}
|
||||
}
|
||||
|
||||
void lcd_off() {
|
||||
void lcd_off(void) {
|
||||
/* FIXME wait for DMA to finnish */
|
||||
if (lcd_type == 1) {
|
||||
LCD_WCMD = 0x28;
|
||||
|
|
@ -303,3 +303,11 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
{
|
||||
lcd_update();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
/* stub */
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2008 Rafaël Carré
|
||||
* Copyright (C) 2009 Bertrik Sikken
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue