pinctrl-mvebu.h 736 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2016 Marvell International Ltd.
  4. * https://spdx.org/licenses
  5. */
  6. #ifndef __PINCTRL_MVEBU_H_
  7. #define __PINCTRL_MVEBU_H_
  8. #define MVEBU_MAX_PINCTL_BANKS 4
  9. #define MVEBU_MAX_PINS_PER_BANK 100
  10. #define MVEBU_MAX_FUNC 0xF
  11. /*
  12. * struct mvebu_pin_bank_data: mvebu-pinctrl bank data
  13. * @base_reg: controller base address for this bank
  14. * @pin_cnt: number of pins included in this bank
  15. * @max_func: maximum configurable function value for pins in this bank
  16. * @reg_direction:
  17. * @bank_name: the pin's bank name
  18. */
  19. struct mvebu_pinctrl_priv {
  20. void *base_reg;
  21. uint pin_cnt;
  22. uint max_func;
  23. int reg_direction;
  24. const char *bank_name;
  25. };
  26. #endif /* __PINCTRL_MVEBU_H_ */