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