spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / mips / include / asm / mach-bcm63xx / bcm63xx_gpio.h
blob3d5de96d40369523940662c3400302ef9a0e48fb
1 #ifndef BCM63XX_GPIO_H
2 #define BCM63XX_GPIO_H
4 #include <linux/init.h>
6 int __init bcm63xx_gpio_init(void);
8 static inline unsigned long bcm63xx_gpio_count(void)
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 BCM6368_CPU_ID:
18 return 38;
19 case BCM6348_CPU_ID:
20 default:
21 return 37;
25 #define BCM63XX_GPIO_DIR_OUT 0x0
26 #define BCM63XX_GPIO_DIR_IN 0x1
28 #endif /* !BCM63XX_GPIO_H */