forked from len0rd/rockbox
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
|
|
@ -87,6 +87,8 @@ struct i2c_interface fmradio_i2c =
|
|||
|
||||
void fmradio_i2c_init(void)
|
||||
{
|
||||
imx233_pinctrl_acquire_pin(1, 24, "fmradio i2c");
|
||||
imx233_pinctrl_acquire_pin(1, 22, "fmradio i2c");
|
||||
imx233_set_pin_function(1, 24, PINCTRL_FUNCTION_GPIO);
|
||||
imx233_set_pin_function(1, 22, PINCTRL_FUNCTION_GPIO);
|
||||
fmradio_i2c_bus = i2c_add_node(&fmradio_i2c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue