summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/mmc-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-10 00:08:03 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-10 00:13:11 +0200
commit645680d62b82455d24fcb178f1cc5208f9942e38 (patch)
tree1a9f928afc34260059bf986fc2caa7fc5b2a2028 /firmware/target/arm/imx233/mmc-imx233.c
parentd29a11b7a8f4ce230e9385a44f352a559bde753f (diff)
downloadrockbox-645680d62b82455d24fcb178f1cc5208f9942e38.tar.gz
rockbox-645680d62b82455d24fcb178f1cc5208f9942e38.zip
imx233: add pinctrl debug code to track pin uses
Past development has proved that one can mistakely use the same pin for two uses without noticing. Since this causes extremely hard to find bugs, the infrastructure will allow to register pin uses and panic when a conflict is detected. The pinctrl debug now shows the pin uses when its support is compiled in. Change-Id: Idb2d5235ce09207d77aa474d6f158e72b933761a
Diffstat (limited to 'firmware/target/arm/imx233/mmc-imx233.c')
-rw-r--r--firmware/target/arm/imx233/mmc-imx233.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/mmc-imx233.c b/firmware/target/arm/imx233/mmc-imx233.c
index 8782e8e8af..f4dab30bcc 100644
--- a/firmware/target/arm/imx233/mmc-imx233.c
+++ b/firmware/target/arm/imx233/mmc-imx233.c
@@ -63,6 +63,7 @@ int mmc_init(void)
63 #ifdef SANSA_FUZEPLUS 63 #ifdef SANSA_FUZEPLUS
64 /** Sansa Fuze+ has an internal eMMC 8-bit wide flash, power gate is pin PWM3 64 /** Sansa Fuze+ has an internal eMMC 8-bit wide flash, power gate is pin PWM3
65 * and power up time is 20ms */ 65 * and power up time is 20ms */
66 imx233_pinctrl_acquire_pin(1, 29, "emmc power");
66 imx233_set_pin_function(1, 29, PINCTRL_FUNCTION_GPIO); 67 imx233_set_pin_function(1, 29, PINCTRL_FUNCTION_GPIO);
67 imx233_enable_gpio_output(1, 29, true); 68 imx233_enable_gpio_output(1, 29, true);
68 imx233_set_gpio_output(1, 29, false); 69 imx233_set_gpio_output(1, 29, false);