forked from len0rd/rockbox
Fix more missing mutex_init calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21463 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ee1d8d1676
commit
c99ab564b0
2 changed files with 4 additions and 0 deletions
|
@ -771,6 +771,8 @@ int nand_init(void)
|
||||||
|
|
||||||
if (initialized) return 0;
|
if (initialized) return 0;
|
||||||
|
|
||||||
|
mutex_init(&ata_mtx);
|
||||||
|
|
||||||
#ifdef CPU_TCC77X
|
#ifdef CPU_TCC77X
|
||||||
CSCFG2 = 0x318a8010;
|
CSCFG2 = 0x318a8010;
|
||||||
|
|
||||||
|
|
|
@ -146,6 +146,8 @@ int i2c_read(unsigned short address, unsigned char* buf, int count)
|
||||||
|
|
||||||
void i2c_init(void)
|
void i2c_init(void)
|
||||||
{
|
{
|
||||||
|
mutex_init(&i2c_mtx);
|
||||||
|
|
||||||
#ifdef CREATIVE_ZVx //TODO: mimic OF I2C clock settings; currently this is done by the bootloader
|
#ifdef CREATIVE_ZVx //TODO: mimic OF I2C clock settings; currently this is done by the bootloader
|
||||||
IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure)
|
IO_CLK_MOD2 &= ~CLK_MOD2_I2C; // turn I²C clock off (just to be sure)
|
||||||
IO_CLK_LPCTL1 &= ~1; // set Powerdown mode to off
|
IO_CLK_LPCTL1 &= ~1; // set Powerdown mode to off
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue