linux/arch/arm/mach-ks8695/include/mach/gpio-ks8695.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * Copyright (C) 2006 Andrew Victor
   4 */
   5
   6#ifndef __MACH_KS8659_GPIO_H
   7#define __MACH_KS8659_GPIO_H
   8
   9#include <linux/kernel.h>
  10
  11#define KS8695_GPIO_0           0
  12#define KS8695_GPIO_1           1
  13#define KS8695_GPIO_2           2
  14#define KS8695_GPIO_3           3
  15#define KS8695_GPIO_4           4
  16#define KS8695_GPIO_5           5
  17#define KS8695_GPIO_6           6
  18#define KS8695_GPIO_7           7
  19#define KS8695_GPIO_8           8
  20#define KS8695_GPIO_9           9
  21#define KS8695_GPIO_10          10
  22#define KS8695_GPIO_11          11
  23#define KS8695_GPIO_12          12
  24#define KS8695_GPIO_13          13
  25#define KS8695_GPIO_14          14
  26#define KS8695_GPIO_15          15
  27
  28/*
  29 * Configure GPIO pin as external interrupt source.
  30 */
  31extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
  32
  33/* Register the GPIOs */
  34extern void ks8695_register_gpios(void);
  35
  36#endif /* __MACH_KS8659_GPIO_H */
  37