Lines Matching +full:pin +full:- +full:val
1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright 2017-2018 NXP
16 #include "pinctrl-imx.h"
25 u32 val; member
36 u32 val; member
55 hdr->ver = IMX_SC_RPC_VERSION; in imx_pinconf_get_scu()
56 hdr->svc = IMX_SC_RPC_SVC_PAD; in imx_pinconf_get_scu()
57 hdr->func = IMX_SC_PAD_FUNC_GET; in imx_pinconf_get_scu()
58 hdr->size = 2; in imx_pinconf_get_scu()
67 *config = resp->val; in imx_pinconf_get_scu()
81 unsigned int val; in imx_pinconf_set_scu() local
89 val = conf | BM_PAD_CTL_IFMUX_ENABLE | BM_PAD_CTL_GP_ENABLE; in imx_pinconf_set_scu()
90 val |= mux << BP_PAD_CTL_IFMUX; in imx_pinconf_set_scu()
92 hdr->ver = IMX_SC_RPC_VERSION; in imx_pinconf_set_scu()
93 hdr->svc = IMX_SC_RPC_SVC_PAD; in imx_pinconf_set_scu()
94 hdr->func = IMX_SC_PAD_FUNC_SET; in imx_pinconf_set_scu()
95 hdr->size = 3; in imx_pinconf_set_scu()
98 msg.val = val; in imx_pinconf_set_scu()
102 dev_dbg(ipctl->dev, "write: pin_id %u config 0x%x val 0x%x\n", in imx_pinconf_set_scu()
103 pin_id, conf, val); in imx_pinconf_set_scu()
110 unsigned int *pin_id, struct imx_pin *pin, in imx_pinctrl_parse_pin_scu() argument
113 const struct imx_pinctrl_soc_info *info = ipctl->info; in imx_pinctrl_parse_pin_scu()
114 struct imx_pin_scu *pin_scu = &pin->conf.scu; in imx_pinctrl_parse_pin_scu()
117 pin->pin = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
118 *pin_id = pin->pin; in imx_pinctrl_parse_pin_scu()
119 pin_scu->mux_mode = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
120 pin_scu->config = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
123 dev_dbg(ipctl->dev, "%s: 0x%x 0x%08lx", info->pins[pin->pin].name, in imx_pinctrl_parse_pin_scu()
124 pin_scu->mux_mode, pin_scu->config); in imx_pinctrl_parse_pin_scu()