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