mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: substitute magic constants with meaningful names for clock gating
Change-Id: I6c66c7496db3db78e5c959414464826134dbe200
This commit is contained in:
parent
1fa406dc21
commit
2b6dfdb34e
9 changed files with 66 additions and 35 deletions
|
|
@ -61,7 +61,7 @@ void pcm_play_dma_stop(void)
|
|||
|
||||
static void hdma_i2s_transfer(const void *addr, size_t size)
|
||||
{
|
||||
SCU_CLKCFG &= ~(1<<3); /* enable HDMA clock */
|
||||
SCU_CLKCFG &= ~CLKCFG_HDMA; /* enable HDMA clock */
|
||||
|
||||
commit_discard_dcache_range(addr, size);
|
||||
|
||||
|
|
@ -117,12 +117,12 @@ void pcm_play_dma_pause(bool pause)
|
|||
{
|
||||
if(pause)
|
||||
{
|
||||
SCU_CLKCFG |= (1<<3);
|
||||
SCU_CLKCFG |= CLKCFG_HDMA;
|
||||
locked = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
SCU_CLKCFG &= ~(1<<3);
|
||||
SCU_CLKCFG &= ~CLKCFG_HDMA;
|
||||
locked = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -148,8 +148,7 @@ static void i2s_init(void)
|
|||
#endif
|
||||
|
||||
/* enable i2s clocks */
|
||||
SCU_CLKCFG &= ~((1<<17) | /* i2s_pclk */
|
||||
(1<<16)); /* i2s_clk */
|
||||
SCU_CLKCFG &= ~(CLKCFG_PCLK_I2S | CLKCFG_I2S);
|
||||
|
||||
/* configure I2S module */
|
||||
I2S_IER = 0; /* disable all i2s interrupts */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue