/openbmc/linux/drivers/pinctrl/freescale/ |
H A D | pinctrl-imx1-core.c | 72 * register. pin_id is stored in bit (pin_id%16)*2 and the bit above. 76 * Calculates the register offset from a pin_id 78 static void __iomem *imx1_mem(struct imx1_pinctrl *ipctl, unsigned int pin_id) in imx1_mem() argument 80 unsigned int port = pin_id / 32; in imx1_mem() 88 static void imx1_write_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_2bit() argument 91 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_write_2bit() 92 int offset = (pin_id % 16) * 2; /* offset, regardless of register used */ in imx1_write_2bit() 98 if (pin_id % 32 >= 16) in imx1_write_2bit() 110 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 115 static void imx1_write_bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_bit() argument [all …]
|
H A D | pinctrl-scu.c | 60 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_scu() argument 73 msg.pad = pin_id; in imx_pinconf_get_scu() 86 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_set_scu() argument 105 wmsg.pad = pin_id; in imx_pinconf_set_scu() 109 dev_dbg(ipctl->dev, "wakeup pin_id: %d type: %ld\n", in imx_pinconf_set_scu() 110 pin_id, *configs); in imx_pinconf_set_scu() 128 msg.pad = pin_id; 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() 134 pin_id, conf, val); in imx_pinconf_set_scu() 141 unsigned int *pin_id, struct imx_pin *pin, in imx_pinctrl_parse_pin_scu() argument [all …]
|
H A D | pinctrl-imx.h | 48 * @pin: the pin_id of this pin 98 int (*imx_pinconf_get)(struct pinctrl_dev *pctldev, unsigned int pin_id, 100 int (*imx_pinconf_set)(struct pinctrl_dev *pctldev, unsigned int pin_id, 103 unsigned int *pin_id, struct imx_pin *pin, 128 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, 130 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, 133 unsigned int *pin_id, struct imx_pin *pin,
|
H A D | pinctrl-imx.c | 171 unsigned int pin_id; in imx_pmx_set_one_pin_mmio() local 173 pin_id = pin->pin; in imx_pmx_set_one_pin_mmio() 174 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio() 178 info->pins[pin_id].name); in imx_pmx_set_one_pin_mmio() 295 static int imx_pinconf_get_mmio(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_mmio() argument 300 const struct imx_pin_reg *pin_reg = &ipctl->pin_regs[pin_id]; in imx_pinconf_get_mmio() 304 info->pins[pin_id].name); in imx_pinconf_get_mmio() 317 unsigned pin_id, unsigned long *config) in imx_pinconf_get() argument 323 return info->imx_pinconf_get(pctldev, pin_id, config); in imx_pinconf_get() 325 return imx_pinconf_get_mmio(pctldev, pin_id, config); in imx_pinconf_get() [all …]
|
H A D | pinctrl-imx1.h | 18 * @pin_id: ID of the described pin. 23 unsigned int pin_id; member
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-at91-pio4.c | 68 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK) argument 69 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK) argument 98 unsigned int pin_id; member 115 * @pins: pins table used for both pinctrl and gpio. pin_id, bank and line 449 unsigned int pin_id) in atmel_pin_config_read() argument 452 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_read() 453 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_read() 465 unsigned int pin_id, u32 conf) in atmel_pin_config_write() argument 468 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_write() 469 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_write() [all …]
|
H A D | pinctrl-digicolor.c | 297 int pin_id = i*PINS_PER_COLLECTION + j; in dc_pinctrl_probe() local 298 char *name = &pin_names[pin_id * name_len]; in dc_pinctrl_probe() 302 pins[pin_id].number = pin_id; in dc_pinctrl_probe() 303 pins[pin_id].name = name; in dc_pinctrl_probe() 304 pmap->pin_names[pin_id] = name; in dc_pinctrl_probe()
|
H A D | pinctrl-st.c | 422 int pin_id, int function) in st_pctl_set_function() argument 426 int pin = st_gpio_pin(pin_id); in st_pctl_set_function() 969 static int st_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin_id, in st_pinconf_set() argument 972 int pin = st_gpio_pin(pin_id); in st_pinconf_set() 974 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_set() 986 unsigned pin_id, unsigned long *config) in st_pinconf_get() argument 988 int pin = st_gpio_pin(pin_id); in st_pinconf_get() 990 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_get() 1000 struct seq_file *s, unsigned pin_id) in st_pinconf_dbg_show() argument 1005 int offset = st_gpio_pin(pin_id); in st_pinconf_dbg_show() [all …]
|
H A D | pinctrl-at91.c | 982 unsigned pin_id, unsigned long *config) in at91_pinconf_get() argument 991 dev_dbg(info->dev, "%s:%d, pin_id=%d", __func__, __LINE__, pin_id); in at91_pinconf_get() 992 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_get() 997 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_get() 1025 unsigned pin_id, unsigned long *configs, in at91_pinconf_set() argument 1039 "%s:%d, pin_id=%d, config=0x%lx", in at91_pinconf_set() 1040 __func__, __LINE__, pin_id, config); in at91_pinconf_set() 1041 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_set() 1046 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_set() 1097 struct seq_file *s, unsigned pin_id) in at91_pinconf_dbg_show() argument [all …]
|
H A D | pinctrl-equilibrium.c | 707 unsigned int *pinmux, pin_id, pinmux_id; in eqbr_build_groups() local 740 if (of_property_read_u32_index(np, "pins", j, &pin_id)) { in eqbr_build_groups() 746 if (pin_id >= drvdata->pctl_desc.npins) { in eqbr_build_groups() 748 group.name, j, pin_id); in eqbr_build_groups() 752 group.pins[j] = pin_id; in eqbr_build_groups()
|
H A D | pinctrl-as3722.c | 144 #define AS3722_PINGROUP(pg_name, pin_id) \ argument 147 .pins = {AS3722_PIN_##pin_id}, \
|
H A D | pinctrl-max77620.c | 158 #define MAX77620_PINGROUP(pg_name, pin_id, option) \ argument 161 .pins = {MAX77620_##pin_id}, \
|
/openbmc/u-boot/arch/arm/mach-imx/imx8/ |
H A D | iomux.c | 18 sc_pad_t pin_id = pad & PIN_ID_MASK; in imx8_iomux_setup_pad() local 26 ret = sc_pad_set(-1, pin_id, val); in imx8_iomux_setup_pad() 28 printf("sc_pad_set failed!, pin: %u, val: 0x%x\n", pin_id, val); in imx8_iomux_setup_pad() 30 debug("iomux: pin %d, val = 0x%x\n", pin_id, val); in imx8_iomux_setup_pad()
|
/openbmc/u-boot/drivers/pinctrl/nxp/ |
H A D | pinctrl-scu.c | 46 int pin_id, mux, config_val; in imx_pinctrl_scu_conf_pins() local 55 pin_id = pin_data[j++]; in imx_pinctrl_scu_conf_pins() 59 ret = imx_pinconf_scu_set(info, pin_id, mux, config_val); in imx_pinctrl_scu_conf_pins() 61 printf("Set pin %d, mux %d, val %d, error\n", pin_id, in imx_pinctrl_scu_conf_pins()
|
/openbmc/linux/drivers/pinctrl/sprd/ |
H A D | pinctrl-sprd.c | 315 unsigned int pin_id; in sprd_dt_node_to_map() local 318 pin_id = grp->pins[0]; in sprd_dt_node_to_map() 319 group_or_pin = pin_get_name(pctldev, pin_id); in sprd_dt_node_to_map() 418 unsigned int pin_id = grp->pins[i]; in sprd_pmx_set_mux() local 419 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pmx_set_mux() 440 static int sprd_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_get() argument 444 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_get() 592 static int sprd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_set() argument 596 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_set() 749 unsigned int pin_id; in sprd_pinconf_group_get() local [all …]
|
/openbmc/linux/drivers/pinctrl/nxp/ |
H A D | pinctrl-s32cc.c | 66 * @pin_id: Pin ID for this GPIO 71 unsigned int pin_id; member 393 gpio_pin->pin_id = offset; in s32_pmx_gpio_request_enable() 418 if (gpio_pin->pin_id == offset) { in s32_pmx_gpio_disable_free() 419 ret = s32_regmap_write(pctldev, gpio_pin->pin_id, in s32_pmx_gpio_disable_free() 558 unsigned int pin_id, in s32_pinconf_mscr_update() argument 566 ret = s32_check_pin(pctldev, pin_id); in s32_pinconf_mscr_update() 571 pin_get_name(pctldev, pin_id), num_configs); in s32_pinconf_mscr_update() 582 dev_dbg(ipctl->dev, "update: pin %u cfg 0x%x\n", pin_id, config); in s32_pinconf_mscr_update() 584 return s32_regmap_update(pctldev, pin_id, mask, config); in s32_pinconf_mscr_update() [all …]
|
/openbmc/u-boot/arch/arm/mach-at91/include/mach/ |
H A D | atmel_pio4.h | 62 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK) argument 63 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK) argument
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | fsl,scu-pinctrl.yaml | 38 and pad setting for the pin. The first 2 integers - pin_id and mux_val - are 47 "pin_id" indicates the pin ID
|
H A D | nxp,s32g2-siul2-pinctrl.yaml | 75 a device. Each integer consists of a PIN_ID and a 4-bit 77 calculated as: pinmux = (PIN_ID << 4 | SSS)
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ptp.c | 443 int pin_id; in bnxt_ptp_enable() local 449 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_EXTTS, in bnxt_ptp_enable() 451 if (!TSIO_PIN_VALID(pin_id)) in bnxt_ptp_enable() 455 rc = bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_PPS_IN); in bnxt_ptp_enable() 460 ptp->pps_info.pins[pin_id].event = BNXT_PPS_EVENT_EXTERNAL; in bnxt_ptp_enable() 464 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_PEROUT, in bnxt_ptp_enable() 466 if (!TSIO_PIN_VALID(pin_id)) in bnxt_ptp_enable() 471 rc = bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_PPS_OUT); in bnxt_ptp_enable() 490 return bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_NONE); in bnxt_ptp_enable()
|
/openbmc/skeleton/libopenbmc_intf/ |
H A D | gpio.c | 335 int pin_id = convert_gpio_to_num(pin->valuestring); in gpio_get_params() local 336 if (pin_id < 0) in gpio_get_params() 340 gpio->num = (size_t) pin_id; in gpio_get_params()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomfwctrl.c | 180 const uint32_t pin_id, in pp_atomfwctrl_lookup_gpio_pin() argument 193 if (pin_id == pin_assignment->gpio_id) { in pp_atomfwctrl_lookup_gpio_pin() 209 const uint32_t pin_id, in pp_atomfwctrl_get_pp_assign_pin() argument 222 pin_id, gpio_pin_assignment); in pp_atomfwctrl_get_pp_assign_pin()
|
H A D | ppatomfwctrl.h | 221 bool pp_atomfwctrl_get_pp_assign_pin(struct pp_hwmgr *hwmgr, const uint32_t pin_id,
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-pcm.c | 1301 struct skl_module_inst_id *pin_id; in skl_get_module_info() local 1336 pin_id = &mconfig->m_in_pin[i].id; in skl_get_module_info() 1337 if (guid_equal(&pin_id->mod_uuid, &module->uuid)) in skl_get_module_info() 1338 pin_id->module_id = module->id; in skl_get_module_info() 1342 pin_id = &mconfig->m_out_pin[i].id; in skl_get_module_info() 1343 if (guid_equal(&pin_id->mod_uuid, &module->uuid)) in skl_get_module_info() 1344 pin_id->module_id = module->id; in skl_get_module_info()
|
/openbmc/linux/sound/soc/intel/catpt/ |
H A D | pcm.c | 903 enum catpt_pin_id pin_id) in catpt_stream_volume_get() argument 914 stream = catpt_stream_find(cdev, pin_id); in catpt_stream_volume_get() 938 enum catpt_pin_id pin_id) in catpt_stream_volume_put() argument 947 stream = catpt_stream_find(cdev, pin_id); in catpt_stream_volume_put()
|