mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
04712f3ff6
Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2892/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
29 lines
482 B
C
29 lines
482 B
C
#ifndef BCM63XX_GPIO_H
|
|
#define BCM63XX_GPIO_H
|
|
|
|
#include <linux/init.h>
|
|
|
|
int __init bcm63xx_gpio_init(void);
|
|
|
|
static inline unsigned long bcm63xx_gpio_count(void)
|
|
{
|
|
switch (bcm63xx_get_cpu_id()) {
|
|
case BCM6358_CPU_ID:
|
|
return 40;
|
|
case BCM6338_CPU_ID:
|
|
return 8;
|
|
case BCM6345_CPU_ID:
|
|
return 16;
|
|
case BCM6368_CPU_ID:
|
|
return 38;
|
|
case BCM6348_CPU_ID:
|
|
default:
|
|
return 37;
|
|
}
|
|
}
|
|
|
|
#define BCM63XX_GPIO_DIR_OUT 0x0
|
|
#define BCM63XX_GPIO_DIR_IN 0x1
|
|
|
|
#endif /* !BCM63XX_GPIO_H */
|