This commit is contained in:
2025-08-09 12:18:49 -05:00
parent d60c16a6dd
commit 4b7f7e8406

View File

@@ -1827,7 +1827,7 @@ static int tegra_powergate_init(struct tegra_pmc *pmc,
if (!np)
return 0;
for_each_child_of_node_scoped(np, child) {
for_each_available_child_of_node_scoped(np, child) {
err = tegra_powergate_add(pmc, child);
if (err < 0)
break;
@@ -3966,6 +3966,32 @@ static const char * const tegra210_powergates[] = {
[TEGRA_POWERGATE_VE2] = "ve2",
};
static const char * const tegra210b01_powergates[] = {
[TEGRA_POWERGATE_CPU] = "crail",
[TEGRA_POWERGATE_3D] = "3d",
[TEGRA_POWERGATE_PCIE] = "pcie",
[TEGRA_POWERGATE_MPE] = "mpe",
[TEGRA_POWERGATE_SATA] = "sata",
[TEGRA_POWERGATE_CPU1] = "cpu1",
[TEGRA_POWERGATE_CPU2] = "cpu2",
[TEGRA_POWERGATE_CPU3] = "cpu3",
[TEGRA_POWERGATE_CPU0] = "cpu0",
[TEGRA_POWERGATE_C0NC] = "c0nc",
[TEGRA_POWERGATE_SOR] = "sor",
[TEGRA_POWERGATE_DIS] = "dis",
[TEGRA_POWERGATE_DISB] = "disb",
[TEGRA_POWERGATE_XUSBA] = "xusba",
[TEGRA_POWERGATE_XUSBB] = "xusbb",
[TEGRA_POWERGATE_XUSBC] = "xusbc",
[TEGRA_POWERGATE_VIC] = "vic",
[TEGRA_POWERGATE_IRAM] = "iram",
[TEGRA_POWERGATE_NVDEC] = "nvdec",
[TEGRA_POWERGATE_NVJPG] = "nvjpg",
[TEGRA_POWERGATE_AUD] = "aud",
[TEGRA_POWERGATE_DFD] = "dfd",
};
static const u8 tegra210_cpu_powergates[] = {
TEGRA_POWERGATE_CPU0,
TEGRA_POWERGATE_CPU1,
@@ -4188,13 +4214,13 @@ static const struct pinctrl_pin_desc tegra210b01_pin_descs[] = {
static const struct tegra_pmc_soc tegra210b01_pmc_soc = {
.supports_core_domain = false,
.num_powergates = ARRAY_SIZE(tegra210_powergates),
.powergates = tegra210_powergates,
.num_powergates = ARRAY_SIZE(tegra210b01_powergates),
.powergates = tegra210b01_powergates,
.num_cpu_powergates = ARRAY_SIZE(tegra210_cpu_powergates),
.cpu_powergates = tegra210_cpu_powergates,
.has_tsense_reset = true,
.has_gpu_clamps = true,
.needs_mbist_war = true,
.needs_mbist_war = false,
.has_impl_33v_pwr = false,
.maybe_tz_only = true,
.has_bootrom_command = true,