Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
L
linux-next
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sebastian Krzyszkowiak
linux-next
Commits
877cd1b7
Verified
Commit
877cd1b7
authored
Apr 02, 2020
by
Sebastian Krzyszkowiak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devfreq hack
parent
ef903bb1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+3
-0
arch/arm64/boot/dts/freescale/imx8mq.dtsi
arch/arm64/boot/dts/freescale/imx8mq.dtsi
+3
-0
drivers/devfreq/imx8m-ddrc.c
drivers/devfreq/imx8m-ddrc.c
+2
-2
No files found.
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
View file @
877cd1b7
...
...
@@ -479,6 +479,9 @@ opp-100M {
opp
-
800
M
{
opp
-
hz
=
/
bits
/
64
<
800000000
>;
};
opp
-
801
M
{
opp
-
hz
=
/
bits
/
64
<
800000001
>;
};
};
};
...
...
arch/arm64/boot/dts/freescale/imx8mq.dtsi
View file @
877cd1b7
...
...
@@ -1252,6 +1252,9 @@ opp-133M {
opp-400M {
opp-hz = /bits/ 64 <400000000>;
};
opp-401M {
opp-hz = /bits/ 64 <400000001>;
};
opp-800M {
opp-hz = /bits/ 64 <800000000>;
};
...
...
drivers/devfreq/imx8m-ddrc.c
View file @
877cd1b7
...
...
@@ -244,7 +244,7 @@ static int imx8m_ddrc_target(struct device *dev, unsigned long *freq, u32 flags)
dev_pm_opp_put
(
new_opp
);
old_freq
=
clk_get_rate
(
priv
->
dram_core
);
if
(
*
freq
==
old_freq
)
if
(
DIV_ROUND_CLOSEST
(
*
freq
,
250000
)
==
DIV_ROUND_CLOSEST
(
old_freq
,
250000
)
)
return
0
;
freq_info
=
imx8m_ddrc_find_freq
(
priv
,
*
freq
);
...
...
@@ -261,7 +261,7 @@ static int imx8m_ddrc_target(struct device *dev, unsigned long *freq, u32 flags)
if
(
ret
)
dev_err
(
dev
,
"ddrc failed freq switch to %lu from %lu: error %d. now at %lu
\n
"
,
*
freq
,
old_freq
,
ret
,
new_freq
);
else
if
(
*
freq
!=
new_freq
)
else
if
(
DIV_ROUND_CLOSEST
(
*
freq
,
250000
)
!=
DIV_ROUND_CLOSEST
(
new_freq
,
250000
)
)
dev_err
(
dev
,
"ddrc failed freq update to %lu from %lu, now at %lu
\n
"
,
*
freq
,
old_freq
,
new_freq
);
else
...
...
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