summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-11-26 16:57:30 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-11-26 16:57:30 +0000
commitd052ced874172e95fdc1d096205ac4dfe38907f3 (patch)
tree2f05046952b93c1fa4345421dd28d4795fe8dfb9 /firmware/target/mips/ingenic_jz47xx/onda_vx747
parentb2dc7f004ef2a9fe81d93acc7810ed16bebb42f6 (diff)
downloadrockbox-d052ced874172e95fdc1d096205ac4dfe38907f3.tar.gz
rockbox-d052ced874172e95fdc1d096205ac4dfe38907f3.tar.bz2
rockbox-d052ced874172e95fdc1d096205ac4dfe38907f3.zip
Merge branch 'hotswap'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23759 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/ata-sd-target.h13
1 files changed, 6 insertions, 7 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 c0f2c11956..757a12d9f2 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
@@ -22,20 +22,19 @@
#ifndef ATA_SD_TARGET_H
#define ATA_SD_TARGET_H
-#include "inttypes.h"
-#include "hotswap.h"
#include "jz4740.h"
-
-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);
+#include "system.h"
#define MMC_CD_PIN (32*1 + 29) /* Pin to check card insertion */
+#define MMC_CD_IRQ GPIO61
-static inline void mmc_init_gpio(void)
+static inline void sd_init_gpio(void)
{
__gpio_as_msc();
+ __gpio_enable_pull(MMC_CD_PIN);
__gpio_as_input(MMC_CD_PIN);
+ __gpio_mask_irq(MMC_CD_PIN);
+ system_enable_irq(GPIO_IRQ(MMC_CD_PIN));
}
#endif