2 * Marvell Berlin SoC pinctrl driver.
4 * Copyright (C) 2014 Marvell Technology Group Ltd.
6 * Antoine Ténart <antoine.tenart@free-electrons.com>
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
13 #ifndef __PINCTRL_BERLIN_H
14 #define __PINCTRL_BERLIN_H
16 struct berlin_desc_function {
21 struct berlin_desc_group {
26 struct berlin_desc_function *functions;
29 struct berlin_pinctrl_desc {
30 const struct berlin_desc_group *groups;
34 struct berlin_pinctrl_function {
40 #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \
44 .bit_width = _width, \
46 .functions = (struct berlin_desc_function[]){ \
50 #define BERLIN_PINCTRL_FUNCTION(_muxval, _name) \
56 #define BERLIN_PINCTRL_FUNCTION_UNKNOWN {}
58 int berlin_pinctrl_probe(struct platform_device *pdev,
59 const struct berlin_pinctrl_desc *desc);
61 #endif /* __PINCTRL_BERLIN_H */