Lines Matching +full:ph1 +full:- +full:pin
1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright (C) 2011-2015 Copyright (C) 2011-2015 Panasonic Corporation
6 * Copyright (C) 2016-2017 Socionext Inc.
52 /* PH1-LD6b, ProXstream2, PH1-LD20 only */
61 /* Pin Control */
64 /* PH1-Pro4, PH1-Pro5 */
70 /* Pin Monitor */
92 .macro sg_set_pinsel, pin, muxval, mux_bits, reg_stride, ra, rd
93 ldr \ra, =(SG_PINCTRL_BASE + \pin * \mux_bits / 32 * \reg_stride)
95 and \rd, \rd, #~(((1 << \mux_bits) - 1) << (\pin * \mux_bits % 32))
96 orr \rd, \rd, #(\muxval << (\pin * \mux_bits % 32))
105 static inline void sg_set_pinsel(unsigned pin, unsigned muxval, in sg_set_pinsel() argument
108 unsigned shift = pin * mux_bits % 32; in sg_set_pinsel()
109 unsigned long reg = SG_PINCTRL_BASE + pin * mux_bits / 32 * reg_stride; in sg_set_pinsel()
110 u32 mask = (1U << mux_bits) - 1; in sg_set_pinsel()
119 static inline void sg_set_iectrl(unsigned pin) in sg_set_iectrl() argument
121 unsigned bit = pin % 32; in sg_set_iectrl()
122 unsigned long reg = SG_IECTRL + pin / 32 * 4; in sg_set_iectrl()