Commit 3bcbd1a8 authored by Jianqun Xu's avatar Jianqun Xu Committed by Linus Walleij

gpio/rockchip: support next version gpio controller

The next version gpio controller on SoCs like rk3568 have more write
mask bits for registers.
Signed-off-by: default avatarJianqun Xu <jay.xu@rock-chips.com>
Link: https://lore.kernel.org/r/20210816012123.1119179-1-jay.xu@rock-chips.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ff96a8c2
This diff is collapsed.
...@@ -121,6 +121,7 @@ struct rockchip_drv { ...@@ -121,6 +121,7 @@ struct rockchip_drv {
* @reg_base: register base of the gpio bank * @reg_base: register base of the gpio bank
* @regmap_pull: optional separate register for additional pull settings * @regmap_pull: optional separate register for additional pull settings
* @clk: clock of the gpio bank * @clk: clock of the gpio bank
* @db_clk: clock of the gpio debounce
* @irq: interrupt of the gpio bank * @irq: interrupt of the gpio bank
* @saved_masks: Saved content of GPIO_INTEN at suspend time. * @saved_masks: Saved content of GPIO_INTEN at suspend time.
* @pin_base: first pin number * @pin_base: first pin number
...@@ -146,6 +147,7 @@ struct rockchip_pin_bank { ...@@ -146,6 +147,7 @@ struct rockchip_pin_bank {
void __iomem *reg_base; void __iomem *reg_base;
struct regmap *regmap_pull; struct regmap *regmap_pull;
struct clk *clk; struct clk *clk;
struct clk *db_clk;
int irq; int irq;
u32 saved_masks; u32 saved_masks;
u32 pin_base; u32 pin_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment