use the correct number of GPIOs for bcm6358
SVN-Revision: 16329
This commit is contained in:
@@ -5,8 +5,16 @@
|
||||
|
||||
int __init bcm63xx_gpio_init(void);
|
||||
|
||||
/* all helpers will BUG() if gpio count is >= 37. */
|
||||
#define BCM63XX_GPIO_COUNT 37
|
||||
static inline unsigned long bcm63xx_gpio_count(void)
|
||||
{
|
||||
switch (bcm63xx_get_cpu_id()) {
|
||||
case BCM6358_CPU_ID:
|
||||
return 40;
|
||||
case BCM6348_CPU_ID:
|
||||
default:
|
||||
return 37;
|
||||
}
|
||||
}
|
||||
|
||||
#define GPIO_DIR_OUT 0x0
|
||||
#define GPIO_DIR_IN 0x1
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#include <bcm63xx_gpio.h>
|
||||
|
||||
#define NR_BUILTIN_GPIO BCM63XX_GPIO_COUNT
|
||||
|
||||
#define gpio_to_irq(gpio) NULL
|
||||
|
||||
#define gpio_get_value __gpio_get_value
|
||||
|
||||
Reference in New Issue
Block a user