]> git.baikalelectronics.ru Git - uboot.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)
commit1ca5edbc365939744768e5aa28e785afb0097ced
tree628fafe6bbf508b44f7e6e6533a73ec99130f0bc
parent0d64e8891de075196979eb05f6f362ff4a3df1a5
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