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