Commit 7d566a4
pinctrl: renesas: rzg2l: Add function pointers for OEN register access
Introduce function pointers oen_read() and oen_write(), in the struct
rzg2l_pinctrl_data to facilitate reading and writing to the PFC_OEN
register. On the RZ/V2H(P) SoC, unlocking the PWPR.REGWE_B bit before
writing to the PFC_OEN register is necessary, and the PFC_OEN register
has more bits compared to the RZ/G2L family. To handle these
differences between RZ/G2L and RZ/V2H(P) and to reuse the existing code
for RZ/V2H(P), these function pointers are introduced.
Additionally, populate these function pointers with appropriate data for
existing SoCs.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
Link: https://lore.kernel.org/r/20240530173857.164073-10-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>1 parent ede014c commit 7d566a4
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| |||
1035 | 1037 | | |
1036 | 1038 | | |
1037 | 1039 | | |
1038 | | - | |
| 1040 | + | |
1039 | 1041 | | |
1040 | 1042 | | |
1041 | 1043 | | |
| |||
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | | - | |
| 1149 | + | |
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
| |||
2623 | 2625 | | |
2624 | 2626 | | |
2625 | 2627 | | |
| 2628 | + | |
| 2629 | + | |
2626 | 2630 | | |
2627 | 2631 | | |
2628 | 2632 | | |
| |||
2636 | 2640 | | |
2637 | 2641 | | |
2638 | 2642 | | |
| 2643 | + | |
| 2644 | + | |
2639 | 2645 | | |
2640 | 2646 | | |
2641 | 2647 | | |
| |||
2648 | 2654 | | |
2649 | 2655 | | |
2650 | 2656 | | |
| 2657 | + | |
| 2658 | + | |
2651 | 2659 | | |
2652 | 2660 | | |
2653 | 2661 | | |
| |||
0 commit comments