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:
David Wu
2018-10-12 17:59:18 +08:00
committed by Tao Huang
parent 9995649b15
commit 0d9f037d82

View File

@@ -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);