diff options
author | 2025-04-17 06:43:10 +0100 | |
---|---|---|
committer | 2025-05-21 14:31:24 +0200 | |
commit | e9ffa12e02e193395e594df8977157121b107c21 (patch) | |
tree | edf759167c6882bae6ab7a1d2695e31813250099 /scripts/gdb/linux/modules.py | |
parent | can: rcar_canfd: Update RCANFD_GAFLCFG macro (diff) | |
download | wireguard-linux-e9ffa12e02e193395e594df8977157121b107c21.tar.xz wireguard-linux-e9ffa12e02e193395e594df8977157121b107c21.zip |
can: rcar_canfd: Add rnc_field_width variable to struct rcar_canfd_hw_info
The shift and w value in rcar_canfd_setrnc() are dictated by the
field width:
- R-Car Gen4 packs 2 values in a 32-bit word, using a field width
of 16 bits,
- R-Car Gen3 packs up to 4 values in a 32-bit word, using a field
width of 8 bits.
Add rnc_field_width variable to struct rcar_canfd_hw_info to handle this
difference. The rnc_stride is 32 / rnc_field_width and the index parameter
w is calculated by ch / rnc_stride. The shift value in rcar_canfd_setrnc()
is computed by using (32 - (ch % rnc_stride + 1) * rnc_field_width).
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20250417054320.14100-10-biju.das.jz@bp.renesas.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions