-
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: 47020 b: refs/heads/master c: 6a4e522 h: refs/heads/master v: v3
- Loading branch information
Haavard Skinnemoen
committed
Feb 9, 2007
1 parent
83b2f1a
commit 033c190
Showing
9 changed files
with
279 additions
and
22 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: 10b50b7dd2716b944299d45452d0875dbeb5f0c2 | ||
refs/heads/master: 6a4e5227a33f60f918b30cf2001fb0bb259d9396 |
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 @@ | ||
obj-y += at32ap.o clock.o pio.o intc.o extint.o hsmc.o | ||
obj-y += at32ap.o clock.o intc.o extint.o pio.o hsmc.o | ||
obj-$(CONFIG_CPU_AT32AP7000) += at32ap7000.o |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef __ASM_AVR32_ARCH_GPIO_H | ||
#define __ASM_AVR32_ARCH_GPIO_H | ||
|
||
#include <linux/compiler.h> | ||
#include <asm/irq.h> | ||
|
||
|
||
/* Arch-neutral GPIO API */ | ||
int __must_check gpio_request(unsigned int gpio, const char *label); | ||
void gpio_free(unsigned int gpio); | ||
|
||
int gpio_direction_input(unsigned int gpio); | ||
int gpio_direction_output(unsigned int gpio); | ||
int gpio_get_value(unsigned int gpio); | ||
void gpio_set_value(unsigned int gpio, int value); | ||
|
||
static inline int gpio_to_irq(unsigned int gpio) | ||
{ | ||
return gpio + GPIO_IRQ_BASE; | ||
} | ||
|
||
static inline int irq_to_gpio(unsigned int irq) | ||
{ | ||
return irq - GPIO_IRQ_BASE; | ||
} | ||
|
||
#endif /* __ASM_AVR32_ARCH_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __ASM_AVR32_ARCH_IRQ_H | ||
#define __ASM_AVR32_ARCH_IRQ_H | ||
|
||
#define EIM_IRQ_BASE NR_INTERNAL_IRQS | ||
#define NR_EIM_IRQS 32 | ||
|
||
#define AT32_EXTINT(n) (EIM_IRQ_BASE + (n)) | ||
|
||
#define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS) | ||
#define NR_GPIO_IRQS (4 * 32) | ||
|
||
#define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS) | ||
|
||
#endif /* __ASM_AVR32_ARCH_IRQ_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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef __ASM_AVR32_GPIO_H | ||
#define __ASM_AVR32_GPIO_H | ||
|
||
#include <asm/arch/gpio.h> | ||
|
||
#endif /* __ASM_AVR32_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