]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/gpio-pxa.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / gpio-pxa.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
157d2644
HZ
2#ifndef __GPIO_PXA_H
3#define __GPIO_PXA_H
4
5#define GPIO_bit(x) (1 << ((x) & 0x1f))
6
7#define gpio_to_bank(gpio) ((gpio) >> 5)
8
9/* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85).
10 * Those cases currently cause holes in the GPIO number space, the
11 * actual number of the last GPIO is recorded by 'pxa_last_gpio'.
12 */
13extern int pxa_last_gpio;
14
15extern int pxa_irq_to_gpio(int irq);
16
b95ace54 17struct pxa_gpio_platform_data {
b8f649f1 18 int irq_base;
b95ace54
RJ
19 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
20};
21
157d2644 22#endif /* __GPIO_PXA_H */