]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: renesas: Implement unlock register masks
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 27 Apr 2021 20:03:38 +0000 (22:03 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 May 2021 13:00:17 +0000 (15:00 +0200)
commit6fc323c1ae7312db4e04891b83bbe60f3b68c56b
tree628fafe6bbf508b44f7e6e6533a73ec99130f0bc
parent1fffcaefc142d056c481c61b364821e0713ad206
pinctrl: renesas: Implement unlock register masks

The V3U SoC has several unlock registers, one per register group. They
reside at offset zero in each 0x200 bytes-sized block.

To avoid adding yet another table to the PFC implementation, this
patch adds the option to specify an address mask instead of the fixed
address in sh_pfc_soc_info::unlock_reg.

This is a direct port of Linux 5.12 commit e127ef2ed0a6
("pinctrl: renesas: Implement unlock register masks") by
Ulrich Hecht <uli+renesas@fpond.eu>

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/pinctrl/renesas/pfc.c
drivers/pinctrl/renesas/sh_pfc.h