~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/pcf50633/gpio.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * gpio.h -- GPIO driver for NXP PCF50633
  4  *
  5  * (C) 2006-2008 by Openmoko, Inc.
  6  * All rights reserved.
  7  */
  8 
  9 #ifndef __LINUX_MFD_PCF50633_GPIO_H
 10 #define __LINUX_MFD_PCF50633_GPIO_H
 11 
 12 #include <linux/mfd/pcf50633/core.h>
 13 
 14 #define PCF50633_GPIO1          1
 15 #define PCF50633_GPIO2          2
 16 #define PCF50633_GPIO3          3
 17 #define PCF50633_GPO            4
 18 
 19 #define PCF50633_REG_GPIO1CFG   0x14
 20 #define PCF50633_REG_GPIO2CFG   0x15
 21 #define PCF50633_REG_GPIO3CFG   0x16
 22 #define PCF50633_REG_GPOCFG     0x17
 23 
 24 #define PCF50633_GPOCFG_GPOSEL_MASK     0x07
 25 
 26 enum pcf50633_reg_gpocfg {
 27         PCF50633_GPOCFG_GPOSEL_0        = 0x00,
 28         PCF50633_GPOCFG_GPOSEL_LED_NFET = 0x01,
 29         PCF50633_GPOCFG_GPOSEL_SYSxOK   = 0x02,
 30         PCF50633_GPOCFG_GPOSEL_CLK32K   = 0x03,
 31         PCF50633_GPOCFG_GPOSEL_ADAPUSB  = 0x04,
 32         PCF50633_GPOCFG_GPOSEL_USBxOK   = 0x05,
 33         PCF50633_GPOCFG_GPOSEL_ACTPH4   = 0x06,
 34         PCF50633_GPOCFG_GPOSEL_1        = 0x07,
 35         PCF50633_GPOCFG_GPOSEL_INVERSE  = 0x08,
 36 };
 37 
 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val);
 39 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio);
 40 
 41 int pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert);
 42 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio);
 43 
 44 int pcf50633_gpio_power_supply_set(struct pcf50633 *,
 45                                         int gpio, int regulator, int on);
 46 #endif /* __LINUX_MFD_PCF50633_GPIO_H */
 47 
 48 
 49 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php