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
dd1eb34a
Commit
dd1eb34a
authored
May 28, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
May 28, 2020
Browse files
Merge "drivers: stm32mp1 clocks: fix debug trace on clock enable/disable" into integration
parents
48b6f178
25be845e
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/st/clk/stm32mp1_clk.c
View file @
dd1eb34a
...
...
@@ -988,27 +988,27 @@ static void __clk_enable(struct stm32mp1_clk_gate const *gate)
{
uintptr_t
rcc_base
=
stm32mp_rcc_base
();
VERBOSE
(
"Enable clock %u
\n
"
,
gate
->
index
);
if
(
gate
->
set_clr
!=
0U
)
{
mmio_write_32
(
rcc_base
+
gate
->
offset
,
BIT
(
gate
->
bit
));
}
else
{
mmio_setbits_32
(
rcc_base
+
gate
->
offset
,
BIT
(
gate
->
bit
));
}
VERBOSE
(
"Clock %d has been enabled"
,
gate
->
index
);
}
static
void
__clk_disable
(
struct
stm32mp1_clk_gate
const
*
gate
)
{
uintptr_t
rcc_base
=
stm32mp_rcc_base
();
VERBOSE
(
"Disable clock %u
\n
"
,
gate
->
index
);
if
(
gate
->
set_clr
!=
0U
)
{
mmio_write_32
(
rcc_base
+
gate
->
offset
+
RCC_MP_ENCLRR_OFFSET
,
BIT
(
gate
->
bit
));
}
else
{
mmio_clrbits_32
(
rcc_base
+
gate
->
offset
,
BIT
(
gate
->
bit
));
}
VERBOSE
(
"Clock %d has been disabled"
,
gate
->
index
);
}
static
bool
__clk_is_enabled
(
struct
stm32mp1_clk_gate
const
*
gate
)
...
...
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