Lines Matching +full:pfc +full:- +full:r8a7795

1 // SPDX-License-Identifier: GPL-2.0
3 * R8A7795 ES2.0+ processor support - PFC hardware block.
5 * Copyright (C) 2015-2019 Renesas Electronics Corporation
211 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
232 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
275 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
307 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
337 … /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
540 * that can be set, such as drive-strength or pull-up/pull-down enable.
1495 * pin to the list without an associated function. The sh-pfc
1505 * R8A7795 has 8 banks with 32 GPIOs in each => 256 GPIOs.
1506 * Physical layout rows: A - AW, cols: 1 - 39.
1508 #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
1509 #define PIN_NUMBER(r, c) (((r) - 'A') * 39 + (c) + 300)
1519 * The pin positions are different between different r8a7795
1520 * packages, all that is needed for the pfc driver is a unique
1522 * R-Car H3SiP to calculate a unique number for each pin.
1569 /* - AUDIO CLOCK ------------------------------------------------------------ */
1690 /* - EtherAVB --------------------------------------------------------------- */
1777 /* - CAN ------------------------------------------------------------------ */
1800 /* - CAN Clock -------------------------------------------------------------- */
1809 /* - CAN FD --------------------------------------------------------------- */
1832 /* - DRIF0 --------------------------------------------------------------- */
1896 /* - DRIF1 --------------------------------------------------------------- */
1960 /* - DRIF2 --------------------------------------------------------------- */
2003 /* - DRIF3 --------------------------------------------------------------- */
2047 /* - DU --------------------------------------------------------------------- */
2128 /* - GP7_02/03 -------------------------------------------------------------- */
2147 /* - HSCIF0 ----------------------------------------------------------------- */
2169 /* - HSCIF1 ----------------------------------------------------------------- */
2213 /* - HSCIF2 ----------------------------------------------------------------- */
2279 /* - HSCIF3 ----------------------------------------------------------------- */
2323 /* - HSCIF4 ----------------------------------------------------------------- */
2354 /* - I2C -------------------------------------------------------------------- */
2405 /* - INTC-EX ---------------------------------------------------------------- */
2449 /* - MSIOF0 ----------------------------------------------------------------- */
2492 /* - MSIOF1 ----------------------------------------------------------------- */
2787 /* - MSIOF2 ----------------------------------------------------------------- */
2956 /* - MSIOF3 ----------------------------------------------------------------- */
3147 /* - PWM0 --------------------------------------------------------------------*/
3155 /* - PWM1 --------------------------------------------------------------------*/
3170 /* - PWM2 --------------------------------------------------------------------*/
3185 /* - PWM3 --------------------------------------------------------------------*/
3200 /* - PWM4 --------------------------------------------------------------------*/
3215 /* - PWM5 --------------------------------------------------------------------*/
3230 /* - PWM6 --------------------------------------------------------------------*/
3246 /* - SATA --------------------------------------------------------------------*/
3262 /* - SCIF0 ------------------------------------------------------------------ */
3284 /* - SCIF1 ------------------------------------------------------------------ */
3314 /* - SCIF2 ------------------------------------------------------------------ */
3336 /* - SCIF3 ------------------------------------------------------------------ */
3365 /* - SCIF4 ------------------------------------------------------------------ */
3429 /* - SCIF5 ------------------------------------------------------------------ */
3459 /* - SCIF Clock ------------------------------------------------------------- */
3475 /* - SDHI0 ------------------------------------------------------------------ */
3513 /* - SDHI1 ------------------------------------------------------------------ */
3551 /* - SDHI2 ------------------------------------------------------------------ */
3623 /* - SDHI3 ------------------------------------------------------------------ */
3682 /* - SSI -------------------------------------------------------------------- */
3859 /* - TMU -------------------------------------------------------------------- */
3889 /* - USB0 ------------------------------------------------------------------- */
3897 /* - USB1 ------------------------------------------------------------------- */
3905 /* - USB2 ------------------------------------------------------------------- */
3913 /* - USB2_CH3 --------------------------------------------------------------- */
3922 /* - USB30 ------------------------------------------------------------------ */
3931 /* - VIN4 ------------------------------------------------------------------- */
4069 /* - VIN5 ------------------------------------------------------------------- */
5896 static int r8a7795_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) in r8a7795_pin_to_pocctrl() argument
5898 int bit = -EINVAL; in r8a7795_pin_to_pocctrl()
6153 static unsigned int r8a7795_pinmux_get_bias(struct sh_pfc *pfc, in r8a7795_pinmux_get_bias() argument
6159 reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); in r8a7795_pinmux_get_bias()
6163 if (!(sh_pfc_read(pfc, reg->puen) & BIT(bit))) in r8a7795_pinmux_get_bias()
6165 else if (sh_pfc_read(pfc, reg->pud) & BIT(bit)) in r8a7795_pinmux_get_bias()
6171 static void r8a7795_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, in r8a7795_pinmux_set_bias() argument
6178 reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); in r8a7795_pinmux_set_bias()
6182 enable = sh_pfc_read(pfc, reg->puen) & ~BIT(bit); in r8a7795_pinmux_set_bias()
6186 updown = sh_pfc_read(pfc, reg->pud) & ~BIT(bit); in r8a7795_pinmux_set_bias()
6190 sh_pfc_write(pfc, reg->pud, updown); in r8a7795_pinmux_set_bias()
6191 sh_pfc_write(pfc, reg->puen, enable); in r8a7795_pinmux_set_bias()