mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Patch by Rafaël Carré - Sansa AMS i2c :
* remove peripheral reset (already made in system_init). * Move empty i2c_init() from i2c-as3525.c (and remove that file) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20645 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9ab84b073f
commit
070ee525ac
3 changed files with 5 additions and 34 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "clock-target.h"
|
||||
#include "kernel.h"
|
||||
#include "as3525.h"
|
||||
#include "i2c.h"
|
||||
|
||||
#define I2C2_DATA *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x00))
|
||||
#define I2C2_SLAD0 *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x04))
|
||||
|
|
@ -57,14 +58,13 @@
|
|||
|
||||
static struct mutex as_mtx SHAREDBSS_ATTR;
|
||||
|
||||
void i2c_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
/* initialises the internal i2c bus and prepares for transfers to the codec */
|
||||
void ascodec_init(void)
|
||||
{
|
||||
/* reset device */
|
||||
CCU_SRC = CCU_SRC_I2C_AUDIO_EN;
|
||||
CCU_SRL = CCU_SRL_MAGIC_NUMBER;
|
||||
CCU_SRL = 0;
|
||||
|
||||
/* enable clock */
|
||||
CGU_PERI |= CGU_I2C_AUDIO_MASTER_CLOCK_ENABLE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue