summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>2026-09-04 15:54:23 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2026-09-07 11:04:58 +0200
commit5e1e9d0cd8f366cedac88b7463126da989704e35 (patch)
treecfbe6cc1d7bdceeb69252c376e3dc204f0ee0b29 /tools/perf/scripts/python
parent382ec4d1e27a95ef23080c9e3bca8b44d31736f9 (diff)
downloadlinux-next-5e1e9d0cd8f366cedac88b7463126da989704e35.tar.gz
linux-next-5e1e9d0cd8f366cedac88b7463126da989704e35.zip
pinctrl: renesas: rzg2l: Unify power source handling
The previous code handled power sources using a mixture of power source specific definitions and lookups in the available_ps[] array. Unify the power source handling by introducing struct rzg2l_pinctrl_ps_desc, whose purpose is to describe a power source through its power source value, associated register value, associated capabilities (e.g. Ethernet), and associated IOLH index. Introduce two new functions, rzg2l_ps_to_desc() and rzg2l_pwr_reg_val_to_desc(), using the RZG2L_PINCTRL_PS_DESC_MEMBER_TO_DESC_FUNC() macro, as their implementations are similar. These functions retrieve a power source descriptor based on either a power source value or a power source register value. Other functions that need to perform power source specific operations can call them to retrieve the corresponding power source descriptor. The register values for the soft power sources were kept to zero since they are not used across the driver's code. Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260904125425.412632-4-claudiu.beznea+renesas@tuxon.dev Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions