1
0
Fork 0
forked from len0rd/rockbox

Moved unrelated stuff from i2c the driver to appropriate places. Minor optimisation in i2c driver.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6419 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-05-07 22:29:35 +00:00
parent f34ce792ec
commit c42a1a05bb
3 changed files with 19 additions and 17 deletions

View file

@ -271,11 +271,15 @@ void mas_reset(void)
or_b(0x01, &PAIORH);
#if CONFIG_HWCODEC == MAS3507D
/* PB5 is "MAS enable". make it GPIO output and high */
PBCR2 &= ~0x0c00;
or_b(0x20, &PBIORL);
or_b(0x20, &PBDRL);
and_b(~0x01, &PADRH);
sleep(HZ/100);
or_b(0x01, &PADRH);
sleep(HZ/5);
#elif (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
if(old_recorder)
{