Lines Matching +full:imx +full:- +full:scu
1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright 2017-2018 NXP
9 #include <linux/firmware/imx/sci.h>
16 #include "pinctrl-imx.h"
68 hdr->ver = IMX_SC_RPC_VERSION; in imx_pinconf_get_scu()
69 hdr->svc = IMX_SC_RPC_SVC_PAD; in imx_pinconf_get_scu()
70 hdr->func = IMX_SC_PAD_FUNC_GET; in imx_pinconf_get_scu()
71 hdr->size = 2; in imx_pinconf_get_scu()
80 *config = resp->val; in imx_pinconf_get_scu()
101 hdr->ver = IMX_SC_RPC_VERSION; in imx_pinconf_set_scu()
102 hdr->svc = IMX_SC_RPC_SVC_PAD; in imx_pinconf_set_scu()
103 hdr->func = IMX_SC_PAD_FUNC_SET_WAKEUP; in imx_pinconf_set_scu()
104 hdr->size = 2; in imx_pinconf_set_scu()
109 dev_dbg(ipctl->dev, "wakeup pin_id: %d type: %ld\n", in imx_pinconf_set_scu()
123 hdr->ver = IMX_SC_RPC_VERSION; in imx_pinconf_set_scu()
124 hdr->svc = IMX_SC_RPC_SVC_PAD; in imx_pinconf_set_scu()
125 hdr->func = IMX_SC_PAD_FUNC_SET; in imx_pinconf_set_scu()
126 hdr->size = 3; in imx_pinconf_set_scu()
133 dev_dbg(ipctl->dev, "write: pin_id %u config 0x%x val 0x%x\n", in imx_pinconf_set_scu()
144 const struct imx_pinctrl_soc_info *info = ipctl->info; in imx_pinctrl_parse_pin_scu()
145 struct imx_pin_scu *pin_scu = &pin->conf.scu; in imx_pinctrl_parse_pin_scu()
148 pin->pin = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
149 *pin_id = pin->pin; in imx_pinctrl_parse_pin_scu()
150 pin_scu->mux_mode = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
151 pin_scu->config = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_scu()
154 dev_dbg(ipctl->dev, "%s: 0x%x 0x%08lx", info->pins[pin->pin].name, in imx_pinctrl_parse_pin_scu()
155 pin_scu->mux_mode, pin_scu->config); in imx_pinctrl_parse_pin_scu()
160 MODULE_DESCRIPTION("NXP i.MX SCU common pinctrl driver");