Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
u-boot-imx
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arm-boot
u-boot-imx
Commits
c67aadf4
Commit
c67aadf4
authored
Jan 24, 2019
by
Jose Miquel Sanabria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IGEP0046QDL: Added LED sequence to comply for ISEE Test LED Code
Signed-off-by:
Jose Miguel Sanchez Sanabria
<
jsanabria@iseebcn.com
>
parent
042a7cb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
igep0046.c
board/isee/igep0046/igep0046.c
+18
-5
No files found.
board/isee/igep0046/igep0046.c
View file @
c67aadf4
...
...
@@ -86,6 +86,12 @@ DECLARE_GLOBAL_DATA_PTR;
#define PCB_REV_C 3
#define PCB_REV_D10 4
/* Dual Lite case */
#define GPIO_LED_RED1 IMX_GPIO_NR(4, 18)
#define GPIO_LED_GREEN1 IMX_GPIO_NR(4, 19)
#define GPIO_LED_RED2 IMX_GPIO_NR(4, 20)
#define GPIO_LED_GREEN2 IMX_GPIO_NR(4, 17)
int
dram_init
(
void
)
{
gd
->
ram_size
=
imx_ddr_size
();
...
...
@@ -416,17 +422,23 @@ int board_early_init_f(void)
imx_iomux_v3_setup_multiple_pads
(
init_pads
,
ARRAY_SIZE
(
init_pads
));
/* configure LEDS */
gpio_direction_output
(
IMX_GPIO_NR
(
4
,
18
),
0
);
gpio_direction_output
(
IMX_GPIO_NR
(
4
,
19
)
,
1
);
gpio_direction_output
(
IMX_GPIO_NR
(
4
,
20
)
,
0
);
gpio_direction_output
(
IMX_GPIO_NR
(
4
,
17
),
1
);
/* configure LEDS
- SPL = 1 YELLOW
*/
gpio_direction_output
(
GPIO_LED_RED1
,
1
);
gpio_direction_output
(
GPIO_LED_GREEN1
,
1
);
gpio_direction_output
(
GPIO_LED_RED2
,
0
);
gpio_direction_output
(
GPIO_LED_GREEN2
,
0
);
return
0
;
}
int
board_init
(
void
)
{
/* configure LEDS - UBOOT = 2 YELLOW */
gpio_direction_output
(
GPIO_LED_RED1
,
1
);
gpio_direction_output
(
GPIO_LED_GREEN1
,
1
);
gpio_direction_output
(
GPIO_LED_RED2
,
1
);
gpio_direction_output
(
GPIO_LED_GREEN2
,
1
);
#ifdef CONFIG_BASE0040
reset_audio
();
#endif
...
...
@@ -958,6 +970,7 @@ void board_init_f(ulong dummy)
/* its our chance to print info about boot device */
void
spl_board_init
(
void
)
{
/* determine boot device from SRC_SBMR1 (BOOT_CFG[4:1]) or SRC_GPR9 */
u32
boot_device
=
spl_boot_device
();
...
...
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