mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
picntrl: rockchip: fix pull register offset for rk1808
Change-Id: Ie7f6c1129e831fed1fad5751039a99e98a493f9e Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
@@ -2001,6 +2001,7 @@ static void rk1808_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank,
|
||||
} else {
|
||||
*reg = RK1808_PULL_GRF_OFFSET;
|
||||
*regmap = info->regmap_base;
|
||||
*reg += (bank->bank_num - 1) * RK1808_PULL_BANK_STRIDE;
|
||||
}
|
||||
|
||||
*reg += ((pin_num / RK1808_PULL_PINS_PER_REG) * 4);
|
||||
|
||||
Reference in New Issue
Block a user