ENGR00315894-60 GPIO: Modify driver mxc_gpio to support RDC Semaphores
authorYe.Li <B37916@freescale.com>
Wed, 11 Jun 2014 08:21:29 +0000 (16:21 +0800)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 05:03:36 +0000 (22:03 -0700)
commit6a5ec2ded0be70c8ae5caf380dd7e01874606ff8
tree1acee6bd4229e794bfdb32a04fa5d6c189223608
parent9e0245be0238038af7ad21a9a28b46bb116b4561
ENGR00315894-60 GPIO: Modify driver mxc_gpio to support RDC Semaphores

For GPIO group which shared by multiple masters, it may set in RDC
to shared and semaphore required. Before access the GPIO register,
the GPIO driver must get the RDC semaphore, and release the semaphore
after the GPIO register access.

When CONFIG_MXC_RDC is set, the features related to RDC semaphores
is enabled in mxc_gpio driver.

Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit 84d63e2e2ce12f714e88baad8b2325684614a7c1)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Conflicts:
drivers/gpio/mxc_gpio.c

(cherry picked from commit c9943b9c8a78bb2c9886bfe582e82978387d8dee)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit faf94726cac8316c4342e19936f1e03ef283ace3)
(cherry picked from commit 6c0474fe0e4fc543c62b22c05c2702a881f56418)
(cherry picked from commit 7cd5fec7ce6a9ecfdaa1a9c1aaaa0d0ac18a4f86)
(cherry picked from commit 74d68c1b9f098c44992d591616372f0ec5ff13dd)
(cherry picked from commit 208c009aa15453349ee9272d62e2c1cebe14ecab)
(cherry picked from commit 59777a11b1e923f3222a34d243884efaf9cd59d6)
drivers/gpio/mxc_gpio.c