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
Jack Humbert
reform-boundary-uboot
Commits
95246ac7
Commit
95246ac7
authored
9 years ago
by
Otavio Salvador
Committed by
Stefano Babic
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cgtqmx6eval: Add USB support
Add USB support. Signed-off-by:
Otavio Salvador
<
otavio@ossystems.com.br
>
parent
4c9929d6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/congatec/cgtqmx6eval/cgtqmx6eval.c
+44
-0
44 additions, 0 deletions
board/congatec/cgtqmx6eval/cgtqmx6eval.c
include/configs/cgtqmx6eval.h
+15
-0
15 additions, 0 deletions
include/configs/cgtqmx6eval.h
with
59 additions
and
0 deletions
board/congatec/cgtqmx6eval/cgtqmx6eval.c
+
44
−
0
View file @
95246ac7
...
@@ -88,6 +88,11 @@ static iomux_v3_cfg_t const usdhc4_pads[] = {
...
@@ -88,6 +88,11 @@ static iomux_v3_cfg_t const usdhc4_pads[] = {
MX6_PAD_NANDF_D6__GPIO2_IO06
|
MUX_PAD_CTRL
(
NO_PAD_CTRL
),
/* CD */
MX6_PAD_NANDF_D6__GPIO2_IO06
|
MUX_PAD_CTRL
(
NO_PAD_CTRL
),
/* CD */
};
};
static
iomux_v3_cfg_t
const
usb_otg_pads
[]
=
{
MX6_PAD_EIM_D22__USB_OTG_PWR
|
MUX_PAD_CTRL
(
NO_PAD_CTRL
),
MX6_PAD_GPIO_1__USB_OTG_ID
|
MUX_PAD_CTRL
(
NO_PAD_CTRL
),
};
#define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
#define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
struct
i2c_pads_info
i2c_pad_info1
=
{
struct
i2c_pads_info
i2c_pad_info1
=
{
.
scl
=
{
.
scl
=
{
...
@@ -219,6 +224,45 @@ int board_mmc_init(bd_t *bis)
...
@@ -219,6 +224,45 @@ int board_mmc_init(bd_t *bis)
}
}
#endif
#endif
int
board_ehci_hcd_init
(
int
port
)
{
switch
(
port
)
{
case
0
:
imx_iomux_v3_setup_multiple_pads
(
usb_otg_pads
,
ARRAY_SIZE
(
usb_otg_pads
));
/*
* set daisy chain for otg_pin_id on 6q.
* for 6dl, this bit is reserved
*/
imx_iomux_set_gpr_register
(
1
,
13
,
1
,
1
);
break
;
case
1
:
/* nothing to do */
break
;
default:
printf
(
"Invalid USB port: %d
\n
"
,
port
);
return
-
EINVAL
;
}
return
0
;
}
int
board_ehci_power
(
int
port
,
int
on
)
{
switch
(
port
)
{
case
0
:
break
;
case
1
:
gpio_direction_output
(
IMX_GPIO_NR
(
5
,
5
),
on
);
break
;
default:
printf
(
"Invalid USB port: %d
\n
"
,
port
);
return
-
EINVAL
;
}
return
0
;
}
int
board_early_init_f
(
void
)
int
board_early_init_f
(
void
)
{
{
setup_iomux_uart
();
setup_iomux_uart
();
...
...
This diff is collapsed.
Click to expand it.
include/configs/cgtqmx6eval.h
+
15
−
0
View file @
95246ac7
...
@@ -53,6 +53,21 @@
...
@@ -53,6 +53,21 @@
#define CONFIG_POWER_PFUZE100
#define CONFIG_POWER_PFUZE100
#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
/* USB Configs */
#define CONFIG_CMD_USB
#define CONFIG_CMD_FAT
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_MX6
#define CONFIG_USB_STORAGE
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
#define CONFIG_MXC_USB_FLAGS 0
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
/* Enabled USB controller number */
#define CONFIG_USB_KEYBOARD
#define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP
#define CONFIG_DEFAULT_FDT_FILE "imx6q-congatec.dtb"
#define CONFIG_DEFAULT_FDT_FILE "imx6q-congatec.dtb"
#define CONFIG_EXTRA_ENV_SETTINGS \
#define CONFIG_EXTRA_ENV_SETTINGS \
...
...
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