-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 307674 b: refs/heads/master c: d13710a h: refs/heads/master v: v3
- Loading branch information
Tarun Kanti DebBarma
authored and
Kevin Hilman
committed
May 12, 2012
1 parent
f48262c
commit 0661531
Showing
37 changed files
with
703 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 7563bbf89d065a2c3f05059ecbcc805645edcc62 | ||
refs/heads/master: d13710a7e6241f1725da34004928b93a71b05508 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,55 @@ | ||
#ifndef __LINUX_GPIO_H | ||
#warning Include linux/gpio.h instead of asm/gpio.h | ||
#include <linux/gpio.h> | ||
#endif | ||
/* | ||
* Generic GPIO API implementation for Alpha. | ||
* | ||
* A stright copy of that for PowerPC which was: | ||
* | ||
* Copyright (c) 2007-2008 MontaVista Software, Inc. | ||
* | ||
* Author: Anton Vorontsov <avorontsov@ru.mvista.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
*/ | ||
|
||
#ifndef _ASM_ALPHA_GPIO_H | ||
#define _ASM_ALPHA_GPIO_H | ||
|
||
#include <linux/errno.h> | ||
#include <asm-generic/gpio.h> | ||
|
||
#ifdef CONFIG_GPIOLIB | ||
|
||
/* | ||
* We don't (yet) implement inlined/rapid versions for on-chip gpios. | ||
* Just call gpiolib. | ||
*/ | ||
static inline int gpio_get_value(unsigned int gpio) | ||
{ | ||
return __gpio_get_value(gpio); | ||
} | ||
|
||
static inline void gpio_set_value(unsigned int gpio, int value) | ||
{ | ||
__gpio_set_value(gpio, value); | ||
} | ||
|
||
static inline int gpio_cansleep(unsigned int gpio) | ||
{ | ||
return __gpio_cansleep(gpio); | ||
} | ||
|
||
static inline int gpio_to_irq(unsigned int gpio) | ||
{ | ||
return __gpio_to_irq(gpio); | ||
} | ||
|
||
static inline int irq_to_gpio(unsigned int irq) | ||
{ | ||
return -EINVAL; | ||
} | ||
|
||
#endif /* CONFIG_GPIOLIB */ | ||
|
||
#endif /* _ASM_ALPHA_GPIO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,55 @@ | ||
#ifndef __LINUX_GPIO_H | ||
#warning Include linux/gpio.h instead of asm/gpio.h | ||
#include <linux/gpio.h> | ||
#endif | ||
/* | ||
* Generic GPIO API implementation for IA-64. | ||
* | ||
* A stright copy of that for PowerPC which was: | ||
* | ||
* Copyright (c) 2007-2008 MontaVista Software, Inc. | ||
* | ||
* Author: Anton Vorontsov <avorontsov@ru.mvista.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
*/ | ||
|
||
#ifndef _ASM_IA64_GPIO_H | ||
#define _ASM_IA64_GPIO_H | ||
|
||
#include <linux/errno.h> | ||
#include <asm-generic/gpio.h> | ||
|
||
#ifdef CONFIG_GPIOLIB | ||
|
||
/* | ||
* We don't (yet) implement inlined/rapid versions for on-chip gpios. | ||
* Just call gpiolib. | ||
*/ | ||
static inline int gpio_get_value(unsigned int gpio) | ||
{ | ||
return __gpio_get_value(gpio); | ||
} | ||
|
||
static inline void gpio_set_value(unsigned int gpio, int value) | ||
{ | ||
__gpio_set_value(gpio, value); | ||
} | ||
|
||
static inline int gpio_cansleep(unsigned int gpio) | ||
{ | ||
return __gpio_cansleep(gpio); | ||
} | ||
|
||
static inline int gpio_to_irq(unsigned int gpio) | ||
{ | ||
return __gpio_to_irq(gpio); | ||
} | ||
|
||
static inline int irq_to_gpio(unsigned int irq) | ||
{ | ||
return -EINVAL; | ||
} | ||
|
||
#endif /* CONFIG_GPIOLIB */ | ||
|
||
#endif /* _ASM_IA64_GPIO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,53 @@ | ||
#ifndef __LINUX_GPIO_H | ||
#warning Include linux/gpio.h instead of asm/gpio.h | ||
#include <linux/gpio.h> | ||
#endif | ||
/* | ||
* Generic GPIO API implementation for PowerPC. | ||
* | ||
* Copyright (c) 2007-2008 MontaVista Software, Inc. | ||
* | ||
* Author: Anton Vorontsov <avorontsov@ru.mvista.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_GPIO_H | ||
#define _ASM_MICROBLAZE_GPIO_H | ||
|
||
#include <linux/errno.h> | ||
#include <asm-generic/gpio.h> | ||
|
||
#ifdef CONFIG_GPIOLIB | ||
|
||
/* | ||
* We don't (yet) implement inlined/rapid versions for on-chip gpios. | ||
* Just call gpiolib. | ||
*/ | ||
static inline int gpio_get_value(unsigned int gpio) | ||
{ | ||
return __gpio_get_value(gpio); | ||
} | ||
|
||
static inline void gpio_set_value(unsigned int gpio, int value) | ||
{ | ||
__gpio_set_value(gpio, value); | ||
} | ||
|
||
static inline int gpio_cansleep(unsigned int gpio) | ||
{ | ||
return __gpio_cansleep(gpio); | ||
} | ||
|
||
static inline int gpio_to_irq(unsigned int gpio) | ||
{ | ||
return __gpio_to_irq(gpio); | ||
} | ||
|
||
static inline int irq_to_gpio(unsigned int irq) | ||
{ | ||
return -EINVAL; | ||
} | ||
|
||
#endif /* CONFIG_GPIOLIB */ | ||
|
||
#endif /* _ASM_MICROBLAZE_GPIO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.