summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/pinctrl-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 21:15:09 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-17 00:29:25 +0200
commit52426d08918eadfba178f74e1bd5d1663f9c73e0 (patch)
tree3a9488a65d7d3f854f84615238ce174dfd956c6a /firmware/target/arm/imx233/pinctrl-imx233.c
parentf4fdf1ffe2189dafd1ebbbbf50f1a4626364ead3 (diff)
downloadrockbox-52426d08918eadfba178f74e1bd5d1663f9c73e0.tar.gz
rockbox-52426d08918eadfba178f74e1bd5d1663f9c73e0.zip
imx233: fix pinctrl for stmp3600 and stmp3700
Change-Id: I87281b89315890fa285cb9a63fda5c90bdc8cdbf
Diffstat (limited to 'firmware/target/arm/imx233/pinctrl-imx233.c')
-rw-r--r--firmware/target/arm/imx233/pinctrl-imx233.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/firmware/target/arm/imx233/pinctrl-imx233.c b/firmware/target/arm/imx233/pinctrl-imx233.c
index ab59532543..96edf8db84 100644
--- a/firmware/target/arm/imx233/pinctrl-imx233.c
+++ b/firmware/target/arm/imx233/pinctrl-imx233.c
@@ -35,13 +35,6 @@ void imx233_pinctrl_acquire(unsigned bank, unsigned pin, const char *name)
35 pin_use[bank][pin] = name; 35 pin_use[bank][pin] = name;
36} 36}
37 37
38void imx233_pinctrl_acquire_mask(unsigned bank, uint32_t mask, const char *name)
39{
40 for(unsigned pin = 0; pin < 32; pin++)
41 if(mask & (1 << pin))
42 imx233_pinctrl_acquire(bank, pin, name);
43}
44
45void imx233_pinctrl_release(unsigned bank, unsigned pin, const char *name) 38void imx233_pinctrl_release(unsigned bank, unsigned pin, const char *name)
46{ 39{
47 if(pin_use[bank][pin] != NULL && pin_use[bank][pin] != name) 40 if(pin_use[bank][pin] != NULL && pin_use[bank][pin] != name)
@@ -49,13 +42,6 @@ void imx233_pinctrl_release(unsigned bank, unsigned pin, const char *name)
49 pin_use[bank][pin] = NULL; 42 pin_use[bank][pin] = NULL;
50} 43}
51 44
52void imx233_pinctrl_release_mask(unsigned bank, uint32_t mask, const char *name)
53{
54 for(unsigned pin = 0; pin < 32; pin++)
55 if(mask & (1 << pin))
56 imx233_pinctrl_release(bank, pin, name);
57}
58
59const char *imx233_pinctrl_blame(unsigned bank, unsigned pin) 45const char *imx233_pinctrl_blame(unsigned bank, unsigned pin)
60{ 46{
61 return pin_use[bank][pin]; 47 return pin_use[bank][pin];