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:
parent
f34ce792ec
commit
c42a1a05bb
3 changed files with 19 additions and 17 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue