Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andrew Ryabinin 2011-11-03 11:53:02 +00:00
parent 50211e2054
commit 2164aab902
19 changed files with 560 additions and 13 deletions

View file

@ -126,10 +126,16 @@ static void mmu_buff_reset(void)
MMU_CTRL |= MMU_BUFII_RESET | MMU_BUFI_RESET;
}
/* My generic device uses PC7 pin, active low */
static inline bool card_detect_target(void)
{
#if defined(RK27_GENERIC)
/* My generic device uses PC7 pin, active low */
return !(GPIO_PCDR & 0x80);
#elif defined(HM60X) || defined(HM801)
return !(GPIO_PFDR & (1<<2));
#else
#error "Unknown target"
#endif
}
/* Send command to the SD card. Command finish is signaled in ISR */