summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/mas.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/mas.c')
-rw-r--r--firmware/drivers/mas.c17
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
}