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