From 4512f1a14f78b764df1df934b8f95907ca7635cc Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 7 Oct 2007 20:14:32 +0000 Subject: 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 --- firmware/export/pp5020.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h index df8c8fb058..2c939300ab 100644 --- a/firmware/export/pp5020.h +++ b/firmware/export/pp5020.h @@ -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 ?? */ -- cgit v1.2.3