Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
c40c88f8
Unverified
Commit
c40c88f8
authored
Jan 21, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Jan 21, 2019
Browse files
Merge pull request #1764 from vwadekar/tf2.0-tegra-downstream-rebase-1.7.19
Tf2.0 tegra downstream rebase 1.7.19
parents
fbf35335
650d9c52
Changes
42
Hide whitespace changes
Inline
Side-by-side
plat/nvidia/tegra/soc/t210/plat_psci_handlers.c
View file @
c40c88f8
...
@@ -177,16 +177,6 @@ int tegra_soc_pwr_domain_suspend(const psci_power_state_t *target_state)
...
@@ -177,16 +177,6 @@ int tegra_soc_pwr_domain_suspend(const psci_power_state_t *target_state)
if
(
tegra_se_suspend
()
!=
0
)
{
if
(
tegra_se_suspend
()
!=
0
)
{
ret
=
PSCI_E_INTERN_FAIL
;
ret
=
PSCI_E_INTERN_FAIL
;
}
}
/* Save tzram contents */
if
(
tegra_se_save_tzram
()
!=
0
)
{
ret
=
PSCI_E_INTERN_FAIL
;
}
}
/* enter system suspend */
if
(
ret
==
PSCI_E_SUCCESS
)
{
tegra_fc_soc_powerdn
(
mpidr
);
}
}
}
else
if
(
stateid_afflvl1
==
PSTATE_ID_CLUSTER_IDLE
)
{
}
else
if
(
stateid_afflvl1
==
PSTATE_ID_CLUSTER_IDLE
)
{
...
@@ -217,6 +207,27 @@ int tegra_soc_pwr_domain_suspend(const psci_power_state_t *target_state)
...
@@ -217,6 +207,27 @@ int tegra_soc_pwr_domain_suspend(const psci_power_state_t *target_state)
return
ret
;
return
ret
;
}
}
int
tegra_soc_pwr_domain_power_down_wfi
(
const
psci_power_state_t
*
target_state
)
{
u_register_t
mpidr
=
read_mpidr
();
const
plat_local_state_t
*
pwr_domain_state
=
target_state
->
pwr_domain_state
;
unsigned
int
stateid_afflvl2
=
pwr_domain_state
[
PLAT_MAX_PWR_LVL
];
if
(
stateid_afflvl2
==
PSTATE_ID_SOC_POWERDN
)
{
if
(
tegra_chipid_is_t210_b01
())
{
/* Save tzram contents */
tegra_se_save_tzram
();
}
/* enter system suspend */
tegra_fc_soc_powerdn
(
mpidr
);
}
return
PSCI_E_SUCCESS
;
}
int
tegra_soc_pwr_domain_on_finish
(
const
psci_power_state_t
*
target_state
)
int
tegra_soc_pwr_domain_on_finish
(
const
psci_power_state_t
*
target_state
)
{
{
const
plat_params_from_bl2_t
*
plat_params
=
bl31_get_plat_params
();
const
plat_params_from_bl2_t
*
plat_params
=
bl31_get_plat_params
();
...
...
plat/nvidia/tegra/soc/t210/platform_t210.mk
View file @
c40c88f8
...
@@ -19,7 +19,7 @@ $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
...
@@ -19,7 +19,7 @@ $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
MAX_XLAT_TABLES
:=
10
MAX_XLAT_TABLES
:=
10
$(eval
$(call
add_define,MAX_XLAT_TABLES))
$(eval
$(call
add_define,MAX_XLAT_TABLES))
MAX_MMAP_REGIONS
:=
1
0
MAX_MMAP_REGIONS
:=
1
5
$(eval
$(call
add_define,MAX_MMAP_REGIONS))
$(eval
$(call
add_define,MAX_MMAP_REGIONS))
PLAT_INCLUDES
+=
-I
${SOC_DIR}
/drivers/se
PLAT_INCLUDES
+=
-I
${SOC_DIR}
/drivers/se
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment