Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Schauer Marin Rodrigues
reform-boundary-uboot
Commits
35759407
Commit
35759407
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
MNT Reform: board: fix indentation, reset USB hub, console on tty1
parent
7d4327e9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+23
-14
23 additions, 14 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
with
23 additions
and
14 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+
23
−
14
View file @
35759407
...
...
@@ -230,14 +230,13 @@ int board_usb_init(int index, enum usb_init_type init)
return
ret
;
}
if
(
index
==
1
)
{
/* Release HUB reset */
/*if (index == 1) {
#define GP_USB1_HUB_RESET IMX_GPIO_NR(1, 14)
imx_iomux_v3_setup_pad(IMX8MQ_PAD_GPIO1_IO14__GPIO1_IO14 |
MUX_PAD_CTRL(WEAK_PULLUP));
gpio_request(GP_USB1_HUB_RESET, "usb1_rst");
gpio_direction_output(GP_USB1_HUB_RESET, 1);
}
}*/
return
0
;
}
...
...
@@ -331,8 +330,9 @@ static void set_env_vars(void)
// MNT Reform 2
env_set
(
"fdt_addr"
,
"0x50000000"
);
env_set
(
"bootargs"
,
"noinitrd root=/dev/mmcblk1p1 rootwait rw console=ttymxc0,115200 cma=512M no_console_suspend pci=nomsi"
);
env_set
(
"bootargs"
,
"noinitrd root=/dev/mmcblk1p1 rootwait rw console=ttymxc0,115200
console=tty1
cma=512M no_console_suspend pci=nomsi"
);
env_set
(
"bootcmd"
,
"ext4load mmc 1 ${loadaddr} /Image; ext4load mmc 1 ${fdt_addr} /imx8mq-mnt-reform2.dtb; booti ${loadaddr} - ${fdt_addr}"
);
env_set
(
"bootdelay"
,
"1"
);
}
void
board_set_default_env
(
void
)
...
...
@@ -347,6 +347,15 @@ void board_set_default_env(void)
int
board_late_init
(
void
)
{
set_env_vars
();
// Reform: Reset USB hub
imx_iomux_v3_setup_pad
(
IMX8MQ_PAD_GPIO1_IO14__GPIO1_IO14
|
MUX_PAD_CTRL
(
WEAK_PULLUP
));
gpio_request
(
IMX_GPIO_NR
(
1
,
14
),
"usb1_rst"
);
gpio_direction_output
(
IMX_GPIO_NR
(
1
,
14
),
1
);
gpio_set_value
(
IMX_GPIO_NR
(
1
,
14
),
0
);
mdelay
(
10
);
gpio_set_value
(
IMX_GPIO_NR
(
1
,
14
),
1
);
#if defined(CONFIG_USB_FUNCTION_FASTBOOT) || defined(CONFIG_CMD_DFU)
addserial_env
(
"serial#"
);
if
(
fastboot_key_pressed
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment