mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
d29a11b7a8
commit
645680d62b
13 changed files with 122 additions and 6 deletions
|
|
@ -57,6 +57,8 @@ void imx233_i2c_init(void)
|
|||
{
|
||||
imx233_reset_block(&HW_I2C_CTRL0);
|
||||
/* setup pins (must be done when shutdown) */
|
||||
imx233_pinctrl_acquire_pin(0, 30, "i2c");
|
||||
imx233_pinctrl_acquire_pin(0, 31, "i2c");
|
||||
imx233_set_pin_function(0, 30, PINCTRL_FUNCTION_MAIN);
|
||||
imx233_set_pin_function(0, 31, PINCTRL_FUNCTION_MAIN);
|
||||
/* clear softreset */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue