Lines Matching +full:g5 +full:- +full:pinctrl
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/pinctrl.h>
13 #include <dm/pinctrl.h>
31 priv->scu = ast_get_scu(); in ast2500_pinctrl_probe()
38 /* Control register number (1-10) */
68 debug("PINCTRL: get_(functions/groups)_count\n"); in ast2500_pinctrl_get_groups_count()
76 debug("PINCTRL: get_(function/group)_name %u\n", selector); in ast2500_pinctrl_get_group_name()
88 debug("PINCTRL: group_set <%u, %u>\n", selector, func_selector); in ast2500_pinctrl_group_set()
90 return -EINVAL; in ast2500_pinctrl_group_set()
93 if (config->reg_num > 6) in ast2500_pinctrl_group_set()
94 ctrl_reg = &priv->scu->pinmux_ctrl1[config->reg_num - 7]; in ast2500_pinctrl_group_set()
96 ctrl_reg = &priv->scu->pinmux_ctrl[config->reg_num - 1]; in ast2500_pinctrl_group_set()
98 ast_scu_unlock(priv->scu); in ast2500_pinctrl_group_set()
99 setbits_le32(ctrl_reg, config->ctrl_bit_mask); in ast2500_pinctrl_group_set()
100 ast_scu_lock(priv->scu); in ast2500_pinctrl_group_set()
115 { .compatible = "aspeed,ast2500-pinctrl" },
116 { .compatible = "aspeed,g5-pinctrl" },