Path: blob/master/arch/arm/mach-ks8695/include/mach/gpio.h
15159 views
/*1* arch/arm/mach-ks8695/include/mach/gpio.h2*3* Copyright (C) 2006 Andrew Victor4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*/910#ifndef __ASM_ARCH_GPIO_H_11#define __ASM_ARCH_GPIO_H_1213#include <linux/kernel.h>1415#define KS8695_GPIO_0 016#define KS8695_GPIO_1 117#define KS8695_GPIO_2 218#define KS8695_GPIO_3 319#define KS8695_GPIO_4 420#define KS8695_GPIO_5 521#define KS8695_GPIO_6 622#define KS8695_GPIO_7 723#define KS8695_GPIO_8 824#define KS8695_GPIO_9 925#define KS8695_GPIO_10 1026#define KS8695_GPIO_11 1127#define KS8695_GPIO_12 1228#define KS8695_GPIO_13 1329#define KS8695_GPIO_14 1430#define KS8695_GPIO_15 153132/*33* Configure GPIO pin as external interrupt source.34*/35extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);3637/*38* Map IRQ number to GPIO line.39*/40extern int irq_to_gpio(unsigned int irq);4142#include <asm-generic/gpio.h>4344/* If it turns out that we need to optimise GPIO access for the45* Micrel's GPIOs, then these can be changed to check their argument46* directly as static inlines. However for now it's probably not47* worthwhile.48*/49#define gpio_get_value __gpio_get_value50#define gpio_set_value __gpio_set_value51#define gpio_to_irq __gpio_to_irq5253/* Register the GPIOs */54extern void ks8695_register_gpios(void);5556#endif575859