2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * publishhed by the Free Software Foundation.
6 * Copyright (C) 2012 John Crispin <blogic@openwrt.org>
9 #ifndef _RT288X_PINMUX_H__
10 #define _RT288X_PINMUX_H__
12 #define FUNC(name, value, pin_first, pin_count) \
13 { name, value, pin_first, pin_count }
15 #define GRP(_name, _func, _mask, _shift) \
16 { .name = _name, .mask = _mask, .shift = _shift, \
17 .func = _func, .gpio = _mask, \
18 .func_count = ARRAY_SIZE(_func) }
20 #define GRP_G(_name, _func, _mask, _gpio, _shift) \
21 { .name = _name, .mask = _mask, .shift = _shift, \
22 .func = _func, .gpio = _gpio, \
23 .func_count = ARRAY_SIZE(_func) }
25 struct rt2880_pmx_group
;
27 struct rt2880_pmx_func
{
41 struct rt2880_pmx_group
{
49 struct rt2880_pmx_func
*func
;
53 extern struct rt2880_pmx_group
*rt2880_pinmux_data
;