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
287a81df
Commit
287a81df
authored
Dec 17, 2019
by
Soby Mathew
Committed by
TrustedFirmware Code Review
Dec 17, 2019
Browse files
Merge "plat/rockchip: enable power domains of rk3399 before reset" into integration
parents
37ebe8e5
b4899041
Changes
3
Hide whitespace changes
Inline
Side-by-side
plat/rockchip/rk3399/drivers/pmu/pmu.c
View file @
287a81df
...
@@ -400,6 +400,25 @@ static void pmu_power_domains_resume(void)
...
@@ -400,6 +400,25 @@ static void pmu_power_domains_resume(void)
clk_gate_con_restore
();
clk_gate_con_restore
();
}
}
void
pmu_power_domains_on
(
void
)
{
clk_gate_con_disable
();
pmu_set_power_domain
(
PD_VDU
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_VCODEC
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_RGA
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_IEP
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_EDP
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_GMAC
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_SDIOAUDIO
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_HDCP
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_ISP1
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_ISP0
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_VO
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_TCPD1
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_TCPD0
,
pmu_pd_on
);
pmu_set_power_domain
(
PD_GPU
,
pmu_pd_on
);
}
void
rk3399_flush_l2_b
(
void
)
void
rk3399_flush_l2_b
(
void
)
{
{
uint32_t
wait_cnt
=
0
;
uint32_t
wait_cnt
=
0
;
...
...
plat/rockchip/rk3399/drivers/pmu/pmu.h
View file @
287a81df
...
@@ -136,5 +136,6 @@ struct pmu_slpdata_s {
...
@@ -136,5 +136,6 @@ struct pmu_slpdata_s {
extern
uint32_t
clst_warmboot_data
[
PLATFORM_CLUSTER_COUNT
];
extern
uint32_t
clst_warmboot_data
[
PLATFORM_CLUSTER_COUNT
];
extern
void
sram_func_set_ddrctl_pll
(
uint32_t
pll_src
);
extern
void
sram_func_set_ddrctl_pll
(
uint32_t
pll_src
);
void
pmu_power_domains_on
(
void
);
#endif
/* PMU_H */
#endif
/* PMU_H */
plat/rockchip/rk3399/drivers/soc/soc.c
View file @
287a81df
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <dram.h>
#include <dram.h>
#include <m0_ctl.h>
#include <m0_ctl.h>
#include <plat_private.h>
#include <plat_private.h>
#include <pmu.h>
#include <rk3399_def.h>
#include <rk3399_def.h>
#include <secure.h>
#include <secure.h>
#include <soc.h>
#include <soc.h>
...
@@ -327,6 +328,7 @@ void soc_global_soft_reset_init(void)
...
@@ -327,6 +328,7 @@ void soc_global_soft_reset_init(void)
void
__dead2
soc_global_soft_reset
(
void
)
void
__dead2
soc_global_soft_reset
(
void
)
{
{
pmu_power_domains_on
();
set_pll_slow_mode
(
VPLL_ID
);
set_pll_slow_mode
(
VPLL_ID
);
set_pll_slow_mode
(
NPLL_ID
);
set_pll_slow_mode
(
NPLL_ID
);
set_pll_slow_mode
(
GPLL_ID
);
set_pll_slow_mode
(
GPLL_ID
);
...
...
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