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
a2547996
Commit
a2547996
authored
Jul 16, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jul 16, 2020
Browse files
Merge "drivers/stm32_gpio: register GPIO resources as secure or not" into integration
parents
aa8390c2
66de6f3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/st/gpio/stm32_gpio.c
View file @
a2547996
...
@@ -254,6 +254,15 @@ void set_gpio(uint32_t bank, uint32_t pin, uint32_t mode, uint32_t speed,
...
@@ -254,6 +254,15 @@ void set_gpio(uint32_t bank, uint32_t pin, uint32_t mode, uint32_t speed,
mmio_read_32
(
base
+
GPIO_AFRH_OFFSET
));
mmio_read_32
(
base
+
GPIO_AFRH_OFFSET
));
stm32mp_clk_disable
(
clock
);
stm32mp_clk_disable
(
clock
);
if
(
status
==
DT_SECURE
)
{
stm32mp_register_secure_gpio
(
bank
,
pin
);
set_gpio_secure_cfg
(
bank
,
pin
,
true
);
}
else
{
stm32mp_register_non_secure_gpio
(
bank
,
pin
);
set_gpio_secure_cfg
(
bank
,
pin
,
false
);
}
}
}
void
set_gpio_secure_cfg
(
uint32_t
bank
,
uint32_t
pin
,
bool
secure
)
void
set_gpio_secure_cfg
(
uint32_t
bank
,
uint32_t
pin
,
bool
secure
)
...
...
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