2008-11-27 02:41:01 +08:00
|
|
|
#ifndef BCM63XX_GPIO_H
|
|
|
|
#define BCM63XX_GPIO_H
|
|
|
|
|
2009-06-04 17:59:28 +08:00
|
|
|
#include <linux/init.h>
|
|
|
|
|
|
|
|
int __init bcm63xx_gpio_init(void);
|
|
|
|
|
2009-06-04 18:01:03 +08:00
|
|
|
static inline unsigned long bcm63xx_gpio_count(void)
|
|
|
|
{
|
|
|
|
switch (bcm63xx_get_cpu_id()) {
|
|
|
|
case BCM6358_CPU_ID:
|
|
|
|
return 40;
|
2009-06-26 20:34:35 +08:00
|
|
|
case BCM6338_CPU_ID:
|
|
|
|
return 7;
|
|
|
|
case BCM6345_CPU_ID:
|
|
|
|
return 16;
|
2009-06-04 18:01:03 +08:00
|
|
|
case BCM6348_CPU_ID:
|
|
|
|
default:
|
|
|
|
return 37;
|
|
|
|
}
|
|
|
|
}
|
2008-11-27 02:41:01 +08:00
|
|
|
|
|
|
|
#define GPIO_DIR_OUT 0x0
|
|
|
|
#define GPIO_DIR_IN 0x1
|
|
|
|
|
|
|
|
#endif /* !BCM63XX_GPIO_H */
|