diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-11-12 14:17:49 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-12 14:17:49 +0000 |
commit | 8c3f0681b2347ff51680d61f9226c587a9cfdcee (patch) | |
tree | f59f3210aa545c3cd35c2bf42648c5b4f86753d3 /firmware/drivers/mas.c | |
parent | 7b30e50812294fa8d6626f4f08608730d9dcea80 (diff) |
Get rid of ages-old interdependency between ata.c and mas.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11519 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/mas.c')
-rw-r--r-- | firmware/drivers/mas.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/drivers/mas.c b/firmware/drivers/mas.c index 1630255348..a8f910a426 100644 --- a/firmware/drivers/mas.c +++ b/firmware/drivers/mas.c @@ -24,8 +24,7 @@ #include "mas.h" #include "kernel.h" #include "system.h" - -extern bool old_recorder; +#include "hwcompat.h" static int mas_devread(unsigned long *dest, int len); @@ -287,21 +286,21 @@ void mas_reset(void) or_b(0x01, &PADRH); sleep(HZ/5); #elif (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) - if(old_recorder) + if (read_hw_mask() & ATA_ADDRESS_200) { - /* Older recorder models don't invert the POR signal */ - or_b(0x01, &PADRH); - sleep(HZ/100); and_b(~0x01, &PADRH); + sleep(HZ/100); + or_b(0x01, &PADRH); sleep(HZ/5); } else { - and_b(~0x01, &PADRH); - sleep(HZ/100); + /* Older recorder models don't invert the POR signal */ or_b(0x01, &PADRH); + sleep(HZ/100); + and_b(~0x01, &PADRH); sleep(HZ/5); - } + } #endif } |