gpio.h 546 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef _MPC83XX_GPIO_H_
  3. #define _MPC83XX_GPIO_H_
  4. /*
  5. * The MCP83xx's 1-2 GPIO controllers each with 32 bits.
  6. */
  7. #if defined(CONFIG_MPC8313) || defined(CONFIG_MPC8308) || \
  8. defined(CONFIG_MPC8315)
  9. #define MPC83XX_GPIO_CTRLRS 1
  10. #elif defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x)
  11. #define MPC83XX_GPIO_CTRLRS 2
  12. #else
  13. #define MPC83XX_GPIO_CTRLRS 0
  14. #endif
  15. #define MAX_NUM_GPIOS (32 * MPC83XX_GPIO_CTRLRS)
  16. void mpc83xx_gpio_init_f(void);
  17. void mpc83xx_gpio_init_r(void);
  18. #endif /* MPC83XX_GPIO_H_ */