Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
u-boot-stm32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
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
Sami Nurmenniemi
u-boot-stm32
Commits
ef06ccd3
Commit
ef06ccd3
authored
Nov 12, 2016
by
Yuri Tikhonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RM-828 UCL-BSB: set LCD_DIM (100% brightness) to display splash
Signed-off-by:
Yuri Tikhonov
<
yur@emcraft.com
>
parent
c5ee0342
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
board/emcraft/stm32f7-som/board.c
board/emcraft/stm32f7-som/board.c
+14
-8
No files found.
board/emcraft/stm32f7-som/board.c
View file @
ef06ccd3
...
...
@@ -226,20 +226,26 @@ static const struct stm32f2_gpio_dsc ltdc_iomux[] = {
#ifdef CONFIG_SYS_BOARD_UCL_BSB
/*
*
Enable peripheral power
*
Configure GPIOs
*/
static
int
pwr_setup_gpio
(
void
)
{
struct
stm32f2_gpio_dsc
pwr_en_gpio
=
{
STM32F2_GPIO_PORT_F
,
STM32F2_GPIO_PIN_10
struct
stm32f2_gpio_dsc
pwr_en_gpio
[]
=
{
{
STM32F2_GPIO_PORT_F
,
STM32F2_GPIO_PIN_10
},
/* PWR_EN */
{
STM32F2_GPIO_PORT_I
,
STM32F2_GPIO_PIN_0
},
/* LCD_DIM */
};
int
rv
;
int
i
,
rv
;
rv
=
stm32f2_gpio_config
(
&
pwr_en_gpio
,
STM32F2_GPIO_ROLE_GPOUT
);
if
(
rv
)
goto
out
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
pwr_en_gpio
);
i
++
)
{
rv
=
stm32f2_gpio_config
(
&
pwr_en_gpio
[
i
],
STM32F2_GPIO_ROLE_GPOUT
);
if
(
rv
)
goto
out
;
rv
=
stm32f2_gpout_set
(
&
pwr_en_gpio
,
1
);
rv
=
stm32f2_gpout_set
(
&
pwr_en_gpio
[
i
],
1
);
if
(
rv
)
goto
out
;
}
out:
return
rv
;
}
...
...
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