From dde73ef3b7996d9687b829ada97a201db5712efa Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Thu, 7 Apr 2016 16:55:37 -0400 Subject: soc: Add support for Parked bits for Tegra210 Tegra210 has a parked bit for each pin. Add code to express this by updating the kernel driver MACROs to add in parked_* fields so that the kernel can handle them as it sees fit. Signed-off-by: Rhyland Klein Signed-off-by: Stephen Warren --- soc-to-kernel-pinctrl-driver.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'soc-to-kernel-pinctrl-driver.py') diff --git a/soc-to-kernel-pinctrl-driver.py b/soc-to-kernel-pinctrl-driver.py index 46547b1..3f69a46 100755 --- a/soc-to-kernel-pinctrl-driver.py +++ b/soc-to-kernel-pinctrl-driver.py @@ -259,6 +259,17 @@ s += '''\ .rcv_sel_bit = %(rcv_sel_val)s ''' % globals() +if soc.soc_pins_all_have_parked: + s += '''\ + .parked_reg = PINGROUP_REG(r), + .parked_bank = %s, + .parked_bit = %s, +''' % (soc.soc_parked_bank, soc.soc_parked_bit) +else: + s+= '''\ + .parked_reg = -1, +''' + if soc.soc_pins_have_hsm: s += '''\ .hsm_bit = PINGROUP_BIT_##hsm(9), @@ -358,6 +369,7 @@ s += '''\ .rcv_sel_bit = -1, .drv_reg = DRV_PINGROUP_REG(r), .drv_bank = 0, + .parked_reg = -1, .hsm_bit = %(hsm_bit_val)s, .schmitt_bit = %(schmitt_bit_val)s, .lpmd_bit = %(lpmd_bit_val)s, -- cgit v1.2.1