drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / drivers / pmdomain / renesas / rcar-gen4-sysc.h
blobfdf843aa51134f87ab13ea74067929ecff73b744
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * R-Car Gen4 System Controller
5 * Copyright (C) 2021 Renesas Electronics Corp.
6 */
7 #ifndef __SOC_RENESAS_RCAR_GEN4_SYSC_H__
8 #define __SOC_RENESAS_RCAR_GEN4_SYSC_H__
10 #include <linux/types.h>
13 * Power Domain flags
15 #define PD_CPU BIT(0) /* Area contains main CPU core */
16 #define PD_SCU BIT(1) /* Area contains SCU and L2 cache */
17 #define PD_NO_CR BIT(2) /* Area lacks PWR{ON,OFF}CR registers */
19 #define PD_CPU_NOCR (PD_CPU | PD_NO_CR) /* CPU area lacks CR */
20 #define PD_ALWAYS_ON PD_NO_CR /* Always-on area */
23 * Description of a Power Area
25 struct rcar_gen4_sysc_area {
26 const char *name;
27 u8 pdr; /* PDRn */
28 s8 parent; /* -1 if none */
29 u8 flags; /* See PD_* */
33 * SoC-specific Power Area Description
35 struct rcar_gen4_sysc_info {
36 const struct rcar_gen4_sysc_area *areas;
37 unsigned int num_areas;
40 extern const struct rcar_gen4_sysc_info r8a779a0_sysc_info;
41 extern const struct rcar_gen4_sysc_info r8a779f0_sysc_info;
42 extern const struct rcar_gen4_sysc_info r8a779g0_sysc_info;
43 extern const struct rcar_gen4_sysc_info r8a779h0_sysc_info;
45 #endif /* __SOC_RENESAS_RCAR_GEN4_SYSC_H__ */