1
0
Fork 0
forked from len0rd/rockbox

Finally get packed samples to work in a nice way on H10 in IIS mode. Add some more register defs.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15026 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-10-07 20:14:32 +00:00
parent 1de497228a
commit 4512f1a14f
3 changed files with 22 additions and 14 deletions

View file

@ -307,8 +307,11 @@
#define INIT_USB 0x80000000
/* IIS */
#define IISDIV (*(volatile unsigned long*)(0x60006080))
#define IISCONFIG (*(volatile unsigned long*)(0x70002800))
#define IISCLK (*(volatile unsigned long*)(0x70002808))
#define IISFIFO_CFG (*(volatile unsigned long*)(0x7000280c))
#define IISFIFO_WR (*(volatile unsigned long*)(0x70002840))
#define IISFIFO_WRH (*(volatile unsigned short*)(0x70002840))
@ -358,10 +361,14 @@
* I forgot which is which size but did test them. */
#define IIS_FIFO_FORMAT_1 (0x1 << 4)
#define IIS_FIFO_FORMAT_2 (0x2 << 4)
/* 32bit-MSB-little endian */
/* 32bit-MSB-little endian */
#define IIS_FIFO_FORMAT_LE32 (0x3 << 4)
/* 16bit-MSB-little endian */
/* 16bit-MSB-little endian */
#define IIS_FIFO_FORMAT_LE16 (0x4 << 4)
#define IIS_FIFO_FORMAT_5 (0x5 << 4)
#define IIS_FIFO_FORMAT_6 (0x6 << 4)
/* A second one like IIS_FIFO_FORMAT_LE16? PP5020 only? */
#define IIS_FIFO_FORMAT_LE16_2 (0x7 << 4)
/* FIFO formats 0x5 and above seem equivalent to 0x4 ?? */