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
cinap_lenrek
reform-boundary-uboot
Commits
b724d929
Commit
b724d929
authored
2 years ago
by
cinap_lenrek
Browse files
Options
Downloads
Patches
Plain Diff
reset usb hub after usb_stop() (thanks sigrid!)
parent
278763f0
No related branches found
No related tags found
No related merge requests found
Pipeline
#843
canceled
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+14
-7
14 additions, 7 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
with
14 additions
and
7 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+
14
−
7
View file @
b724d929
...
...
@@ -359,17 +359,23 @@ void board_set_default_env(void)
board_eth_addresses
();
}
static
void
reset_usb_hub
(
void
)
{
// 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
);
}
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
);
reset_usb_hub
();
#if defined(CONFIG_USB_FUNCTION_FASTBOOT) || defined(CONFIG_CMD_DFU)
addserial_env
(
"serial#"
);
...
...
@@ -398,6 +404,7 @@ board_quiesce_devices(void)
extern
void
video_hw_exit
(
void
);
/* lcdif.c */
usb_stop
();
reset_usb_hub
();
/*
* Linux kermel mode setting seems to fail to
...
...
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