mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Move some more files around and get the main build compiling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14919 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5be5674b06
commit
a56b65342f
24 changed files with 314 additions and 21 deletions
|
@ -155,4 +155,6 @@ keymaps/keymap-e200.c
|
||||||
keymaps/keymap-c200.c
|
keymaps/keymap-c200.c
|
||||||
#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
|
#elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
|
||||||
keymaps/keymap-av300.c
|
keymaps/keymap-av300.c
|
||||||
|
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||||
|
keymaps/keymap-mr500.c
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,6 +16,16 @@ OUTPUT_FORMAT(elf32-sh)
|
||||||
#define STUBOFFSET 0
|
#define STUBOFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_CPU==S3C2440
|
||||||
|
#include "s3c2440.h"
|
||||||
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE
|
||||||
|
#elif CONFIG_CPU==DM320
|
||||||
|
#include "dm320.h"
|
||||||
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE
|
||||||
|
#else
|
||||||
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
|
#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
|
||||||
#define ARCH_IRIVER
|
#define ARCH_IRIVER
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,8 +47,6 @@ OUTPUT_FORMAT(elf32-sh)
|
||||||
#define IRAMORIG 0x407000
|
#define IRAMORIG 0x407000
|
||||||
#define IRAMSIZE 0x9000
|
#define IRAMSIZE 0x9000
|
||||||
#elif CONFIG_CPU == S3C2440
|
#elif CONFIG_CPU == S3C2440
|
||||||
#include "s3c2440.h"
|
|
||||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - STUBOFFSET - LCD_BUFFER_SIZE - TTB_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE
|
|
||||||
#define DRAMORIG 0x100 + STUBOFFSET
|
#define DRAMORIG 0x100 + STUBOFFSET
|
||||||
#define IRAMORIG DRAMORIG
|
#define IRAMORIG DRAMORIG
|
||||||
#define IRAMSIZE 4K
|
#define IRAMSIZE 4K
|
||||||
|
@ -47,15 +55,16 @@ OUTPUT_FORMAT(elf32-sh)
|
||||||
#define DRAMORIG 0x80000000
|
#define DRAMORIG 0x80000000
|
||||||
#define IRAMORIG 0x1FFFC000
|
#define IRAMORIG 0x1FFFC000
|
||||||
#define IRAMSIZE 0x4000
|
#define IRAMSIZE 0x4000
|
||||||
|
#elif CONFIG_CPU==DM320
|
||||||
|
#define DRAMORIG 0x00900000 + STUBOFFSET
|
||||||
|
#define IRAMORIG 0x00000100
|
||||||
|
#define IRAMSIZE 0x4000-0x100
|
||||||
#else
|
#else
|
||||||
#define DRAMORIG 0x09000000 + STUBOFFSET
|
#define DRAMORIG 0x09000000 + STUBOFFSET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
||||||
|
|
||||||
#if CONFIG_CPU != S3C2440
|
|
||||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
|
|
||||||
#endif
|
|
||||||
#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
|
#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
|
||||||
#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
|
#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ void main(void)
|
||||||
printf("Loading firmware");
|
printf("Loading firmware");
|
||||||
|
|
||||||
loadbuffer = (unsigned char*) 0x00900000;
|
loadbuffer = (unsigned char*) 0x00900000;
|
||||||
buffer_size = (unsigned char*)0x00100000 - loadbuffer;
|
buffer_size = (unsigned char*)0x04900000 - loadbuffer;
|
||||||
|
|
||||||
rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);
|
rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);
|
||||||
if(rc < 0)
|
if(rc < 0)
|
||||||
|
|
|
@ -25,8 +25,8 @@ target/arm/archos/av300/*.[chS]
|
||||||
target/arm/s3c2440/gigabeat-fx/*.[chS]
|
target/arm/s3c2440/gigabeat-fx/*.[chS]
|
||||||
target/arm/iriver/*.[chS]
|
target/arm/iriver/*.[chS]
|
||||||
target/arm/iriver/h10/*.[chS]
|
target/arm/iriver/h10/*.[chS]
|
||||||
target/arm/olympus/*.[chS]
|
target/arm/tms320dm320/*.[chS]
|
||||||
target/arm/olympus/mrobe-500/*.[chS]
|
target/arm/tms320dm320/mrobe-500/*.[chS]
|
||||||
target/arm/pnx0101/*.[chS]
|
target/arm/pnx0101/*.[chS]
|
||||||
target/arm/pnx0101/iriver-ifp7xx/*.[chS]
|
target/arm/pnx0101/iriver-ifp7xx/*.[chS]
|
||||||
target/arm/ipod/*.[chS]
|
target/arm/ipod/*.[chS]
|
||||||
|
|
|
@ -333,7 +333,7 @@ target/arm/crt0-pp.S
|
||||||
#elif CONFIG_CPU == PNX0101
|
#elif CONFIG_CPU == PNX0101
|
||||||
target/arm/pnx0101/crt0-pnx0101.S
|
target/arm/pnx0101/crt0-pnx0101.S
|
||||||
#elif defined(OLYMPUS_MROBE_500)
|
#elif defined(OLYMPUS_MROBE_500)
|
||||||
target/arm/tms320dm320/mrobe-500/crt0.S
|
target/arm/tms320dm320/crt0.S
|
||||||
#elif defined(CPU_ARM)
|
#elif defined(CPU_ARM)
|
||||||
target/arm/crt0.S
|
target/arm/crt0.S
|
||||||
#endif /* defined(CPU_*) */
|
#endif /* defined(CPU_*) */
|
||||||
|
@ -626,14 +626,18 @@ target/arm/tms320dm320/mrobe-500/adc-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/ata-mr500.c
|
target/arm/tms320dm320/mrobe-500/ata-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/backlight-mr500.c
|
target/arm/tms320dm320/mrobe-500/backlight-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/button-mr500.c
|
target/arm/tms320dm320/mrobe-500/button-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/kernel-mr500.c
|
target/arm/tms320dm320/mrobe-500/dm320codec-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/lcd-mr500.c
|
target/arm/tms320dm320/mrobe-500/lcd-mr500.c
|
||||||
|
target/arm/tms320dm320/mrobe-500/pcm-mr500.c
|
||||||
|
target/arm/tms320dm320/mrobe-500/powermgmt-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/power-mr500.c
|
target/arm/tms320dm320/mrobe-500/power-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/system-mr500.c
|
|
||||||
target/arm/tms320dm320/mrobe-500/timer-mr500.c
|
|
||||||
target/arm/tms320dm320/mrobe-500/usb-mr500.c
|
target/arm/tms320dm320/mrobe-500/usb-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/uart-mr500.c
|
target/arm/tms320dm320/i2c-dm320.c
|
||||||
target/arm/tms320dm320/mrobe-500/spi-mr500.c
|
target/arm/tms320dm320/kernel-mr500.c
|
||||||
|
target/arm/tms320dm320/spi-mr500.c
|
||||||
|
target/arm/tms320dm320/system-mr500.c
|
||||||
|
target/arm/tms320dm320/timer-mr500.c
|
||||||
|
target/arm/tms320dm320/uart-mr500.c
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -9,6 +9,8 @@ OUTPUT_FORMAT(elf32-littlearm)
|
||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
#ifdef CPU_PP
|
#ifdef CPU_PP
|
||||||
INPUT(target/arm/crt0-pp.o)
|
INPUT(target/arm/crt0-pp.o)
|
||||||
|
#elif defined(OLYMPUS_MROBE_500)
|
||||||
|
INPUT(target/arm/tms320dm320/crt0.o)
|
||||||
#elif CONFIG_CPU == PNX0101
|
#elif CONFIG_CPU == PNX0101
|
||||||
INPUT(target/arm/pnx0101/crt0-pnx0101.o)
|
INPUT(target/arm/pnx0101/crt0-pnx0101.o)
|
||||||
#elif defined(CPU_ARM)
|
#elif defined(CPU_ARM)
|
||||||
|
@ -31,6 +33,9 @@ INPUT(target/sh/crt0.o)
|
||||||
#if CONFIG_CPU==S3C2440
|
#if CONFIG_CPU==S3C2440
|
||||||
#include "s3c2440.h"
|
#include "s3c2440.h"
|
||||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE
|
||||||
|
#elif CONFIG_CPU==DM320
|
||||||
|
#include "dm320.h"
|
||||||
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE - LCD_BUFFER_SIZE
|
||||||
#else
|
#else
|
||||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,8 +63,8 @@ INPUT(target/sh/crt0.o)
|
||||||
#define IRAM DRAM
|
#define IRAM DRAM
|
||||||
#elif CONFIG_CPU==DM320
|
#elif CONFIG_CPU==DM320
|
||||||
#define DRAMORIG 0x00900000 + STUBOFFSET
|
#define DRAMORIG 0x00900000 + STUBOFFSET
|
||||||
#define IRAMORIG 0x00000000
|
#define IRAMORIG 0x00000100
|
||||||
#define IRAMSIZE 0x4000
|
#define IRAMSIZE 0x4000-0x100
|
||||||
#elif CONFIG_CPU==IMX31L
|
#elif CONFIG_CPU==IMX31L
|
||||||
#define DRAMORIG (0x80000000 + STUBOFFSET)
|
#define DRAMORIG (0x80000000 + STUBOFFSET)
|
||||||
#define IRAMORIG 0x1FFFC000
|
#define IRAMORIG 0x1FFFC000
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
#ifndef __DM320_H__
|
#ifndef __DM320_H__
|
||||||
#define __DM320_H__
|
#define __DM320_H__
|
||||||
|
|
||||||
#define FRAME ((short *) (0x4470000))
|
#define LCD_BUFFER_SIZE (640*480*4)
|
||||||
|
#define FRAME ((short *) (0x4900000-LCD_BUFFER_SIZE)) /* Put the buffer at the end of mem */
|
||||||
|
|
||||||
#define PHY_IO_BASE 0x00030000
|
#define PHY_IO_BASE 0x00030000
|
||||||
#define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr)))
|
#define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr)))
|
||||||
|
@ -314,7 +315,6 @@
|
||||||
#define IO_CCD_BLKCMP0 0x0728
|
#define IO_CCD_BLKCMP0 0x0728
|
||||||
#define IO_CCD_BLKCMP1 0x072A
|
#define IO_CCD_BLKCMP1 0x072A
|
||||||
#define IO_CCD_MEDFILT 0x072C
|
#define IO_CCD_MEDFILT 0x072C
|
||||||
#define IO_CCD_RYEGAN 0x072E /* this is kept on the odd chance that some code is using the misspelled reg */
|
|
||||||
#define IO_CCD_RYEGAIN 0x072E
|
#define IO_CCD_RYEGAIN 0x072E
|
||||||
#define IO_CCD_GRCYGAIN 0x0730
|
#define IO_CCD_GRCYGAIN 0x0730
|
||||||
#define IO_CCD_GBGGAIN 0x0732
|
#define IO_CCD_GBGGAIN 0x0732
|
||||||
|
|
|
@ -50,7 +50,8 @@ void pcm_play_pause_unpause(void);
|
||||||
|
|
||||||
/** Functions that require targeted implementation **/
|
/** Functions that require targeted implementation **/
|
||||||
|
|
||||||
#if defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) || (CONFIG_CPU == IMX31L)
|
#if defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) || (CONFIG_CPU == IMX31L) \
|
||||||
|
|| (CONFIG_CPU == DM320)
|
||||||
/* Implemented in target/... */
|
/* Implemented in target/... */
|
||||||
#else
|
#else
|
||||||
/* dummy functions for those not actually supporting all this yet */
|
/* dummy functions for those not actually supporting all this yet */
|
||||||
|
@ -71,7 +72,7 @@ void pcm_mute(bool mute)
|
||||||
#endif /* defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) */
|
#endif /* defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) */
|
||||||
|
|
||||||
#if defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) || defined(CPU_PP) \
|
#if defined(CPU_COLDFIRE) || (CONFIG_CPU == S3C2440) || defined(CPU_PP) \
|
||||||
|| (CONFIG_CPU == IMX31L)
|
|| (CONFIG_CPU == IMX31L) || (CONFIG_CPU == DM320)
|
||||||
/* Implemented in target/... */
|
/* Implemented in target/... */
|
||||||
#else
|
#else
|
||||||
static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
|
static int pcm_freq = HW_SAMPR_DEFAULT; /* 44.1 is default */
|
||||||
|
|
|
@ -194,8 +194,10 @@ data_abort_handler:
|
||||||
mov r1, #2
|
mov r1, #2
|
||||||
b UIE
|
b UIE
|
||||||
|
|
||||||
|
#if defined(STUB) || defined(BOOTLOADER)
|
||||||
UIE:
|
UIE:
|
||||||
b UIE
|
b UIE
|
||||||
|
#endif
|
||||||
|
|
||||||
/* 256 words of IRQ stack */
|
/* 256 words of IRQ stack */
|
||||||
.space 256*4
|
.space 256*4
|
50
firmware/target/arm/tms320dm320/i2c-dm320.c
Executable file
50
firmware/target/arm/tms320dm320/i2c-dm320.c
Executable file
|
@ -0,0 +1,50 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Karl Kurbjun
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
#include "system.h"
|
||||||
|
#include "i2c-dm320.h"
|
||||||
|
|
||||||
|
static int i2c_getack(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static int i2c_start(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static void i2c_stop(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static int i2c_outb(unsigned char byte)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void i2c_write(int addr, const unsigned char *buf, int count)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void i2c_init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
44
firmware/target/arm/tms320dm320/i2c-dm320.h
Executable file
44
firmware/target/arm/tms320dm320/i2c-dm320.h
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id: i2c-meg-fx.h 13720 2007-06-26 02:11:30Z jethead71 $
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Michael Sevakis
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
/* chip-specific i2c functions */
|
||||||
|
|
||||||
|
/* IICCON */
|
||||||
|
#define I2C_ACKGEN (1 << 7)
|
||||||
|
#define I2C_TXCLK_512 (1 << 6)
|
||||||
|
#define I2C_TXRX_INTENB (1 << 5)
|
||||||
|
#define I2C_TXRX_INTPND (1 << 4)
|
||||||
|
|
||||||
|
/* IICSTAT */
|
||||||
|
#define I2C_MODE_MASTER (2 << 6)
|
||||||
|
#define I2C_MODE_TX (1 << 6)
|
||||||
|
#define I2C_BUSY (1 << 5)
|
||||||
|
#define I2C_START (1 << 5)
|
||||||
|
#define I2C_RXTX_ENB (1 << 4)
|
||||||
|
#define I2C_BUS_ARB_FAILED (1 << 3)
|
||||||
|
#define I2C_S_ADDR_STAT (1 << 2)
|
||||||
|
#define I2C_S_ADDR_MATCH (1 << 1)
|
||||||
|
#define I2C_ACK_L (1 << 0)
|
||||||
|
|
||||||
|
/* IICLC */
|
||||||
|
#define I2C_FLT_ENB (1 << 2)
|
||||||
|
|
||||||
|
void i2c_init(void);
|
||||||
|
void i2c_write(int addr, const unsigned char *data, int count);
|
||||||
|
|
39
firmware/target/arm/tms320dm320/mrobe-500/dm320codec-mr500.c
Executable file
39
firmware/target/arm/tms320dm320/mrobe-500/dm320codec-mr500.c
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007 by Karl Kurbjun
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
#include "cpu.h"
|
||||||
|
#include "kernel.h"
|
||||||
|
#include "sound.h"
|
||||||
|
|
||||||
|
const struct sound_settings_info audiohw_settings[] = {
|
||||||
|
[SOUND_VOLUME] = {"dB", 0, 1, -74, 6, -25},
|
||||||
|
[SOUND_BASS] = {"dB", 1, 15, -60, 90, 0},
|
||||||
|
[SOUND_TREBLE] = {"dB", 1, 15, -60, 90, 0},
|
||||||
|
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
|
||||||
|
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
|
||||||
|
[SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void audiohw_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void audiohw_close(void)
|
||||||
|
{
|
||||||
|
}
|
|
@ -167,8 +167,9 @@ void lcd_yuv_blit(unsigned char * const src[3],
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
lcd_write_yuv420_lines(dst, chroma_buf, yuv_src, width,
|
/* lcd_write_yuv420_lines(dst, chroma_buf, yuv_src, width,
|
||||||
stride);
|
stride);
|
||||||
|
*/
|
||||||
yuv_src[0] += stride << 1; /* Skip down two luma lines */
|
yuv_src[0] += stride << 1; /* Skip down two luma lines */
|
||||||
yuv_src[1] += stride >> 1; /* Skip down one chroma line */
|
yuv_src[1] += stride >> 1; /* Skip down one chroma line */
|
||||||
yuv_src[2] += stride >> 1;
|
yuv_src[2] += stride >> 1;
|
||||||
|
|
85
firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
Executable file
85
firmware/target/arm/tms320dm320/mrobe-500/pcm-mr500.c
Executable file
|
@ -0,0 +1,85 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Karl Kurbjun
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "system.h"
|
||||||
|
#include "kernel.h"
|
||||||
|
#include "logf.h"
|
||||||
|
#include "audio.h"
|
||||||
|
#include "sound.h"
|
||||||
|
#include "file.h"
|
||||||
|
|
||||||
|
static void _pcm_apply_settings(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_apply_settings(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_postinit(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_play_dma_start(const void *addr, size_t size)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static void pcm_play_dma_stop_fiq(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_play_dma_stop(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_play_pause_pause(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_play_pause_unpause(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_set_frequency(unsigned int frequency)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t pcm_get_bytes_waiting(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pcm_mute(bool mute)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return playback peaks - Peaks ahead in the DMA buffer based upon the
|
||||||
|
* calling period to attempt to compensate for
|
||||||
|
* delay.
|
||||||
|
*/
|
||||||
|
void pcm_calculate_peaks(int *left, int *right)
|
||||||
|
{
|
||||||
|
} /* pcm_calculate_peaks */
|
51
firmware/target/arm/tms320dm320/mrobe-500/powermgmt-mr500.c
Executable file
51
firmware/target/arm/tms320dm320/mrobe-500/powermgmt-mr500.c
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* __________ __ ___.
|
||||||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
* \/ \/ \/ \/ \/
|
||||||
|
* $Id$
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 by Karl Kurbjun
|
||||||
|
*
|
||||||
|
* All files in this archive are subject to the GNU General Public License.
|
||||||
|
* See the file COPYING in the source tree root for full license agreement.
|
||||||
|
*
|
||||||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
* KIND, either express or implied.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "adc.h"
|
||||||
|
#include "powermgmt.h"
|
||||||
|
|
||||||
|
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
|
||||||
|
{
|
||||||
|
3450
|
||||||
|
};
|
||||||
|
|
||||||
|
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
|
||||||
|
{
|
||||||
|
3400
|
||||||
|
};
|
||||||
|
|
||||||
|
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
|
||||||
|
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
|
||||||
|
{
|
||||||
|
{ 3480, 3550, 3590, 3610, 3630, 3650, 3700, 3760, 3800, 3910, 3990 },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
||||||
|
const unsigned short percent_to_volt_charge[11] =
|
||||||
|
{
|
||||||
|
3480, 3550, 3590, 3610, 3630, 3650, 3700, 3760, 3800, 3910, 3990
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Returns battery voltage from ADC [millivolts] */
|
||||||
|
unsigned int battery_adc_voltage(void)
|
||||||
|
{
|
||||||
|
return 3500;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue