Go to the documentation of this file.
17 #ifndef __PINCTRL_SAMSUNG_H
18 #define __PINCTRL_SAMSUNG_H
30 #define CONPDN_REG 0x10
31 #define PUDPDN_REG 0x14
34 #define FUNC_OUTPUT 0x1
55 #define PINCFG_TYPE_MASK 0xFF
56 #define PINCFG_VALUE_SHIFT 8
57 #define PINCFG_VALUE_MASK (0xFF << PINCFG_VALUE_SHIFT)
58 #define PINCFG_PACK(type, value) (((value) << PINCFG_VALUE_SHIFT) | type)
59 #define PINCFG_UNPACK_TYPE(cfg) ((cfg) & PINCFG_TYPE_MASK)
60 #define PINCFG_UNPACK_VALUE(cfg) (((cfg) & PINCFG_VALUE_MASK) >> \
82 #define PIN_NAME_LENGTH 10
84 #define PIN_GROUP(n, p, f) \
88 .num_pins = ARRAY_SIZE(p), \
92 #define PMX_FUNC(n, g) \
96 .num_groups = ARRAY_SIZE(g), \
206 struct gpio_chip *
gc;