forked from len0rd/rockbox
Gigabeat S: Implement an SDMA API and use it in the PCM driver. Some other miscellaneous adjustments to recording and PCM buffer to accomodate use of physical addresses and cache coherency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19949 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0222d0a5eb
commit
94537f954e
21 changed files with 3002 additions and 141 deletions
|
|
@ -32,6 +32,28 @@
|
|||
#include "clkctl-imx31.h"
|
||||
#include "mc13783.h"
|
||||
|
||||
static unsigned long product_rev;
|
||||
static unsigned long system_rev;
|
||||
|
||||
/** IC revision info routines **/
|
||||
unsigned int iim_system_rev(void)
|
||||
{
|
||||
return system_rev & IIM_SREV_SREV;
|
||||
}
|
||||
|
||||
unsigned int iim_prod_rev(void)
|
||||
{
|
||||
return product_rev;
|
||||
}
|
||||
|
||||
static void iim_init(void)
|
||||
{
|
||||
/* Initialize the IC revision info (required by SDMA) */
|
||||
imx31_clkctl_module_clock_gating(CG_IIM, CGM_ON_ALL);
|
||||
product_rev = IIM_PREV;
|
||||
system_rev = IIM_SREV;
|
||||
}
|
||||
|
||||
/** Watchdog timer routines **/
|
||||
|
||||
/* Initialize the watchdog timer */
|
||||
|
|
@ -155,6 +177,8 @@ void system_init(void)
|
|||
/* MCR WFI enables wait mode */
|
||||
CLKCTL_CCMR &= ~(3 << 14);
|
||||
|
||||
iim_init();
|
||||
|
||||
imx31_regset32(&SDHC1_CLOCK_CONTROL, STOP_CLK);
|
||||
imx31_regset32(&SDHC2_CLOCK_CONTROL, STOP_CLK);
|
||||
imx31_regset32(&RNGA_CONTROL, RNGA_CONTROL_SLEEP);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue