summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sdmmc-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-22 00:30:43 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-22 00:34:45 +0200
commita0728672bf07f626049f8dc0007772794ae95ee1 (patch)
treebb8ca610c9d0c8fb441a99ccf33102964cafd003 /firmware/target/arm/imx233/sdmmc-imx233.c
parentd3bc64833c76adca4d6300e5b5880ee8ea63de02 (diff)
downloadrockbox-a0728672bf07f626049f8dc0007772794ae95ee1.tar.gz
rockbox-a0728672bf07f626049f8dc0007772794ae95ee1.tar.bz2
rockbox-a0728672bf07f626049f8dc0007772794ae95ee1.zip
Initial commit for the Creative ZEN and ZEN X-Fi
Change-Id: Ibd7b1b0b957ef11c200cb63eff7da53f11774748
Diffstat (limited to 'firmware/target/arm/imx233/sdmmc-imx233.c')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index 15eeed1371..cff801f6b9 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -127,6 +127,23 @@ struct sdmmc_config_t sdmmc_config[] =
.ssp = 1,
.mode = SD_MODE,
},
+#elif defined(CREATIVE_ZENXFI) || defined(CREATIVE_ZEN)
+ {
+ .name = "internal/SD",
+ .flags = WINDOW,
+ .ssp = 2,
+ .mode = SD_MODE,
+ },
+ /* The Zen X-Fi uses pin #B0P10 for power*/
+ {
+ .name = "microSD",
+ .flags = POWER_PIN | REMOVABLE | DETECT_INVERTED | POWER_DELAY | WP_PIN,
+ .power_pin = PIN(0, 10),
+ .wp_pin = PIN(0, 11),
+ .power_delay = HZ / 10, /* extra delay, to ramp up voltage? */
+ .ssp = 1,
+ .mode = SD_MODE,
+ },
#elif defined(CREATIVE_ZENMOZAIC)
{
.name = "internal/SD",