diff mbox series

soc: renesas: r8a774c0-sysc: Fix power request conflicts

Message ID 20190920143523.23125-1-geert+renesas@glider.be (mailing list archive)
State Mainlined
Commit 8c32c5ff873580a5bff1b743ac5e080b36fbd784
Delegated to: Geert Uytterhoeven
Headers show
Series soc: renesas: r8a774c0-sysc: Fix power request conflicts | expand

Commit Message

Geert Uytterhoeven Sept. 20, 2019, 2:35 p.m. UTC
Describe the location and contents of the SYSCEXTMASK register on
RZ/G2E, to prevent conflicts between internal and external power
requests.

Based on a patch in the BSP by Dien Pham <dien.pham.ry@renesas.com>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To be queued in renesas-devel for v5.5.

 drivers/soc/renesas/r8a774c0-sysc.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Simon Horman Sept. 23, 2019, 11:39 a.m. UTC | #1
On Fri, Sep 20, 2019 at 04:35:23PM +0200, Geert Uytterhoeven wrote:
> Describe the location and contents of the SYSCEXTMASK register on
> RZ/G2E, to prevent conflicts between internal and external power
> requests.
> 
> Based on a patch in the BSP by Dien Pham <dien.pham.ry@renesas.com>.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
diff mbox series

Patch

diff --git a/drivers/soc/renesas/r8a774c0-sysc.c b/drivers/soc/renesas/r8a774c0-sysc.c
index 11050e17ea81f7f3..40d1558aab37ca4d 100644
--- a/drivers/soc/renesas/r8a774c0-sysc.c
+++ b/drivers/soc/renesas/r8a774c0-sysc.c
@@ -6,6 +6,7 @@ 
  * Based on Renesas R-Car E3 System Controller
  */
 
+#include <linux/bits.h>
 #include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/sys_soc.h>
@@ -50,4 +51,6 @@  const struct rcar_sysc_info r8a774c0_sysc_info __initconst = {
 	.init = r8a774c0_sysc_init,
 	.areas = r8a774c0_areas,
 	.num_areas = ARRAY_SIZE(r8a774c0_areas),
+	.extmask_offs = 0x2f8,
+	.extmask_val = BIT(0),
 };