summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h b/firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h
index aed2b9cfea..d05690000f 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h
@@ -38,16 +38,20 @@ int _sd_read_sectors(unsigned long start, int count, void* buf);
int _sd_write_sectors(unsigned long start, int count, const void* buf);
int _sd_init(void);
-#define MMC_CD_PIN (29 + 1 * 32) /* Pin to check card insertion */
+#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */
+#define MSC_D0 (32*3 + 10)
+#define MSC_D1 (32*3 + 11)
+#define MSC_D2 (32*3 + 12)
+#define MSC_CLK (32*3 + 9 )
static inline void mmc_init_gpio(void)
{
__gpio_as_msc();
__gpio_as_input(MMC_CD_PIN);
- //__gpio_enable_pull(32*3+29);
- __gpio_enable_pull(32*3+10);
- __gpio_enable_pull(32*3+11);
- __gpio_enable_pull(32*3+12);
+ __gpio_enable_pull(MSC_CLK);
+ __gpio_enable_pull(MSC_D0);
+ __gpio_enable_pull(MSC_D1);
+ __gpio_enable_pull(MSC_D2);
}
#endif