aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorGao Pan <[email protected]>2015-10-23 20:28:54 +0800
committerWolfram Sang <[email protected]>2015-10-23 21:55:50 +0200
commit1c4b6c3bcf30d0804db0d0647d8ebeb862c6f7e5 (patch)
treea8773ecfa4e4f91be9bb41335d8326f78390fedb /scripts/gcc-plugins/randomize_layout_plugin.c
parent3861841d2205714bfabaee4efcbb5e4202884852 (diff)
i2c: imx: implement bus recovery
Implement bus recovery methods for i2c-imx so we can recover from situations where SCL/SDA are stuck low. Once i2c bus SCL/SDA are stuck low during transfer, config the i2c pinctrl to gpio mode by calling pinctrl sleep set function, and then use GPIO to emulate the i2c protocol to send nine dummy clock to recover i2c device. After recovery, set i2c pinctrl to default group setting. Signed-off-by: Fugang Duan <[email protected]> Signed-off-by: Gao Pan <[email protected]> Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions