blob: 54ad69e8ba8d559b5e5929ad312644b676ca57db [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Konstantin Porotchkinaed83152016-12-08 12:22:29 +02002/*
3 * Copyright (C) 2016 Marvell International Ltd.
Konstantin Porotchkinaed83152016-12-08 12:22:29 +02004 * 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_ */