drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / mach-bcm63xx / bcm63xx_gpio.h
blob9212429d5eddabc3a46119721b144ec1b8e9dbd2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef BCM63XX_GPIO_H
3 #define BCM63XX_GPIO_H
5 #include <linux/init.h>
6 #include <bcm63xx_cpu.h>
8 int __init bcm63xx_gpio_init(void);
10 static inline unsigned long bcm63xx_gpio_count(void)
12 switch (bcm63xx_get_cpu_id()) {
13 case BCM6328_CPU_ID:
14 return 32;
15 case BCM3368_CPU_ID:
16 return 40;
17 case BCM6338_CPU_ID:
18 return 8;
19 case BCM6345_CPU_ID:
20 return 16;
21 case BCM6358_CPU_ID:
22 case BCM6368_CPU_ID:
23 return 38;
24 case BCM6362_CPU_ID:
25 return 48;
26 case BCM6348_CPU_ID:
27 default:
28 return 37;
32 #define BCM63XX_GPIO_DIR_OUT 0x0
33 #define BCM63XX_GPIO_DIR_IN 0x1
35 #endif /* !BCM63XX_GPIO_H */