aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-tegra114.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/pinctrl-tegra114.c')
-rw-r--r--drivers/pinctrl/pinctrl-tegra114.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/pinctrl/pinctrl-tegra114.c b/drivers/pinctrl/pinctrl-tegra114.c
index 52e4ec6386b4..05e49d5137ab 100644
--- a/drivers/pinctrl/pinctrl-tegra114.c
+++ b/drivers/pinctrl/pinctrl-tegra114.c
@@ -1547,6 +1547,7 @@ static struct tegra_function tegra114_functions[] = {
1547#define DRV_PINGROUP_REG_A 0x868 /* bank 0 */ 1547#define DRV_PINGROUP_REG_A 0x868 /* bank 0 */
1548#define PINGROUP_REG_A 0x3000 /* bank 1 */ 1548#define PINGROUP_REG_A 0x3000 /* bank 1 */
1549 1549
1550#define DRV_PINGROUP_REG(r) ((r) - DRV_PINGROUP_REG_A)
1550#define PINGROUP_REG(r) ((r) - PINGROUP_REG_A) 1551#define PINGROUP_REG(r) ((r) - PINGROUP_REG_A)
1551 1552
1552#define PINGROUP_BIT_Y(b) (b) 1553#define PINGROUP_BIT_Y(b) (b)
@@ -1572,20 +1573,17 @@ static struct tegra_function tegra114_functions[] = {
1572 .tri_reg = PINGROUP_REG(r), \ 1573 .tri_reg = PINGROUP_REG(r), \
1573 .tri_bank = 1, \ 1574 .tri_bank = 1, \
1574 .tri_bit = 4, \ 1575 .tri_bit = 4, \
1575 .einput_bit = PINGROUP_BIT_Y(5), \ 1576 .einput_bit = 5, \
1576 .odrain_bit = PINGROUP_BIT_##od(6), \ 1577 .odrain_bit = PINGROUP_BIT_##od(6), \
1577 .lock_bit = PINGROUP_BIT_Y(7), \ 1578 .lock_bit = 7, \
1578 .ioreset_bit = PINGROUP_BIT_##ior(8), \ 1579 .ioreset_bit = PINGROUP_BIT_##ior(8), \
1579 .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \ 1580 .rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
1580 .drv_reg = -1, \ 1581 .drv_reg = -1, \
1581 } 1582 }
1582 1583
1583#define DRV_PINGROUP_REG(r) ((r) - DRV_PINGROUP_REG_A) 1584#define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b, \
1584 1585 drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, \
1585#define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, \ 1586 slwf_b, slwf_w, drvtype) \
1586 drvdn_b, drvdn_w, drvup_b, drvup_w, \
1587 slwr_b, slwr_w, slwf_b, slwf_w, \
1588 drvtype) \
1589 { \ 1587 { \
1590 .name = "drive_" #pg_name, \ 1588 .name = "drive_" #pg_name, \
1591 .pins = drive_##pg_name##_pins, \ 1589 .pins = drive_##pg_name##_pins, \
@@ -1843,6 +1841,9 @@ static const struct tegra_pinctrl_soc_data tegra114_pinctrl = {
1843 .nfunctions = ARRAY_SIZE(tegra114_functions), 1841 .nfunctions = ARRAY_SIZE(tegra114_functions),
1844 .groups = tegra114_groups, 1842 .groups = tegra114_groups,
1845 .ngroups = ARRAY_SIZE(tegra114_groups), 1843 .ngroups = ARRAY_SIZE(tegra114_groups),
1844 .hsm_in_mux = false,
1845 .schmitt_in_mux = false,
1846 .drvtype_in_mux = false,
1846}; 1847};
1847 1848
1848static int tegra114_pinctrl_probe(struct platform_device *pdev) 1849static int tegra114_pinctrl_probe(struct platform_device *pdev)