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
8fdb86bd
Commit
8fdb86bd
authored
May 28, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
May 28, 2020
Browse files
Merge "drivers: stm32mp1 clocks: support shifted clock selector bit masks" into integration
parents
ac0b926f
8ae08dcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/st/clk/stm32mp1_clk.c
View file @
8fdb86bd
...
...
@@ -310,7 +310,8 @@ struct stm32mp1_clk_pll {
[_ ## _label ## _SEL] = { \
.offset = _rcc_selr, \
.src = _rcc_selr ## _ ## _label ## SRC_SHIFT, \
.msk = _rcc_selr ## _ ## _label ## SRC_MASK, \
.msk = (_rcc_selr ## _ ## _label ## SRC_MASK) >> \
(_rcc_selr ## _ ## _label ## SRC_SHIFT), \
.parent = (_parents), \
.nb_parent = ARRAY_SIZE(_parents) \
}
...
...
@@ -697,7 +698,8 @@ static int stm32mp1_clk_get_parent(unsigned long id)
}
sel
=
clk_sel_ref
(
s
);
p_sel
=
(
mmio_read_32
(
rcc_base
+
sel
->
offset
)
&
sel
->
msk
)
>>
sel
->
src
;
p_sel
=
(
mmio_read_32
(
rcc_base
+
sel
->
offset
)
&
(
sel
->
msk
<<
sel
->
src
))
>>
sel
->
src
;
if
(
p_sel
<
sel
->
nb_parent
)
{
return
(
int
)
sel
->
parent
[
p_sel
];
}
...
...
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