diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-10 00:08:03 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-10 00:13:11 +0200 |
commit | 645680d62b82455d24fcb178f1cc5208f9942e38 (patch) | |
tree | 1a9f928afc34260059bf986fc2caa7fc5b2a2028 /firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c | |
parent | d29a11b7a8f4ce230e9385a44f352a559bde753f (diff) | |
download | rockbox-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/sansa-fuzeplus/fmradio-i2c-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c index 417f70e406..ee63cd35f6 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c | |||
@@ -87,6 +87,8 @@ struct i2c_interface fmradio_i2c = | |||
87 | 87 | ||
88 | void fmradio_i2c_init(void) | 88 | void fmradio_i2c_init(void) |
89 | { | 89 | { |
90 | imx233_pinctrl_acquire_pin(1, 24, "fmradio i2c"); | ||
91 | imx233_pinctrl_acquire_pin(1, 22, "fmradio i2c"); | ||
90 | imx233_set_pin_function(1, 24, PINCTRL_FUNCTION_GPIO); | 92 | imx233_set_pin_function(1, 24, PINCTRL_FUNCTION_GPIO); |
91 | imx233_set_pin_function(1, 22, PINCTRL_FUNCTION_GPIO); | 93 | imx233_set_pin_function(1, 22, PINCTRL_FUNCTION_GPIO); |
92 | fmradio_i2c_bus = i2c_add_node(&fmradio_i2c); | 94 | fmradio_i2c_bus = i2c_add_node(&fmradio_i2c); |