Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6de7abfb
Commit
6de7abfb
authored
Aug 03, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARCv2: [axs103_smp] Reduce clk for Quad FPGA configs
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
e13c42ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
arch/arc/plat-axs10x/axs10x.c
arch/arc/plat-axs10x/axs10x.c
+15
-0
No files found.
arch/arc/plat-axs10x/axs10x.c
View file @
6de7abfb
...
...
@@ -389,6 +389,21 @@ axs103_set_freq(unsigned int id, unsigned int fd, unsigned int od)
static
void
__init
axs103_early_init
(
void
)
{
/*
* AXS103 configurations for SMP/QUAD configurations share device tree
* which defaults to 90 MHz. However recent failures of Quad config
* revealed P&R timing violations so clamp it down to safe 50 MHz
* Instead of duplicating defconfig/DT for SMP/QUAD, add a small hack
*
* This hack is really hacky as of now. Fix it properly by getting the
* number of cores as return value of platform's early SMP callback
*/
#ifdef CONFIG_ARC_MCIP
unsigned
int
num_cores
=
(
read_aux_reg
(
ARC_REG_MCIP_BCR
)
>>
16
)
&
0x3F
;
if
(
num_cores
>
2
)
arc_set_core_freq
(
50
*
1000000
);
#endif
switch
(
arc_get_core_freq
()
/
1000000
)
{
case
33
:
axs103_set_freq
(
1
,
1
,
1
);
...
...
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