Lines Matching +full:pfc +full:- +full:r8a7795
1 // SPDX-License-Identifier: GPL-2.0
3 * R8A7796 processor support - PFC hardware block.
7 * This file is based on the drivers/pinctrl/sh-pfc/pfc-r8a7795.c
9 * R-Car Gen3 processor support - PFC hardware block.
217 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
246 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
277 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
313 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
343 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
547 * that can be set, such as drive-strength or pull-up/pull-down enable.
1502 * pin to the list without an associated function. The sh-pfc
1513 * Physical layout rows: A - AW, cols: 1 - 39.
1515 #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
1516 #define PIN_NUMBER(r, c) (((r) - 'A') * 39 + (c) + 300)
1527 * packages, all that is needed for the pfc driver is a unique
1529 * R-Car M3SiP to calculate a unique number for each pin.
1575 /* - AUDIO CLOCK ------------------------------------------------------------ */
1697 /* - EtherAVB --------------------------------------------------------------- */
1784 /* - CAN ------------------------------------------------------------------ */
1807 /* - CAN Clock -------------------------------------------------------------- */
1816 /* - CAN FD --------------------------------------------------------------- */
1839 /* - DRIF0 --------------------------------------------------------------- */
1903 /* - DRIF1 --------------------------------------------------------------- */
1967 /* - DRIF2 --------------------------------------------------------------- */
2010 /* - DRIF3 --------------------------------------------------------------- */
2054 /* - DU --------------------------------------------------------------------- */
2135 /* - GP7_02/03 -------------------------------------------------------------- */
2154 /* - HSCIF0 ----------------------------------------------------------------- */
2176 /* - HSCIF1 ----------------------------------------------------------------- */
2220 /* - HSCIF2 ----------------------------------------------------------------- */
2286 /* - HSCIF3 ----------------------------------------------------------------- */
2330 /* - HSCIF4 ----------------------------------------------------------------- */
2361 /* - I2C -------------------------------------------------------------------- */
2412 /* - INTC-EX ---------------------------------------------------------------- */
2456 /* - MSIOF0 ----------------------------------------------------------------- */
2499 /* - MSIOF1 ----------------------------------------------------------------- */
2794 /* - MSIOF2 ----------------------------------------------------------------- */
2963 /* - MSIOF3 ----------------------------------------------------------------- */
3155 /* - PWM0 --------------------------------------------------------------------*/
3163 /* - PWM1 --------------------------------------------------------------------*/
3178 /* - PWM2 --------------------------------------------------------------------*/
3193 /* - PWM3 --------------------------------------------------------------------*/
3208 /* - PWM4 --------------------------------------------------------------------*/
3223 /* - PWM5 --------------------------------------------------------------------*/
3238 /* - PWM6 --------------------------------------------------------------------*/
3254 /* - SCIF0 ------------------------------------------------------------------ */
3276 /* - SCIF1 ------------------------------------------------------------------ */
3306 /* - SCIF2 ------------------------------------------------------------------ */
3328 /* - SCIF3 ------------------------------------------------------------------ */
3357 /* - SCIF4 ------------------------------------------------------------------ */
3421 /* - SCIF5 ------------------------------------------------------------------ */
3452 /* - SCIF Clock ------------------------------------------------------------- */
3468 /* - SDHI0 ------------------------------------------------------------------ */
3506 /* - SDHI1 ------------------------------------------------------------------ */
3544 /* - SDHI2 ------------------------------------------------------------------ */
3616 /* - SDHI3 ------------------------------------------------------------------ */
3675 /* - SSI -------------------------------------------------------------------- */
3852 /* - TMU -------------------------------------------------------------------- */
3882 /* - USB0 ------------------------------------------------------------------- */
3890 /* - USB1 ------------------------------------------------------------------- */
3899 /* - USB30 ------------------------------------------------------------------ */
3908 /* - VIN4 ------------------------------------------------------------------- */
4046 /* - VIN5 ------------------------------------------------------------------- */
5851 static int r8a7796_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7796_pin_to_pocctrl() argument
5853 int bit = -EINVAL; in r8a7796_pin_to_pocctrl()
6108 static unsigned int r8a7796_pinmux_get_bias(struct sh_pfc *pfc, in r8a7796_pinmux_get_bias() argument
6114 reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); in r8a7796_pinmux_get_bias()
6118 if (!(sh_pfc_read(pfc, reg->puen) & BIT(bit))) in r8a7796_pinmux_get_bias()
6120 else if (sh_pfc_read(pfc, reg->pud) & BIT(bit)) in r8a7796_pinmux_get_bias()
6126 static void r8a7796_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7796_pinmux_set_bias() argument
6133 reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); in r8a7796_pinmux_set_bias()
6137 enable = sh_pfc_read(pfc, reg->puen) & ~BIT(bit); in r8a7796_pinmux_set_bias()
6141 updown = sh_pfc_read(pfc, reg->pud) & ~BIT(bit); in r8a7796_pinmux_set_bias()
6145 sh_pfc_write(pfc, reg->pud, updown); in r8a7796_pinmux_set_bias()
6146 sh_pfc_write(pfc, reg->puen, enable); in r8a7796_pinmux_set_bias()