From 645680d62b82455d24fcb178f1cc5208f9942e38 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 10 May 2012 00:08:03 +0200 Subject: 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 --- firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c') diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c index 6e13c0419c..7f181a9672 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c @@ -41,6 +41,7 @@ void _backlight_set_brightness(int brightness) bool _backlight_init(void) { + imx233_pinctrl_acquire_pin(1, 28, "backlight"); imx233_set_pin_function(1, 28, PINCTRL_FUNCTION_GPIO); imx233_set_pin_drive_strength(1, 28, PINCTRL_DRIVE_8mA); imx233_enable_gpio_output(1, 28, true); -- cgit v1.2.3