Joe Hershberger | 911c606 | 2011-11-11 15:55:37 -0600 | [diff] [blame] | 1 | /* |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | * SPDX-License-Identifier: GPL-2.0+ |
Joe Hershberger | 911c606 | 2011-11-11 15:55:37 -0600 | [diff] [blame] | 3 | */ |
| 4 | |
| 5 | #ifndef _MPC83XX_GPIO_H_ |
| 6 | #define _MPC83XX_GPIO_H_ |
| 7 | |
| 8 | /* |
| 9 | * The MCP83xx's 1-2 GPIO controllers each with 32 bits. |
| 10 | */ |
| 11 | #if defined(CONFIG_MPC8313) || defined(CONFIG_MPC8308) || \ |
| 12 | defined(CONFIG_MPC8315) |
| 13 | #define MPC83XX_GPIO_CTRLRS 1 |
| 14 | #elif defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
| 15 | #define MPC83XX_GPIO_CTRLRS 2 |
| 16 | #else |
| 17 | #define MPC83XX_GPIO_CTRLRS 0 |
| 18 | #endif |
| 19 | |
| 20 | #define MAX_NUM_GPIOS (32 * MPC83XX_GPIO_CTRLRS) |
| 21 | |
| 22 | void mpc83xx_gpio_init_f(void); |
| 23 | void mpc83xx_gpio_init_r(void); |
| 24 | |
| 25 | #endif /* MPC83XX_GPIO_H_ */ |