]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
soc: renesas: r8a77965-sysc: Fix power request conflicts
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 28 Aug 2019 11:36:15 +0000 (13:36 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 1 Oct 2019 08:29:49 +0000 (10:29 +0200)
Describe the location and contents of the SYSCEXTMASK register on R-Car
M3-N, 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: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Link: https://lore.kernel.org/r/20190828113618.6672-5-geert+renesas@glider.be
drivers/soc/renesas/r8a77965-sysc.c

index e0533beb50fd7063b44e858ce2ad2e832a1a0d60..b5d8230d4bbc1b875572b9d39d57e817ea68917d 100644 (file)
@@ -7,6 +7,7 @@
  * Copyright (C) 2016 Glider bvba
  */
 
+#include <linux/bits.h>
 #include <linux/bug.h>
 #include <linux/kernel.h>
 
@@ -33,4 +34,6 @@ static const struct rcar_sysc_area r8a77965_areas[] __initconst = {
 const struct rcar_sysc_info r8a77965_sysc_info __initconst = {
        .areas = r8a77965_areas,
        .num_areas = ARRAY_SIZE(r8a77965_areas),
+       .extmask_offs = 0x2f8,
+       .extmask_val = BIT(0),
 };