forked from len0rd/rockbox
Fix missing #includes and make local functions static for gigabeat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18091 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
929d5e9399
commit
8d0126f355
14 changed files with 21 additions and 9 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "config.h"
|
||||
#include "system.h"
|
||||
#include "mc13783.h"
|
||||
#include "adc.h"
|
||||
#include "adc-target.h"
|
||||
#include "kernel.h"
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include "i2s.h"
|
||||
|
||||
void i2s_reset(void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "config.h"
|
||||
#include "system.h"
|
||||
#include "power.h"
|
||||
#include "power-imx31.h"
|
||||
#include "backlight.h"
|
||||
#include "backlight-target.h"
|
||||
#include "avic-imx31.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int tx_rdy(void);
|
||||
int rx_rdy(void);
|
||||
void tx_writec(const char c);
|
||||
void dprintf(const char * str, ... );
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "usb.h"
|
||||
#include "usb_core.h"
|
||||
#include "usb_drv.h"
|
||||
#include "usb-target.h"
|
||||
#include "clkctl-imx31.h"
|
||||
#include "mc13783.h"
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
void usb_connect_event(void);
|
||||
bool usb_init_device(void);
|
||||
void usb_init_device(void);
|
||||
int usb_detect(void);
|
||||
/* Read the immediate state of the cable from the PMIC */
|
||||
bool usb_plugged(void);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "system.h"
|
||||
#include "kernel.h"
|
||||
#include "sound.h"
|
||||
#include "wmcodec.h"
|
||||
#include "i2c-imx31.h"
|
||||
|
||||
/* NOTE: Some port-specific bits will have to be moved away (node and GPIO
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
****************************************************************************/
|
||||
#include "cpu.h"
|
||||
#include "system.h"
|
||||
#include "adc.h"
|
||||
#include "adc-target.h"
|
||||
#include "kernel.h"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "power.h"
|
||||
#include "panic.h"
|
||||
#include "pcf50606.h"
|
||||
#include "ata.h"
|
||||
#include "ata-target.h"
|
||||
#include "backlight-target.h"
|
||||
|
||||
|
|
|
@ -47,23 +47,23 @@ bool lcd_enabled(void)
|
|||
return lcd_on;
|
||||
}
|
||||
|
||||
unsigned int LCDBANK(unsigned int address)
|
||||
static unsigned int LCDBANK(unsigned int address)
|
||||
{
|
||||
return ((address >> 22) & 0xff);
|
||||
}
|
||||
|
||||
unsigned int LCDBASEU(unsigned int address)
|
||||
static unsigned int LCDBASEU(unsigned int address)
|
||||
{
|
||||
return (address & ((1 << 22)-1)) >> 1;
|
||||
}
|
||||
|
||||
unsigned int LCDBASEL(unsigned int address)
|
||||
static unsigned int LCDBASEL(unsigned int address)
|
||||
{
|
||||
address += 320*240*2;
|
||||
return (address & ((1 << 22)-1)) >> 1;
|
||||
}
|
||||
|
||||
inline void delay_cycles(volatile int delay)
|
||||
static inline void delay_cycles(volatile int delay)
|
||||
{
|
||||
while(delay>0) delay--;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ static void LCD_SPI_send(const unsigned char *array, int count)
|
|||
}
|
||||
}
|
||||
|
||||
void LCD_SPI_setreg(unsigned char reg, unsigned char value)
|
||||
static void LCD_SPI_setreg(unsigned char reg, unsigned char value)
|
||||
{
|
||||
unsigned char regval[] =
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ static void LCD_SPI_SS(bool select)
|
|||
GPBDAT&=~0x100;
|
||||
}
|
||||
|
||||
void LCD_SPI_start(void)
|
||||
static void LCD_SPI_start(void)
|
||||
{
|
||||
s3c_regset(&CLKCON, 0x40000); /* enable SPI clock */
|
||||
LCD_SPI_SS(false);
|
||||
|
@ -171,7 +171,7 @@ void LCD_SPI_start(void)
|
|||
LCD_SPI_SS(true);
|
||||
}
|
||||
|
||||
void LCD_SPI_stop(void)
|
||||
static void LCD_SPI_stop(void)
|
||||
{
|
||||
LCD_SPI_SS(false);
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "logf.h"
|
||||
#include "debug.h"
|
||||
#include "string.h"
|
||||
#include "sc606-meg-fx.h"
|
||||
|
||||
#define SLAVE_ADDRESS 0xCC
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "kernel.h"
|
||||
#include "ata.h"
|
||||
#include "usb.h"
|
||||
#include "usb-target.h"
|
||||
|
||||
#define USB_RST_ASSERT GPBDAT &= ~(1 << 4)
|
||||
#define USB_RST_DEASSERT GPBDAT |= (1 << 4)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef USB_TARGET_H
|
||||
#define USB_TARGET_H
|
||||
|
||||
bool usb_init_device(void);
|
||||
void usb_init_device(void);
|
||||
void usb_enable(bool on);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "kernel.h"
|
||||
#include "sound.h"
|
||||
#include "i2c-meg-fx.h"
|
||||
#include "wmcodec.h"
|
||||
|
||||
void audiohw_init(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue