Home
last modified time | relevance | path

Searched refs:sgpio (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/drivers/pinctrl/sirf/
Dpinctrl-sirf.c410 sirfsoc_gpio_to_bank(struct sirfsoc_gpio_chip *sgpio, unsigned int offset) in sirfsoc_gpio_to_bank() argument
412 return &sgpio->sgpio_bank[offset / SIRFSOC_GPIO_BANK_SIZE]; in sirfsoc_gpio_to_bank()
423 struct sirfsoc_gpio_chip *sgpio = gpiochip_get_data(gc); in sirfsoc_gpio_irq_ack() local
424 struct sirfsoc_gpio_bank *bank = sirfsoc_gpio_to_bank(sgpio, d->hwirq); in sirfsoc_gpio_irq_ack()
431 spin_lock_irqsave(&sgpio->lock, flags); in sirfsoc_gpio_irq_ack()
433 val = readl(sgpio->chip.regs + offset); in sirfsoc_gpio_irq_ack()
435 writel(val, sgpio->chip.regs + offset); in sirfsoc_gpio_irq_ack()
437 spin_unlock_irqrestore(&sgpio->lock, flags); in sirfsoc_gpio_irq_ack()
440 static void __sirfsoc_gpio_irq_mask(struct sirfsoc_gpio_chip *sgpio, in __sirfsoc_gpio_irq_mask() argument
449 spin_lock_irqsave(&sgpio->lock, flags); in __sirfsoc_gpio_irq_mask()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/gpio/
Dsgpio-aspeed.txt17 "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio"
29 The sgpio and interrupt properties are further described in their respective
36 sgpio: sgpio@1e780200 {
38 compatible = "aspeed,ast2500-sgpio";
/Linux-v5.10/drivers/gpio/
Dgpio-aspeed-sgpio.c141 struct aspeed_sgpio *sgpio = gpiochip_get_data(gc); in aspeed_sgpio_init_valid_mask() local
142 int n = sgpio->n_sgpio; in aspeed_sgpio_init_valid_mask()
161 struct aspeed_sgpio *sgpio = gpiochip_get_data(gc); in aspeed_sgpio_irq_init_valid_mask() local
162 int n = sgpio->n_sgpio; in aspeed_sgpio_irq_init_valid_mask()
DMakefile37 obj-$(CONFIG_GPIO_ASPEED_SGPIO) += gpio-aspeed-sgpio.o
/Linux-v5.10/arch/arm/boot/dts/
Decx-common.dtsi33 calxeda,sgpio-gpio =<&gpioh 5 1>, <&gpioh 6 1>,
Daspeed-bmc-quanta-q71l.dts82 /* mux-gpios = <&sgpio 10 GPIO_ACTIVE_HIGH> */
Daspeed-g5.dtsi341 sgpio: sgpio@1e780200 { label
343 compatible = "aspeed,ast2500-sgpio";
/Linux-v5.10/drivers/scsi/isci/
Dhost.c1247 writel(SGPIO_HW_CONTROL, &ihost->scu_registers->peg0.sgpio.output_data_select[i]); in isci_host_deinit()
1267 writel(0, &ihost->scu_registers->peg0.sgpio.interface_control); in isci_host_deinit()
2373 writel(1, &ihost->scu_registers->peg0.sgpio.interface_control); in isci_host_init()
2375 writel(SGPIO_HW_CONTROL, &ihost->scu_registers->peg0.sgpio.output_data_select[i]); in isci_host_init()
2376 writel(0, &ihost->scu_registers->peg0.sgpio.vendor_specific_code); in isci_host_init()
2781 writel(val, &ihost->scu_registers->peg0.sgpio.output_data_select[d]); in sci_write_gpio_tx_gp()
Dhost.h442 return ARRAY_SIZE(ihost->scu_registers->peg0.sgpio.output_data_select); in isci_gpio_count()
Dregisters.h1822 struct scu_sgpio_registers sgpio; member