summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-06-15 11:22:03 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-06-15 11:22:03 +0000
commit733bab08869f1813a3212d97f1bde352916dfb67 (patch)
tree74de3bbf5b8dfa941b23f0009f69dafc23f0793b
parent39691c9cd02f55cb09f1e919a79b855d22dc5b6c (diff)
downloadrockbox-733bab08869f1813a3212d97f1bde352916dfb67.tar.gz
rockbox-733bab08869f1813a3212d97f1bde352916dfb67.zip
Onda VX747: clean up SD GPIO initialization
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21288 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h8
1 files changed, 0 insertions, 8 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 d05690000f..06cece2aac 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
@@ -39,19 +39,11 @@ int _sd_write_sectors(unsigned long start, int count, const void* buf);
39int _sd_init(void); 39int _sd_init(void);
40 40
41#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */ 41#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */
42#define MSC_D0 (32*3 + 10)
43#define MSC_D1 (32*3 + 11)
44#define MSC_D2 (32*3 + 12)
45#define MSC_CLK (32*3 + 9 )
46 42
47static inline void mmc_init_gpio(void) 43static inline void mmc_init_gpio(void)
48{ 44{
49 __gpio_as_msc(); 45 __gpio_as_msc();
50 __gpio_as_input(MMC_CD_PIN); 46 __gpio_as_input(MMC_CD_PIN);
51 __gpio_enable_pull(MSC_CLK);
52 __gpio_enable_pull(MSC_D0);
53 __gpio_enable_pull(MSC_D1);
54 __gpio_enable_pull(MSC_D2);
55} 47}
56 48
57#endif 49#endif