Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
00952d8f
Commit
00952d8f
authored
Jul 01, 2010
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'imx-for-2.6.35' of
git://git.pengutronix.de/git/imx/linux-2.6
parents
fb35f1ce
4d5d8590
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
arch/arm/mach-mx3/mach-mx31lilly.c
arch/arm/mach-mx3/mach-mx31lilly.c
+22
-11
No files found.
arch/arm/mach-mx3/mach-mx31lilly.c
View file @
00952d8f
...
@@ -115,6 +115,8 @@ static struct platform_device physmap_flash_device = {
...
@@ -115,6 +115,8 @@ static struct platform_device physmap_flash_device = {
/* USB */
/* USB */
#if defined(CONFIG_USB_ULPI)
#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
...
@@ -244,10 +246,20 @@ static struct mxc_usbh_platform_data usbh2_pdata = {
...
@@ -244,10 +246,20 @@ static struct mxc_usbh_platform_data usbh2_pdata = {
.
flags
=
MXC_EHCI_POWER_PINS_ENABLED
,
.
flags
=
MXC_EHCI_POWER_PINS_ENABLED
,
};
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
void
lilly1131_usb_init
(
void
)
&
smsc91x_device
,
{
&
physmap_flash_device
,
usbotg_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
};
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
usbh2_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
mxc_register_device
(
&
mxc_usbh1
,
&
usbh1_pdata
);
mxc_register_device
(
&
mxc_usbh2
,
&
usbh2_pdata
);
}
#else
static
inline
void
lilly1131_usb_init
(
void
)
{}
#endif
/* CONFIG_USB_ULPI */
/* SPI */
/* SPI */
...
@@ -279,6 +291,11 @@ static struct spi_board_info mc13783_dev __initdata = {
...
@@ -279,6 +291,11 @@ static struct spi_board_info mc13783_dev __initdata = {
.
platform_data
=
&
mc13783_pdata
,
.
platform_data
=
&
mc13783_pdata
,
};
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
smsc91x_device
,
&
physmap_flash_device
,
};
static
int
mx31lilly_baseboard
;
static
int
mx31lilly_baseboard
;
core_param
(
mx31lilly_baseboard
,
mx31lilly_baseboard
,
int
,
0444
);
core_param
(
mx31lilly_baseboard
,
mx31lilly_baseboard
,
int
,
0444
);
...
@@ -321,13 +338,7 @@ static void __init mx31lilly_board_init(void)
...
@@ -321,13 +338,7 @@ static void __init mx31lilly_board_init(void)
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
/* USB */
/* USB */
usbotg_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
lilly1131_usb_init
();
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
usbh2_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
mxc_register_device
(
&
mxc_usbh1
,
&
usbh1_pdata
);
mxc_register_device
(
&
mxc_usbh2
,
&
usbh2_pdata
);
}
}
static
void
__init
mx31lilly_timer_init
(
void
)
static
void
__init
mx31lilly_timer_init
(
void
)
...
...
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