提交 523bc382 编写于 作者: S Sundar Iyer 提交者: Linus Walleij

mfd/tc3589x: undo gpio module reset during chip init

Skip putting the GPIO module into a reset during the chip init.  This makes
sure to preserve any existing GPIO configurations done by pre-kernel boot code.
Acked-by: NSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: NSundar Iyer <sundar.iyer@stericsson.com>
Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
上级 bd77efd0
...@@ -231,12 +231,15 @@ static int tc3589x_chip_init(struct tc3589x *tc3589x) ...@@ -231,12 +231,15 @@ static int tc3589x_chip_init(struct tc3589x *tc3589x)
dev_info(tc3589x->dev, "manufacturer: %#x, version: %#x\n", manf, ver); dev_info(tc3589x->dev, "manufacturer: %#x, version: %#x\n", manf, ver);
/* Put everything except the IRQ module into reset */ /*
* Put everything except the IRQ module into reset;
* also spare the GPIO module for any pin initialization
* done during pre-kernel boot
*/
ret = tc3589x_reg_write(tc3589x, TC3589x_RSTCTRL, ret = tc3589x_reg_write(tc3589x, TC3589x_RSTCTRL,
TC3589x_RSTCTRL_TIMRST TC3589x_RSTCTRL_TIMRST
| TC3589x_RSTCTRL_ROTRST | TC3589x_RSTCTRL_ROTRST
| TC3589x_RSTCTRL_KBDRST | TC3589x_RSTCTRL_KBDRST);
| TC3589x_RSTCTRL_GPIRST);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册