162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * DRA7xx Clock domains framework
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2009-2013 Texas Instruments, Inc.
662306a36Sopenharmony_ci * Copyright (C) 2009-2011 Nokia Corporation
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Generated by code originally written by:
962306a36Sopenharmony_ci * Abhijit Pagare (abhijitpagare@ti.com)
1062306a36Sopenharmony_ci * Benoit Cousson (b-cousson@ti.com)
1162306a36Sopenharmony_ci * Paul Walmsley (paul@pwsan.com)
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci * This file is automatically generated from the OMAP hardware databases.
1462306a36Sopenharmony_ci * We respectfully ask that any modifications to this file be coordinated
1562306a36Sopenharmony_ci * with the public linux-omap@vger.kernel.org mailing list and the
1662306a36Sopenharmony_ci * authors above to ensure that the autogeneration scripts are kept
1762306a36Sopenharmony_ci * up-to-date with the file contents.
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#include <linux/kernel.h>
2162306a36Sopenharmony_ci#include <linux/io.h>
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#include "clockdomain.h"
2462306a36Sopenharmony_ci#include "cm1_7xx.h"
2562306a36Sopenharmony_ci#include "cm2_7xx.h"
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#include "cm-regbits-7xx.h"
2862306a36Sopenharmony_ci#include "prm7xx.h"
2962306a36Sopenharmony_ci#include "prcm44xx.h"
3062306a36Sopenharmony_ci#include "prcm_mpu7xx.h"
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci/* Static Dependencies for DRA7xx Clock Domains */
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_cistatic struct clkdm_dep cam_wkup_sleep_deps[] = {
3562306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
3662306a36Sopenharmony_ci	{ NULL },
3762306a36Sopenharmony_ci};
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_cistatic struct clkdm_dep dma_wkup_sleep_deps[] = {
4062306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
4162306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
4262306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
4362306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
4462306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
4562306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
4662306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
4762306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
4862306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
4962306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
5062306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
5162306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
5262306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
5362306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
5462306a36Sopenharmony_ci	{ NULL },
5562306a36Sopenharmony_ci};
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_cistatic struct clkdm_dep dsp1_wkup_sleep_deps[] = {
5862306a36Sopenharmony_ci	{ .clkdm_name = "atl_clkdm" },
5962306a36Sopenharmony_ci	{ .clkdm_name = "cam_clkdm" },
6062306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
6162306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
6262306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
6362306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
6462306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
6562306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
6662306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
6762306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
6862306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
6962306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
7062306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
7162306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
7262306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
7362306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
7462306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
7562306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
7662306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
7762306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
7862306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
7962306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
8062306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
8162306a36Sopenharmony_ci	{ NULL },
8262306a36Sopenharmony_ci};
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_cistatic struct clkdm_dep dsp2_wkup_sleep_deps[] = {
8562306a36Sopenharmony_ci	{ .clkdm_name = "atl_clkdm" },
8662306a36Sopenharmony_ci	{ .clkdm_name = "cam_clkdm" },
8762306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
8862306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
8962306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
9062306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
9162306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
9262306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
9362306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
9462306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
9562306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
9662306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
9762306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
9862306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
9962306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
10062306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
10162306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
10262306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
10362306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
10462306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
10562306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
10662306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
10762306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
10862306a36Sopenharmony_ci	{ NULL },
10962306a36Sopenharmony_ci};
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_cistatic struct clkdm_dep dss_wkup_sleep_deps[] = {
11262306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
11362306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
11462306a36Sopenharmony_ci	{ NULL },
11562306a36Sopenharmony_ci};
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_cistatic struct clkdm_dep eve1_wkup_sleep_deps[] = {
11862306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
11962306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
12062306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
12162306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
12262306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
12362306a36Sopenharmony_ci	{ NULL },
12462306a36Sopenharmony_ci};
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_cistatic struct clkdm_dep eve2_wkup_sleep_deps[] = {
12762306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
12862306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
12962306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
13062306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
13162306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
13262306a36Sopenharmony_ci	{ NULL },
13362306a36Sopenharmony_ci};
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_cistatic struct clkdm_dep eve3_wkup_sleep_deps[] = {
13662306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
13762306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
13862306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
13962306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
14062306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
14162306a36Sopenharmony_ci	{ NULL },
14262306a36Sopenharmony_ci};
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_cistatic struct clkdm_dep eve4_wkup_sleep_deps[] = {
14562306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
14662306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
14762306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
14862306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
14962306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
15062306a36Sopenharmony_ci	{ NULL },
15162306a36Sopenharmony_ci};
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_cistatic struct clkdm_dep gmac_wkup_sleep_deps[] = {
15462306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
15562306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
15662306a36Sopenharmony_ci	{ NULL },
15762306a36Sopenharmony_ci};
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_cistatic struct clkdm_dep gpu_wkup_sleep_deps[] = {
16062306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
16162306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
16262306a36Sopenharmony_ci	{ NULL },
16362306a36Sopenharmony_ci};
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_cistatic struct clkdm_dep ipu1_wkup_sleep_deps[] = {
16662306a36Sopenharmony_ci	{ .clkdm_name = "atl_clkdm" },
16762306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
16862306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
16962306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
17062306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
17162306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
17262306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
17362306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
17462306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
17562306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
17662306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
17762306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
17862306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
17962306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
18062306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
18162306a36Sopenharmony_ci	{ .clkdm_name = "l3main1_clkdm" },
18262306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
18362306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
18462306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
18562306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
18662306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
18762306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
18862306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
18962306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
19062306a36Sopenharmony_ci	{ NULL },
19162306a36Sopenharmony_ci};
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_cistatic struct clkdm_dep ipu2_wkup_sleep_deps[] = {
19462306a36Sopenharmony_ci	{ .clkdm_name = "atl_clkdm" },
19562306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
19662306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
19762306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
19862306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
19962306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
20062306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
20162306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
20262306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
20362306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
20462306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
20562306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
20662306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
20762306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
20862306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
20962306a36Sopenharmony_ci	{ .clkdm_name = "l3main1_clkdm" },
21062306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
21162306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
21262306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
21362306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
21462306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
21562306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
21662306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
21762306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
21862306a36Sopenharmony_ci	{ NULL },
21962306a36Sopenharmony_ci};
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_cistatic struct clkdm_dep iva_wkup_sleep_deps[] = {
22262306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
22362306a36Sopenharmony_ci	{ NULL },
22462306a36Sopenharmony_ci};
22562306a36Sopenharmony_ci
22662306a36Sopenharmony_cistatic struct clkdm_dep l3init_wkup_sleep_deps[] = {
22762306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
22862306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
22962306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
23062306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
23162306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
23262306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
23362306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
23462306a36Sopenharmony_ci	{ NULL },
23562306a36Sopenharmony_ci};
23662306a36Sopenharmony_ci
23762306a36Sopenharmony_cistatic struct clkdm_dep l4per2_wkup_sleep_deps[] = {
23862306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
23962306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
24062306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
24162306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
24262306a36Sopenharmony_ci	{ NULL },
24362306a36Sopenharmony_ci};
24462306a36Sopenharmony_ci
24562306a36Sopenharmony_cistatic struct clkdm_dep l4sec_wkup_sleep_deps[] = {
24662306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
24762306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
24862306a36Sopenharmony_ci	{ NULL },
24962306a36Sopenharmony_ci};
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_cistatic struct clkdm_dep mpu_wkup_sleep_deps[] = {
25262306a36Sopenharmony_ci	{ .clkdm_name = "cam_clkdm" },
25362306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
25462306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
25562306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
25662306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
25762306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
25862306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
25962306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
26062306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
26162306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
26262306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
26362306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
26462306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
26562306a36Sopenharmony_ci	{ .clkdm_name = "ipu2_clkdm" },
26662306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
26762306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
26862306a36Sopenharmony_ci	{ .clkdm_name = "l3main1_clkdm" },
26962306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
27062306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
27162306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
27262306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
27362306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
27462306a36Sopenharmony_ci	{ .clkdm_name = "pcie_clkdm" },
27562306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
27662306a36Sopenharmony_ci	{ .clkdm_name = "wkupaon_clkdm" },
27762306a36Sopenharmony_ci	{ NULL },
27862306a36Sopenharmony_ci};
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_cistatic struct clkdm_dep pcie_wkup_sleep_deps[] = {
28162306a36Sopenharmony_ci	{ .clkdm_name = "atl_clkdm" },
28262306a36Sopenharmony_ci	{ .clkdm_name = "cam_clkdm" },
28362306a36Sopenharmony_ci	{ .clkdm_name = "dsp1_clkdm" },
28462306a36Sopenharmony_ci	{ .clkdm_name = "dsp2_clkdm" },
28562306a36Sopenharmony_ci	{ .clkdm_name = "dss_clkdm" },
28662306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
28762306a36Sopenharmony_ci	{ .clkdm_name = "eve1_clkdm" },
28862306a36Sopenharmony_ci	{ .clkdm_name = "eve2_clkdm" },
28962306a36Sopenharmony_ci	{ .clkdm_name = "eve3_clkdm" },
29062306a36Sopenharmony_ci	{ .clkdm_name = "eve4_clkdm" },
29162306a36Sopenharmony_ci	{ .clkdm_name = "gmac_clkdm" },
29262306a36Sopenharmony_ci	{ .clkdm_name = "gpu_clkdm" },
29362306a36Sopenharmony_ci	{ .clkdm_name = "ipu_clkdm" },
29462306a36Sopenharmony_ci	{ .clkdm_name = "ipu1_clkdm" },
29562306a36Sopenharmony_ci	{ .clkdm_name = "iva_clkdm" },
29662306a36Sopenharmony_ci	{ .clkdm_name = "l3init_clkdm" },
29762306a36Sopenharmony_ci	{ .clkdm_name = "l4cfg_clkdm" },
29862306a36Sopenharmony_ci	{ .clkdm_name = "l4per_clkdm" },
29962306a36Sopenharmony_ci	{ .clkdm_name = "l4per2_clkdm" },
30062306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
30162306a36Sopenharmony_ci	{ .clkdm_name = "l4sec_clkdm" },
30262306a36Sopenharmony_ci	{ .clkdm_name = "vpe_clkdm" },
30362306a36Sopenharmony_ci	{ NULL },
30462306a36Sopenharmony_ci};
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_cistatic struct clkdm_dep vpe_wkup_sleep_deps[] = {
30762306a36Sopenharmony_ci	{ .clkdm_name = "emif_clkdm" },
30862306a36Sopenharmony_ci	{ .clkdm_name = "l4per3_clkdm" },
30962306a36Sopenharmony_ci	{ NULL },
31062306a36Sopenharmony_ci};
31162306a36Sopenharmony_ci
31262306a36Sopenharmony_cistatic struct clockdomain l4per3_7xx_clkdm = {
31362306a36Sopenharmony_ci	.name		  = "l4per3_clkdm",
31462306a36Sopenharmony_ci	.pwrdm		  = { .name = "l4per_pwrdm" },
31562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
31662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L4PER_INST,
31762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L4PER_L4PER3_CDOFFS,
31862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L4PER3_STATDEP_SHIFT,
31962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
32062306a36Sopenharmony_ci};
32162306a36Sopenharmony_ci
32262306a36Sopenharmony_cistatic struct clockdomain l4per2_7xx_clkdm = {
32362306a36Sopenharmony_ci	.name		  = "l4per2_clkdm",
32462306a36Sopenharmony_ci	.pwrdm		  = { .name = "l4per_pwrdm" },
32562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
32662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L4PER_INST,
32762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L4PER_L4PER2_CDOFFS,
32862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L4PER2_STATDEP_SHIFT,
32962306a36Sopenharmony_ci	.wkdep_srcs	  = l4per2_wkup_sleep_deps,
33062306a36Sopenharmony_ci	.sleepdep_srcs	  = l4per2_wkup_sleep_deps,
33162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_SWSUP,
33262306a36Sopenharmony_ci};
33362306a36Sopenharmony_ci
33462306a36Sopenharmony_cistatic struct clockdomain mpu0_7xx_clkdm = {
33562306a36Sopenharmony_ci	.name		  = "mpu0_clkdm",
33662306a36Sopenharmony_ci	.pwrdm		  = { .name = "cpu0_pwrdm" },
33762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_MPU_PRCM_PARTITION,
33862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_MPU_PRCM_CM_C0_INST,
33962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_MPU_PRCM_CM_C0_CPU0_CDOFFS,
34062306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
34162306a36Sopenharmony_ci};
34262306a36Sopenharmony_ci
34362306a36Sopenharmony_cistatic struct clockdomain iva_7xx_clkdm = {
34462306a36Sopenharmony_ci	.name		  = "iva_clkdm",
34562306a36Sopenharmony_ci	.pwrdm		  = { .name = "iva_pwrdm" },
34662306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
34762306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_IVA_INST,
34862306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_IVA_IVA_CDOFFS,
34962306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_IVA_STATDEP_SHIFT,
35062306a36Sopenharmony_ci	.wkdep_srcs	  = iva_wkup_sleep_deps,
35162306a36Sopenharmony_ci	.sleepdep_srcs	  = iva_wkup_sleep_deps,
35262306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
35362306a36Sopenharmony_ci};
35462306a36Sopenharmony_ci
35562306a36Sopenharmony_cistatic struct clockdomain coreaon_7xx_clkdm = {
35662306a36Sopenharmony_ci	.name		  = "coreaon_clkdm",
35762306a36Sopenharmony_ci	.pwrdm		  = { .name = "coreaon_pwrdm" },
35862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
35962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_COREAON_INST,
36062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_COREAON_COREAON_CDOFFS,
36162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
36262306a36Sopenharmony_ci};
36362306a36Sopenharmony_ci
36462306a36Sopenharmony_cistatic struct clockdomain ipu1_7xx_clkdm = {
36562306a36Sopenharmony_ci	.name		  = "ipu1_clkdm",
36662306a36Sopenharmony_ci	.pwrdm		  = { .name = "ipu_pwrdm" },
36762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
36862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_IPU_INST,
36962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_IPU_IPU1_CDOFFS,
37062306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_IPU1_STATDEP_SHIFT,
37162306a36Sopenharmony_ci	.wkdep_srcs	  = ipu1_wkup_sleep_deps,
37262306a36Sopenharmony_ci	.sleepdep_srcs	  = ipu1_wkup_sleep_deps,
37362306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
37462306a36Sopenharmony_ci};
37562306a36Sopenharmony_ci
37662306a36Sopenharmony_cistatic struct clockdomain ipu2_7xx_clkdm = {
37762306a36Sopenharmony_ci	.name		  = "ipu2_clkdm",
37862306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
37962306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
38062306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
38162306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_IPU2_CDOFFS,
38262306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_IPU2_STATDEP_SHIFT,
38362306a36Sopenharmony_ci	.wkdep_srcs	  = ipu2_wkup_sleep_deps,
38462306a36Sopenharmony_ci	.sleepdep_srcs	  = ipu2_wkup_sleep_deps,
38562306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
38662306a36Sopenharmony_ci};
38762306a36Sopenharmony_ci
38862306a36Sopenharmony_cistatic struct clockdomain l3init_7xx_clkdm = {
38962306a36Sopenharmony_ci	.name		  = "l3init_clkdm",
39062306a36Sopenharmony_ci	.pwrdm		  = { .name = "l3init_pwrdm" },
39162306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
39262306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L3INIT_INST,
39362306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L3INIT_L3INIT_CDOFFS,
39462306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L3INIT_STATDEP_SHIFT,
39562306a36Sopenharmony_ci	.wkdep_srcs	  = l3init_wkup_sleep_deps,
39662306a36Sopenharmony_ci	.sleepdep_srcs	  = l3init_wkup_sleep_deps,
39762306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
39862306a36Sopenharmony_ci};
39962306a36Sopenharmony_ci
40062306a36Sopenharmony_cistatic struct clockdomain l4sec_7xx_clkdm = {
40162306a36Sopenharmony_ci	.name		  = "l4sec_clkdm",
40262306a36Sopenharmony_ci	.pwrdm		  = { .name = "l4per_pwrdm" },
40362306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
40462306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L4PER_INST,
40562306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L4PER_L4SEC_CDOFFS,
40662306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L4SEC_STATDEP_SHIFT,
40762306a36Sopenharmony_ci	.wkdep_srcs	  = l4sec_wkup_sleep_deps,
40862306a36Sopenharmony_ci	.sleepdep_srcs	  = l4sec_wkup_sleep_deps,
40962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_SWSUP,
41062306a36Sopenharmony_ci};
41162306a36Sopenharmony_ci
41262306a36Sopenharmony_cistatic struct clockdomain l3main1_7xx_clkdm = {
41362306a36Sopenharmony_ci	.name		  = "l3main1_clkdm",
41462306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
41562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
41662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
41762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_L3MAIN1_CDOFFS,
41862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L3MAIN1_STATDEP_SHIFT,
41962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP,
42062306a36Sopenharmony_ci};
42162306a36Sopenharmony_ci
42262306a36Sopenharmony_cistatic struct clockdomain vpe_7xx_clkdm = {
42362306a36Sopenharmony_ci	.name		  = "vpe_clkdm",
42462306a36Sopenharmony_ci	.pwrdm		  = { .name = "vpe_pwrdm" },
42562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
42662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_VPE_INST,
42762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_VPE_VPE_CDOFFS,
42862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_VPE_STATDEP_SHIFT,
42962306a36Sopenharmony_ci	.wkdep_srcs	  = vpe_wkup_sleep_deps,
43062306a36Sopenharmony_ci	.sleepdep_srcs	  = vpe_wkup_sleep_deps,
43162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
43262306a36Sopenharmony_ci};
43362306a36Sopenharmony_ci
43462306a36Sopenharmony_cistatic struct clockdomain mpu_7xx_clkdm = {
43562306a36Sopenharmony_ci	.name		  = "mpu_clkdm",
43662306a36Sopenharmony_ci	.pwrdm		  = { .name = "mpu_pwrdm" },
43762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
43862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_MPU_INST,
43962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_MPU_MPU_CDOFFS,
44062306a36Sopenharmony_ci	.wkdep_srcs	  = mpu_wkup_sleep_deps,
44162306a36Sopenharmony_ci	.sleepdep_srcs	  = mpu_wkup_sleep_deps,
44262306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
44362306a36Sopenharmony_ci};
44462306a36Sopenharmony_ci
44562306a36Sopenharmony_cistatic struct clockdomain custefuse_7xx_clkdm = {
44662306a36Sopenharmony_ci	.name		  = "custefuse_clkdm",
44762306a36Sopenharmony_ci	.pwrdm		  = { .name = "custefuse_pwrdm" },
44862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
44962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CUSTEFUSE_INST,
45062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CUSTEFUSE_CUSTEFUSE_CDOFFS,
45162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
45262306a36Sopenharmony_ci};
45362306a36Sopenharmony_ci
45462306a36Sopenharmony_cistatic struct clockdomain ipu_7xx_clkdm = {
45562306a36Sopenharmony_ci	.name		  = "ipu_clkdm",
45662306a36Sopenharmony_ci	.pwrdm		  = { .name = "ipu_pwrdm" },
45762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
45862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_IPU_INST,
45962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_IPU_IPU_CDOFFS,
46062306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_IPU_STATDEP_SHIFT,
46162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_SWSUP,
46262306a36Sopenharmony_ci};
46362306a36Sopenharmony_ci
46462306a36Sopenharmony_cistatic struct clockdomain mpu1_7xx_clkdm = {
46562306a36Sopenharmony_ci	.name		  = "mpu1_clkdm",
46662306a36Sopenharmony_ci	.pwrdm		  = { .name = "cpu1_pwrdm" },
46762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_MPU_PRCM_PARTITION,
46862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_MPU_PRCM_CM_C1_INST,
46962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_MPU_PRCM_CM_C1_CPU1_CDOFFS,
47062306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
47162306a36Sopenharmony_ci};
47262306a36Sopenharmony_ci
47362306a36Sopenharmony_cistatic struct clockdomain gmac_7xx_clkdm = {
47462306a36Sopenharmony_ci	.name		  = "gmac_clkdm",
47562306a36Sopenharmony_ci	.pwrdm		  = { .name = "l3init_pwrdm" },
47662306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
47762306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L3INIT_INST,
47862306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L3INIT_GMAC_CDOFFS,
47962306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_GMAC_STATDEP_SHIFT,
48062306a36Sopenharmony_ci	.wkdep_srcs	  = gmac_wkup_sleep_deps,
48162306a36Sopenharmony_ci	.sleepdep_srcs	  = gmac_wkup_sleep_deps,
48262306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
48362306a36Sopenharmony_ci};
48462306a36Sopenharmony_ci
48562306a36Sopenharmony_cistatic struct clockdomain l4cfg_7xx_clkdm = {
48662306a36Sopenharmony_ci	.name		  = "l4cfg_clkdm",
48762306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
48862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
48962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
49062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_L4CFG_CDOFFS,
49162306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L4CFG_STATDEP_SHIFT,
49262306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP,
49362306a36Sopenharmony_ci};
49462306a36Sopenharmony_ci
49562306a36Sopenharmony_cistatic struct clockdomain dma_7xx_clkdm = {
49662306a36Sopenharmony_ci	.name		  = "dma_clkdm",
49762306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
49862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
49962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
50062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_DMA_CDOFFS,
50162306a36Sopenharmony_ci	.wkdep_srcs	  = dma_wkup_sleep_deps,
50262306a36Sopenharmony_ci	.sleepdep_srcs	  = dma_wkup_sleep_deps,
50362306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
50462306a36Sopenharmony_ci};
50562306a36Sopenharmony_ci
50662306a36Sopenharmony_cistatic struct clockdomain rtc_7xx_clkdm = {
50762306a36Sopenharmony_ci	.name		  = "rtc_clkdm",
50862306a36Sopenharmony_ci	.pwrdm		  = { .name = "rtc_pwrdm" },
50962306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
51062306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_RTC_INST,
51162306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_RTC_RTC_CDOFFS,
51262306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
51362306a36Sopenharmony_ci};
51462306a36Sopenharmony_ci
51562306a36Sopenharmony_cistatic struct clockdomain pcie_7xx_clkdm = {
51662306a36Sopenharmony_ci	.name		  = "pcie_clkdm",
51762306a36Sopenharmony_ci	.pwrdm		  = { .name = "l3init_pwrdm" },
51862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
51962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L3INIT_INST,
52062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L3INIT_PCIE_CDOFFS,
52162306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_PCIE_STATDEP_SHIFT,
52262306a36Sopenharmony_ci	.wkdep_srcs	  = pcie_wkup_sleep_deps,
52362306a36Sopenharmony_ci	.sleepdep_srcs	  = pcie_wkup_sleep_deps,
52462306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_SWSUP,
52562306a36Sopenharmony_ci};
52662306a36Sopenharmony_ci
52762306a36Sopenharmony_cistatic struct clockdomain atl_7xx_clkdm = {
52862306a36Sopenharmony_ci	.name		  = "atl_clkdm",
52962306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
53062306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
53162306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
53262306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_ATL_CDOFFS,
53362306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_ATL_STATDEP_SHIFT,
53462306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
53562306a36Sopenharmony_ci};
53662306a36Sopenharmony_ci
53762306a36Sopenharmony_cistatic struct clockdomain l3instr_7xx_clkdm = {
53862306a36Sopenharmony_ci	.name		  = "l3instr_clkdm",
53962306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
54062306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
54162306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
54262306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_L3INSTR_CDOFFS,
54362306a36Sopenharmony_ci};
54462306a36Sopenharmony_ci
54562306a36Sopenharmony_cistatic struct clockdomain dss_7xx_clkdm = {
54662306a36Sopenharmony_ci	.name		  = "dss_clkdm",
54762306a36Sopenharmony_ci	.pwrdm		  = { .name = "dss_pwrdm" },
54862306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
54962306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_DSS_INST,
55062306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_DSS_DSS_CDOFFS,
55162306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_DSS_STATDEP_SHIFT,
55262306a36Sopenharmony_ci	.wkdep_srcs	  = dss_wkup_sleep_deps,
55362306a36Sopenharmony_ci	.sleepdep_srcs	  = dss_wkup_sleep_deps,
55462306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
55562306a36Sopenharmony_ci};
55662306a36Sopenharmony_ci
55762306a36Sopenharmony_cistatic struct clockdomain emif_7xx_clkdm = {
55862306a36Sopenharmony_ci	.name		  = "emif_clkdm",
55962306a36Sopenharmony_ci	.pwrdm		  = { .name = "core_pwrdm" },
56062306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
56162306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CORE_INST,
56262306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CORE_EMIF_CDOFFS,
56362306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_EMIF_STATDEP_SHIFT,
56462306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
56562306a36Sopenharmony_ci};
56662306a36Sopenharmony_ci
56762306a36Sopenharmony_cistatic struct clockdomain emu_7xx_clkdm = {
56862306a36Sopenharmony_ci	.name		  = "emu_clkdm",
56962306a36Sopenharmony_ci	.pwrdm		  = { .name = "emu_pwrdm" },
57062306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_PRM_PARTITION,
57162306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_PRM_EMU_CM_INST,
57262306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_PRM_EMU_CM_EMU_CDOFFS,
57362306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
57462306a36Sopenharmony_ci};
57562306a36Sopenharmony_ci
57662306a36Sopenharmony_cistatic struct clockdomain dsp2_7xx_clkdm = {
57762306a36Sopenharmony_ci	.name		  = "dsp2_clkdm",
57862306a36Sopenharmony_ci	.pwrdm		  = { .name = "dsp2_pwrdm" },
57962306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
58062306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_DSP2_INST,
58162306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_DSP2_DSP2_CDOFFS,
58262306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_DSP2_STATDEP_SHIFT,
58362306a36Sopenharmony_ci	.wkdep_srcs	  = dsp2_wkup_sleep_deps,
58462306a36Sopenharmony_ci	.sleepdep_srcs	  = dsp2_wkup_sleep_deps,
58562306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
58662306a36Sopenharmony_ci};
58762306a36Sopenharmony_ci
58862306a36Sopenharmony_cistatic struct clockdomain dsp1_7xx_clkdm = {
58962306a36Sopenharmony_ci	.name		  = "dsp1_clkdm",
59062306a36Sopenharmony_ci	.pwrdm		  = { .name = "dsp1_pwrdm" },
59162306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
59262306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_DSP1_INST,
59362306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_DSP1_DSP1_CDOFFS,
59462306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_DSP1_STATDEP_SHIFT,
59562306a36Sopenharmony_ci	.wkdep_srcs	  = dsp1_wkup_sleep_deps,
59662306a36Sopenharmony_ci	.sleepdep_srcs	  = dsp1_wkup_sleep_deps,
59762306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
59862306a36Sopenharmony_ci};
59962306a36Sopenharmony_ci
60062306a36Sopenharmony_cistatic struct clockdomain cam_7xx_clkdm = {
60162306a36Sopenharmony_ci	.name		  = "cam_clkdm",
60262306a36Sopenharmony_ci	.pwrdm		  = { .name = "cam_pwrdm" },
60362306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
60462306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_CAM_INST,
60562306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_CAM_CAM_CDOFFS,
60662306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_CAM_STATDEP_SHIFT,
60762306a36Sopenharmony_ci	.wkdep_srcs	  = cam_wkup_sleep_deps,
60862306a36Sopenharmony_ci	.sleepdep_srcs	  = cam_wkup_sleep_deps,
60962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_SWSUP,
61062306a36Sopenharmony_ci};
61162306a36Sopenharmony_ci
61262306a36Sopenharmony_cistatic struct clockdomain l4per_7xx_clkdm = {
61362306a36Sopenharmony_ci	.name		  = "l4per_clkdm",
61462306a36Sopenharmony_ci	.pwrdm		  = { .name = "l4per_pwrdm" },
61562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
61662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_L4PER_INST,
61762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_L4PER_L4PER_CDOFFS,
61862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_L4PER_STATDEP_SHIFT,
61962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
62062306a36Sopenharmony_ci};
62162306a36Sopenharmony_ci
62262306a36Sopenharmony_cistatic struct clockdomain gpu_7xx_clkdm = {
62362306a36Sopenharmony_ci	.name		  = "gpu_clkdm",
62462306a36Sopenharmony_ci	.pwrdm		  = { .name = "gpu_pwrdm" },
62562306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_PARTITION,
62662306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_GPU_INST,
62762306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_GPU_GPU_CDOFFS,
62862306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_GPU_STATDEP_SHIFT,
62962306a36Sopenharmony_ci	.wkdep_srcs	  = gpu_wkup_sleep_deps,
63062306a36Sopenharmony_ci	.sleepdep_srcs	  = gpu_wkup_sleep_deps,
63162306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
63262306a36Sopenharmony_ci};
63362306a36Sopenharmony_ci
63462306a36Sopenharmony_cistatic struct clockdomain eve4_7xx_clkdm = {
63562306a36Sopenharmony_ci	.name		  = "eve4_clkdm",
63662306a36Sopenharmony_ci	.pwrdm		  = { .name = "eve4_pwrdm" },
63762306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
63862306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_EVE4_INST,
63962306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_EVE4_EVE4_CDOFFS,
64062306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_EVE4_STATDEP_SHIFT,
64162306a36Sopenharmony_ci	.wkdep_srcs	  = eve4_wkup_sleep_deps,
64262306a36Sopenharmony_ci	.sleepdep_srcs	  = eve4_wkup_sleep_deps,
64362306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
64462306a36Sopenharmony_ci};
64562306a36Sopenharmony_ci
64662306a36Sopenharmony_cistatic struct clockdomain eve2_7xx_clkdm = {
64762306a36Sopenharmony_ci	.name		  = "eve2_clkdm",
64862306a36Sopenharmony_ci	.pwrdm		  = { .name = "eve2_pwrdm" },
64962306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
65062306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_EVE2_INST,
65162306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_EVE2_EVE2_CDOFFS,
65262306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_EVE2_STATDEP_SHIFT,
65362306a36Sopenharmony_ci	.wkdep_srcs	  = eve2_wkup_sleep_deps,
65462306a36Sopenharmony_ci	.sleepdep_srcs	  = eve2_wkup_sleep_deps,
65562306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
65662306a36Sopenharmony_ci};
65762306a36Sopenharmony_ci
65862306a36Sopenharmony_cistatic struct clockdomain eve3_7xx_clkdm = {
65962306a36Sopenharmony_ci	.name		  = "eve3_clkdm",
66062306a36Sopenharmony_ci	.pwrdm		  = { .name = "eve3_pwrdm" },
66162306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
66262306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_EVE3_INST,
66362306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_EVE3_EVE3_CDOFFS,
66462306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_EVE3_STATDEP_SHIFT,
66562306a36Sopenharmony_ci	.wkdep_srcs	  = eve3_wkup_sleep_deps,
66662306a36Sopenharmony_ci	.sleepdep_srcs	  = eve3_wkup_sleep_deps,
66762306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
66862306a36Sopenharmony_ci};
66962306a36Sopenharmony_ci
67062306a36Sopenharmony_cistatic struct clockdomain wkupaon_7xx_clkdm = {
67162306a36Sopenharmony_ci	.name		  = "wkupaon_clkdm",
67262306a36Sopenharmony_ci	.pwrdm		  = { .name = "wkupaon_pwrdm" },
67362306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_PRM_PARTITION,
67462306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_PRM_WKUPAON_CM_INST,
67562306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_PRM_WKUPAON_CM_WKUPAON_CDOFFS,
67662306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_WKUPAON_STATDEP_SHIFT,
67762306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_FORCE_WAKEUP | CLKDM_CAN_HWSUP,
67862306a36Sopenharmony_ci};
67962306a36Sopenharmony_ci
68062306a36Sopenharmony_cistatic struct clockdomain eve1_7xx_clkdm = {
68162306a36Sopenharmony_ci	.name		  = "eve1_clkdm",
68262306a36Sopenharmony_ci	.pwrdm		  = { .name = "eve1_pwrdm" },
68362306a36Sopenharmony_ci	.prcm_partition	  = DRA7XX_CM_CORE_AON_PARTITION,
68462306a36Sopenharmony_ci	.cm_inst	  = DRA7XX_CM_CORE_AON_EVE1_INST,
68562306a36Sopenharmony_ci	.clkdm_offs	  = DRA7XX_CM_CORE_AON_EVE1_EVE1_CDOFFS,
68662306a36Sopenharmony_ci	.dep_bit	  = DRA7XX_EVE1_STATDEP_SHIFT,
68762306a36Sopenharmony_ci	.wkdep_srcs	  = eve1_wkup_sleep_deps,
68862306a36Sopenharmony_ci	.sleepdep_srcs	  = eve1_wkup_sleep_deps,
68962306a36Sopenharmony_ci	.flags		  = CLKDM_CAN_HWSUP_SWSUP,
69062306a36Sopenharmony_ci};
69162306a36Sopenharmony_ci
69262306a36Sopenharmony_ci/* As clockdomains are added or removed above, this list must also be changed */
69362306a36Sopenharmony_cistatic struct clockdomain *clockdomains_dra7xx[] __initdata = {
69462306a36Sopenharmony_ci	&l4per3_7xx_clkdm,
69562306a36Sopenharmony_ci	&l4per2_7xx_clkdm,
69662306a36Sopenharmony_ci	&mpu0_7xx_clkdm,
69762306a36Sopenharmony_ci	&iva_7xx_clkdm,
69862306a36Sopenharmony_ci	&coreaon_7xx_clkdm,
69962306a36Sopenharmony_ci	&ipu1_7xx_clkdm,
70062306a36Sopenharmony_ci	&ipu2_7xx_clkdm,
70162306a36Sopenharmony_ci	&l3init_7xx_clkdm,
70262306a36Sopenharmony_ci	&l4sec_7xx_clkdm,
70362306a36Sopenharmony_ci	&l3main1_7xx_clkdm,
70462306a36Sopenharmony_ci	&vpe_7xx_clkdm,
70562306a36Sopenharmony_ci	&mpu_7xx_clkdm,
70662306a36Sopenharmony_ci	&custefuse_7xx_clkdm,
70762306a36Sopenharmony_ci	&ipu_7xx_clkdm,
70862306a36Sopenharmony_ci	&mpu1_7xx_clkdm,
70962306a36Sopenharmony_ci	&gmac_7xx_clkdm,
71062306a36Sopenharmony_ci	&l4cfg_7xx_clkdm,
71162306a36Sopenharmony_ci	&dma_7xx_clkdm,
71262306a36Sopenharmony_ci	&rtc_7xx_clkdm,
71362306a36Sopenharmony_ci	&pcie_7xx_clkdm,
71462306a36Sopenharmony_ci	&atl_7xx_clkdm,
71562306a36Sopenharmony_ci	&l3instr_7xx_clkdm,
71662306a36Sopenharmony_ci	&dss_7xx_clkdm,
71762306a36Sopenharmony_ci	&emif_7xx_clkdm,
71862306a36Sopenharmony_ci	&emu_7xx_clkdm,
71962306a36Sopenharmony_ci	&dsp2_7xx_clkdm,
72062306a36Sopenharmony_ci	&dsp1_7xx_clkdm,
72162306a36Sopenharmony_ci	&cam_7xx_clkdm,
72262306a36Sopenharmony_ci	&l4per_7xx_clkdm,
72362306a36Sopenharmony_ci	&gpu_7xx_clkdm,
72462306a36Sopenharmony_ci	&eve4_7xx_clkdm,
72562306a36Sopenharmony_ci	&eve2_7xx_clkdm,
72662306a36Sopenharmony_ci	&eve3_7xx_clkdm,
72762306a36Sopenharmony_ci	&wkupaon_7xx_clkdm,
72862306a36Sopenharmony_ci	&eve1_7xx_clkdm,
72962306a36Sopenharmony_ci	NULL
73062306a36Sopenharmony_ci};
73162306a36Sopenharmony_ci
73262306a36Sopenharmony_civoid __init dra7xx_clockdomains_init(void)
73362306a36Sopenharmony_ci{
73462306a36Sopenharmony_ci	clkdm_register_platform_funcs(&omap4_clkdm_operations);
73562306a36Sopenharmony_ci	clkdm_register_clkdms(clockdomains_dra7xx);
73662306a36Sopenharmony_ci	clkdm_complete_init();
73762306a36Sopenharmony_ci}
738