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
3441952f
Commit
3441952f
authored
Aug 28, 2019
by
Paul Beesley
Committed by
TrustedFirmware Code Review
Aug 28, 2019
Browse files
Merge "intel: agilex: Clear PLL lostlock bypass mode" into integration
parents
de580488
960a12b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/intel/soc/agilex/include/agilex_clock_manager.h
View file @
3441952f
...
...
@@ -33,6 +33,7 @@
#define CLKMGR_MAINPLL_PLLC2 0x40
#define CLKMGR_MAINPLL_PLLC3 0x44
#define CLKMGR_MAINPLL_PLLM 0x48
#define CLKMGR_MAINPLL_LOSTLOCK 0x54
/* Peripheral PLL Group */
#define CLKMGR_PERPLL 0xffd1007c
...
...
@@ -50,6 +51,7 @@
#define CLKMGR_PERPLL_PLLC2 0x3c
#define CLKMGR_PERPLL_PLLC3 0x40
#define CLKMGR_PERPLL_PLLM 0x44
#define CLKMGR_PERPLL_LOSTLOCK 0x50
/* Altera Group */
#define CLKMGR_ALTERA 0xffd100d0
...
...
@@ -112,6 +114,7 @@
#define CLKMGR_VCOCALIB_HSCNT_SET(x) (((x) << 0) & 0x000003ff)
#define CLKMGR_VCOCALIB_MSCNT_SET(x) (((x) << 16) & 0x00ff0000)
#define CLKMGR_CLR_LOSTLOCK_BYPASS 0x20000000
typedef
struct
{
uint32_t
clk_freq_of_eosc1
;
...
...
plat/intel/soc/agilex/soc/agilex_clock_manager.c
View file @
3441952f
...
...
@@ -222,6 +222,16 @@ void config_clkmgr_handoff(handoff *hoff_ptr)
mmio_write_32
(
CLKMGR_ALTERA
+
CLKMGR_ALTERA_PSIREFCTR
,
hoff_ptr
->
alt_psirefctr
);
/* Clear lost lock bypass mode */
mmio_write_32
(
CLKMGR_MAINPLL
+
CLKMGR_MAINPLL_LOSTLOCK
,
0x1
);
mmio_write_32
(
CLKMGR_PERPLL
+
CLKMGR_PERPLL_LOSTLOCK
,
0x1
);
mmio_setbits_32
(
CLKMGR_MAINPLL
+
CLKMGR_MAINPLL_PLLGLOB
,
CLKMGR_CLR_LOSTLOCK_BYPASS
);
mmio_setbits_32
(
CLKMGR_PERPLL
+
CLKMGR_PERPLL_PLLGLOB
,
CLKMGR_CLR_LOSTLOCK_BYPASS
);
/* Take all PLLs out of bypass */
mmio_write_32
(
CLKMGR_MAINPLL
+
CLKMGR_MAINPLL_BYPASS
,
0
);
wait_fsm
();
...
...
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