summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sd-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:09:46 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:52 +0200
commit12c64a4b79e043d8e8d77a278b340310f867a588 (patch)
treeb34b56131d6eb0e06340a8a6d7e32843027d0f59 /firmware/target/arm/imx233/sd-imx233.c
parente09c1e3d43665d04ae0ce2f288ba695b5abc3622 (diff)
downloadrockbox-12c64a4b79e043d8e8d77a278b340310f867a588.tar.gz
rockbox-12c64a4b79e043d8e8d77a278b340310f867a588.zip
Initial commit for the Creative ZEN X-Fi2 and X-Fi3 ports
These are really similar devices so one commit for both is ok. Change-Id: I8bd1d3fef1eb6d00aaadfb7af56c771f62d0c9c3
Diffstat (limited to 'firmware/target/arm/imx233/sd-imx233.c')
-rw-r--r--firmware/target/arm/imx233/sd-imx233.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sd-imx233.c b/firmware/target/arm/imx233/sd-imx233.c
index d3c29ee5be..8928faf3f9 100644
--- a/firmware/target/arm/imx233/sd-imx233.c
+++ b/firmware/target/arm/imx233/sd-imx233.c
@@ -62,6 +62,28 @@ struct sd_config_t sd_config[] =
62 .power_pin = PIN(0, 8), 62 .power_pin = PIN(0, 8),
63 .ssp = 1 63 .ssp = 1
64 }, 64 },
65#elif defined(CREATIVE_ZENXFI2)
66 /* The Zen X-Fi2 uses pin B1P29 for power*/
67 {
68 .name = "microSD",
69 .flags = POWER_PIN | REMOVABLE | DETECT_INVERTED,
70 .power_pin = PIN(1, 29),
71 .ssp = 1,
72 },
73#elif defined(CREATIVE_ZENXFI3)
74 {
75 .name = "internal/SD",
76 .flags = WINDOW,
77 .ssp = 2
78 },
79 /* The Zen X-Fi3 uses pin #B0P07 for power*/
80 {
81 .name = "microSD",
82 .flags = POWER_PIN | POWER_INVERTED | REMOVABLE | POWER_DELAY,
83 .power_pin = PIN(0, 7),
84 .power_delay = HZ / 10, /* extra delay, to ramp up voltage? */
85 .ssp = 1
86 },
65#else 87#else
66#error You need to write the sd config! 88#error You need to write the sd config!
67#endif 89#endif