/device/soc/rockchip/common/sdk_linux/drivers/gpio/ |
D | Makefile | 15 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o 16 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o 19 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o 21 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o 22 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o 23 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o 24 obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o 25 obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o 26 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o 27 obj-$(CONFIG_GPIO_ADP5520) += gpio-adp5520.o [all …]
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/ |
D | duet_gpio.c | 66 int32_t duet_gpio_init(duet_gpio_dev_t *gpio) in duet_gpio_init() argument 69 if (NULL == gpio) { in duet_gpio_init() 73 if (gpio->port < 8) { in duet_gpio_init() 74 reg_value = REG_RD(PINMUX_CTRL_REG0) & (~(0x0000000F << (4 * gpio->port))); in duet_gpio_init() 75 REG_WR(PINMUX_CTRL_REG0, (reg_value | (GPIO_PINMUX_FUN[gpio->port] << (4 * gpio->port)))); in duet_gpio_init() 76 } else if (gpio->port < 16) { in duet_gpio_init() 77 reg_value = REG_RD(PINMUX_CTRL_REG1) & (~(0x0000000F << (4 * (gpio->port - 8)))); in duet_gpio_init() 78 … REG_WR(PINMUX_CTRL_REG1, (reg_value | (GPIO_PINMUX_FUN[gpio->port] << (4 * (gpio->port - 8))))); in duet_gpio_init() 79 } else if (gpio->port < 24) { in duet_gpio_init() 80 reg_value = REG_RD(PINMUX_CTRL_REG2) & (~(0x0000000F << (4 * (gpio->port - 16)))); in duet_gpio_init() [all …]
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
D | osal_gpio.c | 29 int osal_gpio_get_direction(unsigned int gpio) in osal_gpio_get_direction() argument 34 ret_val = gpio_request(gpio, NULL); in osal_gpio_get_direction() 36 osal_printk("[%s]:request gpio[No:%u] failed.\n", __FUNCTION__, gpio); in osal_gpio_get_direction() 40 desc = gpio_to_desc(gpio); in osal_gpio_get_direction() 43 gpio_free(gpio); in osal_gpio_get_direction() 50 gpio_free(gpio); in osal_gpio_get_direction() 54 gpio_free(gpio); in osal_gpio_get_direction() 60 int osal_gpio_set_direction(unsigned int gpio, unsigned int dir) in osal_gpio_set_direction() argument 69 ret = gpio_request(gpio, NULL); in osal_gpio_set_direction() 71 osal_printk("[%s]:request gpio[No:%d] failed.\n", __FUNCTION__, gpio); in osal_gpio_set_direction() [all …]
|
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/ |
D | pwm.h | 24 #define get_pwmid(gpio) (((gpio)==PWM_PWM0_PB4) ? 0 : ( \ argument 25 ((gpio)==PWM_PWM0_PC0) ? 0 : ( \ 26 ((gpio)==PWM_PWM0_PE3) ? 0 : ( \ 27 ((gpio)==PWM_PWM0_N_PD0) ? 0 : ( \ 28 ((gpio)==PWM_PWM1_PB5) ? 1 : ( \ 29 ((gpio)==PWM_PWM1_PE1) ? 1 : ( \ 30 ((gpio)==PWM_PWM1_N_PD1) ? 1 : ( \ 31 ((gpio)==PWM_PWM2_PB7) ? 2 : ( \ 32 ((gpio)==PWM_PWM2_PE2) ? 2 : ( \ 33 ((gpio)==PWM_PWM2_N_PD2) ? 2 : ( \ [all …]
|
/device/board/beken/bk7235x/hdf/src/ |
D | bk_gpio_driver.c | 56 static uint32_t GpioGetHwPin(uint16_t gpio) in GpioGetHwPin() argument 58 if (gpio >= g_gpioCnt) in GpioGetHwPin() 61 return g_gpioPinMap[gpio].pin; in GpioGetHwPin() 75 static int32_t GpioDevWrite(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t val) in GpioDevWrite() argument 77 HDF_LOGI("call %s %d", __func__, gpio); in GpioDevWrite() 78 if (gpio >= g_gpioCnt || g_gpioPinMap[gpio].pin == INVALID_PIN) { in GpioDevWrite() 79 HDF_LOGE("invalid gpio %d\n", gpio); in GpioDevWrite() 84 bk_gpio_set_output_high(GpioGetHwPin(gpio)); in GpioDevWrite() 86 bk_gpio_set_output_low(GpioGetHwPin(gpio)); in GpioDevWrite() 89 static int32_t GpioDevRead(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *val) in GpioDevRead() argument [all …]
|
/device/soc/rockchip/rk2206/hdf_driver/gpio/ |
D | gpio_driver.c | 47 static int32_t iodrv_initgpio(uint16_t gpio) in iodrv_initgpio() argument 49 GpioID gpio_id = (GpioID)(gpio); in iodrv_initgpio() 51 if (gpio >= GPIO_MAXSIZE) { in iodrv_initgpio() 52 PRINT_ERR("%s: gpio(%d) >= GPIO_MAXSIZE(%d)", __func__, gpio, GPIO_MAXSIZE); in iodrv_initgpio() 56 if (m_gpio_init_flag[gpio] == 1) { in iodrv_initgpio() 62 m_gpio_init_flag[gpio] = 1; in iodrv_initgpio() 67 static int32_t iodrv_setdir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir) in iodrv_setdir() argument 73 if (gpio >= cntlr->count) { in iodrv_setdir() 74 PRINT_ERR("%s: gpio(%d) >= cntlr->count(%d)", __func__, gpio, cntlr->count); in iodrv_setdir() 82 GpioID gpio_id = (GpioID)(gpio); in iodrv_setdir() [all …]
|
/device/board/talkweb/niobe407/applications/201_hdf_gpio_key/ |
D | README_zh.md | 18 [*] Enable HDF platform gpio driver 43 [HDF:E/HDF_LOG_TAG]TestCaseGpioIrqHandler1: irq triggered! on gpio:2, data=(nil) 45 [HDF:E/HDF_LOG_TAG]TestCaseGpioIrqHandler1: irq triggered! on gpio:2, data=(nil) 47 [HDF:E/HDF_LOG_TAG]TestCaseGpioIrqHandler2: irq triggered! on gpio:3, data=(nil) 61 template deviceNode { //gpio信息的模板,集成模板可以缺省 88 - hdf_gpio.hcs解析 在/device/board/talkweb/niobe407/sdk/hdf_config/目录下,配置具体gpio引脚的信息 97 group = [4, 4, 4, 4]; // gpio引脚所属的group 0到8 分别对应GPIOA~GPIOI,此例4个gpio属于GPIOE 101 …pinNum = 4; //总注册gpio个数 如果发现因为加载的gpio个数过多导致无法申请到锁资源,可修改target_config.h中的LOSCFG_BASE_IPC_MUX_LIMIT … 103 alternate = [0, 0, 0, 0]; // 对应的stm32的管脚复用功能gpio作为每种外设都对应一种复用功能(0-15,具体参考编程手册) 112 int32_t GpioRead(uint16_t gpio, uint16_t *val); [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/power/supply/ |
D | axp2202_gpio_power.c | 109 chg_dev->axp_acin_det.gpio); in axp_acin_gpio_isr() 130 chg_dev->axp_vbus_det.gpio); in axp_vbus_det_isr() 166 if (!gpio_is_valid(chg_dev->axp_acin_det.gpio)) { in axp_acin_gpio_init() 171 if (!gpio_is_valid(chg_dev->usbid_drv.gpio)) { in axp_acin_gpio_init() 176 if (!gpio_is_valid(chg_dev->axp_vbus_det.gpio)) { in axp_acin_gpio_init() 182 chg_dev->axp_acin_det.gpio, chg_dev->usbid_drv.gpio, chg_dev->axp_vbus_det.gpio); in axp_acin_gpio_init() 185 chg_dev->axp_acin_det.gpio, in axp_acin_gpio_init() 194 chg_dev->usbid_drv.gpio, in axp_acin_gpio_init() 203 chg_dev->axp_vbus_det.gpio, in axp_acin_gpio_init() 214 gpio_direction_input(chg_dev->axp_acin_det.gpio); in axp_acin_gpio_init() [all …]
|
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/ext_driver/ |
D | ext_gpio.c | 26 void gpio_setup_up_down_resistor(gpio_pin_e gpio, gpio_pull_type up_down) in gpio_setup_up_down_resistor() argument 29 …unsigned char base_ana_reg = 0x0e + ((gpio >> 8) << 1) + ((gpio & 0xf0) ? 1 : 0); // group = gpio… in gpio_setup_up_down_resistor() 32 if (gpio & 0x11) { in gpio_setup_up_down_resistor() 35 } else if (gpio & 0x22) { in gpio_setup_up_down_resistor() 38 } else if (gpio & 0x44) { in gpio_setup_up_down_resistor() 41 } else if (gpio & 0x88) { in gpio_setup_up_down_resistor() 48 if (GPIO_DP == gpio) { in gpio_setup_up_down_resistor()
|
/device/soc/rockchip/rk3588/kernel/net/rfkill/ |
D | rfkill-bt.c | 131 struct rfkill_rk_gpio *gpio, const char *prefix, in rfkill_rk_setup_gpio() argument 134 if (gpio_is_valid(gpio->io)) { in rfkill_rk_setup_gpio() 137 sprintf(gpio->name, "%s_%s", prefix, name); in rfkill_rk_setup_gpio() 138 ret = devm_gpio_request(&pdev->dev, gpio->io, gpio->name); in rfkill_rk_setup_gpio() 140 LOG("Failed to get %s gpio.\n", gpio->name); in rfkill_rk_setup_gpio() 155 ret = rfkill_rk_setup_gpio(rfkill->pdev, &irq->gpio, in rfkill_rk_setup_wake_irq() 160 if (gpio_is_valid(irq->gpio.io)) { in rfkill_rk_setup_wake_irq() 166 irq->irq = gpio_to_irq(irq->gpio.io); in rfkill_rk_setup_wake_irq() 167 sprintf(irq->name, "%s_irq", irq->gpio.name); in rfkill_rk_setup_wake_irq() 169 (irq->gpio.enable == GPIO_ACTIVE_LOW) ? in rfkill_rk_setup_wake_irq() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/_net/ |
D | rfkill-bt.c | 131 struct rfkill_rk_gpio *gpio, const char *prefix, in rfkill_rk_setup_gpio() argument 134 if (gpio_is_valid(gpio->io)) { in rfkill_rk_setup_gpio() 137 sprintf(gpio->name, "%s_%s", prefix, name); in rfkill_rk_setup_gpio() 138 ret = devm_gpio_request(&pdev->dev, gpio->io, gpio->name); in rfkill_rk_setup_gpio() 140 LOG("Failed to get %s gpio.\n", gpio->name); in rfkill_rk_setup_gpio() 155 ret = rfkill_rk_setup_gpio(rfkill->pdev, &irq->gpio, in rfkill_rk_setup_wake_irq() 160 if (gpio_is_valid(irq->gpio.io)) { in rfkill_rk_setup_wake_irq() 166 irq->irq = gpio_to_irq(irq->gpio.io); in rfkill_rk_setup_wake_irq() 167 sprintf(irq->name, "%s_irq", irq->gpio.name); in rfkill_rk_setup_wake_irq() 169 (irq->gpio.enable == GPIO_ACTIVE_LOW) ? in rfkill_rk_setup_wake_irq() [all …]
|
/device/soc/rockchip/common/vendor/drivers/net/ |
D | rfkill-bt.c | 124 static int rfkill_rk_setup_gpio(struct platform_device *pdev, struct rfkill_rk_gpio *gpio, const ch… in rfkill_rk_setup_gpio() argument 127 if (gpio_is_valid(gpio->io)) { in rfkill_rk_setup_gpio() 130 sprintf(gpio->name, "%s_%s", prefix, name); in rfkill_rk_setup_gpio() 131 ret = devm_gpio_request(&pdev->dev, gpio->io, gpio->name); in rfkill_rk_setup_gpio() 133 LOG("Failed to get %s gpio.\n", gpio->name); in rfkill_rk_setup_gpio() 148 ret = rfkill_rk_setup_gpio(rfkill->pdev, &irq->gpio, rfkill->pdata->name, "wake_host"); in rfkill_rk_setup_wake_irq() 153 if (gpio_is_valid(irq->gpio.io)) { in rfkill_rk_setup_wake_irq() 159 irq->irq = gpio_to_irq(irq->gpio.io); in rfkill_rk_setup_wake_irq() 160 sprintf(irq->name, "%s_irq", irq->gpio.name); in rfkill_rk_setup_wake_irq() 162 … (irq->gpio.enable == GPIO_ACTIVE_LOW) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING, irq->name, in rfkill_rk_setup_wake_irq() [all …]
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/ |
D | hpm_gpiom_drv.h | 60 gpiom_gpio_t gpio) in gpiom_set_pin_controller() argument 64 | GPIOM_PIN_SELECT_SET(gpio); in gpiom_set_pin_controller() 81 gpiom_gpio_t gpio) in gpiom_check_pin_visibility() argument 83 return (ptr->ASSIGN[gpio_index].PIN[pin_index] & ((1 << gpio) << GPIOM_PIN_HIDE_SHIFT)) in gpiom_check_pin_visibility() 84 >> GPIOM_PIN_HIDE_SHIFT >> gpio == gpiom_pin_visible; in gpiom_check_pin_visibility() 98 gpiom_gpio_t gpio) in gpiom_enable_pin_visibility() argument 101 (ptr->ASSIGN[gpio_index].PIN[pin_index] & ~((1 << gpio) << GPIOM_PIN_HIDE_SHIFT)); in gpiom_enable_pin_visibility() 115 gpiom_gpio_t gpio) in gpiom_disable_pin_visibility() argument 118 (ptr->ASSIGN[gpio_index].PIN[pin_index] & ~((1 << gpio) << GPIOM_PIN_HIDE_SHIFT)) in gpiom_disable_pin_visibility() 119 | GPIOM_PIN_HIDE_SET(1 << gpio); in gpiom_disable_pin_visibility()
|
/device/soc/st/common/platform/gpio/ |
D | stm32mp1_gpio.c | 24 static inline uint16_t Mp1xxToGroupNum(uint16_t gpio) in Mp1xxToGroupNum() argument 26 return (uint16_t)(gpio / g_Mp1xxGpioCntlr.bitNum); in Mp1xxToGroupNum() 29 static inline uint16_t Mp1xxToBitNum(uint16_t gpio) in Mp1xxToBitNum() argument 31 return (uint16_t)(gpio % g_Mp1xxGpioCntlr.bitNum); in Mp1xxToBitNum() 38 static int32_t Mp1xxGetGroupByGpioNum(struct GpioCntlr *cntlr, uint16_t gpio, struct GpioGroup **gr… in Mp1xxGetGroupByGpioNum() argument 41 uint16_t groupIndex = Mp1xxToGroupNum(gpio); in Mp1xxGetGroupByGpioNum() 57 static int32_t Mp1xxGpioSetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir) in Mp1xxGpioSetDir() argument 64 unsigned int bitNum = Mp1xxToBitNum(gpio); in Mp1xxGpioSetDir() 67 ret = Mp1xxGetGroupByGpioNum(cntlr, gpio, &group); in Mp1xxGpioSetDir() 89 static int32_t Mp1xxGpioGetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *dir) in Mp1xxGpioGetDir() argument [all …]
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/inc/ |
D | duet_gpio.h | 108 int32_t duet_gpio_init(duet_gpio_dev_t *gpio); 119 int32_t duet_gpio_output_high(duet_gpio_dev_t *gpio); 130 int32_t duet_gpio_output_low(duet_gpio_dev_t *gpio); 140 int32_t duet_gpio_output_toggle(duet_gpio_dev_t *gpio); 151 int32_t duet_gpio_input_get(duet_gpio_dev_t *gpio, uint32_t *value); 165 int32_t duet_gpio_enable_irq(duet_gpio_dev_t *gpio, duet_gpio_irq_trigger_t trigger, 177 int32_t duet_gpio_disable_irq(duet_gpio_dev_t *gpio); 188 int32_t duet_gpio_clear_irq(duet_gpio_dev_t *gpio); 197 int32_t duet_gpio_finalize(duet_gpio_dev_t *gpio);
|
/device/soc/st/stm32f407zg/uniproton/board/hdf_platform/src/ |
D | gpio_stm32f407.c | 168 static int32_t GpioDevWrite(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t val); 169 static int32_t GpioDevRead(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *val); 170 static int32_t GpioDevSetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir); 171 static int32_t GpioDevGetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *dir); 172 static int32_t GpioDevSetIrq(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t mode); 173 static int32_t GpioDevUnSetIrq(struct GpioCntlr *cntlr, uint16_t gpio); 174 static int32_t GpioDevEnableIrq(struct GpioCntlr *cntlr, uint16_t gpio); 175 static int32_t GpioDevDisableIrq(struct GpioCntlr *cntlr, uint16_t gpio); 195 static int32_t GpioDevWrite(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t val) in GpioDevWrite() argument 197 uint16_t realPin = g_gpioPinsMap[gpio].realPin; in GpioDevWrite() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/lcd_fb/ |
D | lcd_fb_intf.c | 160 int gpio; in lcd_fb_script_get_item() local 164 gpio_info->gpio = -1; in lcd_fb_script_get_item() 167 gpio = of_get_named_gpio_flags(node, sub_name, 0, &flags); in lcd_fb_script_get_item() 168 if (!gpio_is_valid(gpio)) in lcd_fb_script_get_item() 171 gpio_info->gpio = gpio; in lcd_fb_script_get_item() 175 gpio_info->gpio, gpio_info->value); in lcd_fb_script_get_item() 199 if (!gpio_is_valid(gpio_info->gpio)) { in lcd_fb_gpio_request() 200 lcd_fb_wrn("%s: gpio (%d) is invalid\n", __func__, gpio_info->gpio); in lcd_fb_gpio_request() 203 ret = gpio_direction_output(gpio_info->gpio, gpio_info->value); in lcd_fb_gpio_request() 206 gpio_info->name, gpio_info->gpio, gpio_info->value, ret); in lcd_fb_gpio_request() [all …]
|
/device/soc/telink/b91/hdf/ |
D | gpio_telink.c | 96 #define RETURN_ERR_IF_OUT_OF_RANGE(gpio) … argument 98 …if (gpio >= pB91GpioCntlr->pinNum) { … 101 …if (pB91GpioCntlr->pinReflectionMap[gpio] >= GPIO_INDEX_MAX) { … 120 static int32_t GpioDevWrite(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t val); 121 static int32_t GpioDevRead(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *val); 122 static int32_t GpioDevSetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t dir); 123 static int32_t GpioDevGetDir(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t *dir); 267 static int32_t GpioDevWrite(struct GpioCntlr *cntlr, uint16_t gpio, uint16_t val) in GpioDevWrite() argument 272 RETURN_ERR_IF_OUT_OF_RANGE(gpio); in GpioDevWrite() 274 gpio_pin_e gpioPin = g_GpioIndexToActualPin[pB91GpioCntlr->pinReflectionMap[gpio]]; in GpioDevWrite() [all …]
|
/device/soc/hpmicro/hcs/config_template/ |
D | gpio.hcs | 6 name = ""; /* gpio controler name */ 7 port_num = 0; /* gpio controler number, eg: PA is 0, PB is 1, .... */ 8 irq_num = 0; /* gpio controler irq number */ 9 start = 0; /* gpio pin start number for driver(gpio pin is <start + pin_offset>) */ 10 count = 32; /* gpio pin count */
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/ |
D | init-input.c | 111 data->ctp_power_io.gpio = of_get_named_gpio_flags(np, "ctp_power_io", 0, in sunxi_ctp_startup() 113 if (!gpio_is_valid(data->ctp_power_io.gpio)) in sunxi_ctp_startup() 116 data->wakeup_gpio.gpio = of_get_named_gpio_flags(np, "ctp_wakeup", 0, in sunxi_ctp_startup() 118 if (!gpio_is_valid(data->wakeup_gpio.gpio)) in sunxi_ctp_startup() 144 data->irq_gpio.gpio = of_get_named_gpio_flags(np, "ctp_int_port", 0, in sunxi_ctp_startup() 146 if (!gpio_is_valid(data->irq_gpio.gpio)) in sunxi_ctp_startup() 149 data->int_number = data->irq_gpio.gpio; in sunxi_ctp_startup() 157 data->key_light_gpio.gpio = of_get_named_gpio(np, "ctp_light", 0); in sunxi_ctp_startup() 158 if (!gpio_is_valid(data->key_light_gpio.gpio)) in sunxi_ctp_startup() 177 gpio_free(data->wakeup_gpio.gpio); in sunxi_ctp_free() [all …]
|
/device/soc/rockchip/rk2206/adapter/hals/iot_hardware/wifiiot_lite/ |
D | hal_iot_pwm.c | 45 .gpio = GPIO0_PB4, 59 .pwm = {.gpio = GPIO0_PB5, 74 .gpio = GPIO0_PB6, 89 .gpio = GPIO0_PC0, 104 .gpio = GPIO0_PC1, 119 .gpio = GPIO0_PC2, 134 .gpio = GPIO0_PC3, 149 .gpio = GPIO0_PC4, 164 .gpio = GPIO0_PC5, 179 .gpio = GPIO0_PC6, [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/modules/sensor_power/ |
D | sensor_power.c | 67 int *gpio) in sensor_get_gpio_info() argument 74 *gpio = -1; in sensor_get_gpio_info() 78 *gpio = gnum; in sensor_get_gpio_info() 79 sensor_power_dbg("fetch %s gpio = %d\n", name, *gpio); in sensor_get_gpio_info() 89 gc = sensor_power->gpio[gpio_id]; in sensor_gpio_set_status() 104 static int sensor_os_gpio_write(u32 gpio, __u32 out_value) in sensor_os_gpio_write() argument 106 if (gpio < 0) in sensor_os_gpio_write() 109 gpio_direction_output(gpio, 0); in sensor_os_gpio_write() 110 __gpio_set_value(gpio, out_value); in sensor_os_gpio_write() 119 gc = sensor_power->gpio[gpio_id]; in sensor_gpio_write() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/ |
D | disp_sys_intf.c | 224 int gpio; in disp_sys_script_get_item() local 228 gpio_info->gpio = -1; in disp_sys_script_get_item() 231 gpio = of_get_named_gpio_flags(node, sub_name, 0, &flags); in disp_sys_script_get_item() 232 if (!gpio_is_valid(gpio)) in disp_sys_script_get_item() 235 gpio_info->gpio = gpio; in disp_sys_script_get_item() 239 gpio_info->gpio, gpio_info->value); in disp_sys_script_get_item() 264 if (!gpio_is_valid(gpio_info->gpio)) { in disp_sys_gpio_request() 265 __wrn("%s: gpio (%d) is invalid\n", __func__, gpio_info->gpio); in disp_sys_gpio_request() 269 ret = gpio_direction_output(gpio_info->gpio, gpio_info->value); in disp_sys_gpio_request() 272 gpio_info->name, gpio_info->gpio, gpio_info->value, ret); in disp_sys_gpio_request() [all …]
|
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/ |
D | pinctrl.h | 138 GpioID gpio; member 156 unsigned int PinctrlSet(GpioID gpio, MuxFunc func, PullType type, DriveLevel drv); 170 if (pin.gpio == INVALID_GPIO) { in PinctrlInit() 174 if (LzGpioInit(pin.gpio) != LZ_HARDWARE_SUCCESS) { in PinctrlInit() 178 PinctrlSet(pin.gpio, pin.func, pin.type, pin.drv); in PinctrlInit() 179 LzGpioSetDir(pin.gpio, pin.dir); in PinctrlInit() 180 LzGpioSetVal(pin.gpio, pin.val); in PinctrlInit()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/ |
D | aml_demod_common.h | 223 int aml_gpio_get_value(int gpio); 224 void aml_gpio_set_value(int gpio, int value); 225 void aml_gpio_free(int gpio); 226 int aml_gpio_request(int gpio, const char *label); 227 int aml_demod_gpio_set(int gpio, int dir, int value, const char *label); 257 static inline __maybe_unused int aml_gpio_get_value(int gpio) in aml_gpio_get_value() argument 262 static inline __maybe_unused void aml_gpio_set_value(int gpio, int value) in aml_gpio_set_value() argument 266 static inline __maybe_unused void aml_gpio_free(int gpio) in aml_gpio_free() argument 270 static inline __maybe_unused int aml_gpio_request(int gpio, const char *label) in aml_gpio_request() argument 275 static inline __maybe_unused int aml_demod_gpio_set(int gpio, int dir, in aml_demod_gpio_set() argument
|