pinctrl-mvebu.h 736 B

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