]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/powerpc/include/asm/arch-mpc83xx/gpio.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / powerpc / include / asm / arch-mpc83xx / gpio.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
4b565793
JH
2
3#ifndef _MPC83XX_GPIO_H_
4#define _MPC83XX_GPIO_H_
5
6/*
7 * The MCP83xx's 1-2 GPIO controllers each with 32 bits.
8 */
9#if defined(CONFIG_MPC8313) || defined(CONFIG_MPC8308) || \
10 defined(CONFIG_MPC8315)
11#define MPC83XX_GPIO_CTRLRS 1
12#elif defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x)
13#define MPC83XX_GPIO_CTRLRS 2
14#else
15#define MPC83XX_GPIO_CTRLRS 0
16#endif
17
18#define MAX_NUM_GPIOS (32 * MPC83XX_GPIO_CTRLRS)
19
20void mpc83xx_gpio_init_f(void);
21void mpc83xx_gpio_init_r(void);
22
23#endif /* MPC83XX_GPIO_H_ */