projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
move files to files-2.6.30, to ease newer kernel integration
[openwrt/openwrt.git]
/
target
/
linux
/
brcm63xx
/
files-2.6.30
/
include
/
asm-mips
/
mach-bcm63xx
/
bcm63xx_gpio.h
1
#ifndef BCM63XX_GPIO_H
2
#define BCM63XX_GPIO_H
3
4
#include <linux/init.h>
5
6
int
__init
bcm63xx_gpio_init
(
void
);
7
8
static
inline
unsigned long
bcm63xx_gpio_count
(
void
)
9
{
10
switch
(
bcm63xx_get_cpu_id
()) {
11
case
BCM6358_CPU_ID
:
12
return
40
;
13
case
BCM6338_CPU_ID
:
14
return
8
;
15
case
BCM6345_CPU_ID
:
16
return
16
;
17
case
BCM6348_CPU_ID
:
18
default
:
19
return
37
;
20
}
21
}
22
23
#define GPIO_DIR_OUT 0x0
24
#define GPIO_DIR_IN 0x1
25
26
#endif
/* !BCM63XX_GPIO_H */