Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
e9d451d3
Commit
e9d451d3
authored
Apr 10, 2008
by
Frank Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Porting USB driver to osd 2.0 custom board.
parent
35bb380b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
arch/arm/configs/ntosd_644xA_defconfig
arch/arm/configs/ntosd_644xA_defconfig
+2
-2
drivers/usb/musb/davinci.c
drivers/usb/musb/davinci.c
+19
-0
No files found.
arch/arm/configs/ntosd_644xA_defconfig
View file @
e9d451d3
...
...
@@ -989,8 +989,8 @@ CONFIG_USB_MUSB_SOC=y
#
# DaVinci 644x USB support
#
# CONFIG_USB_MUSB_HOST is not set
CONFIG_USB_MUSB_PERIPHERAL=y
CONFIG_USB_MUSB_HOST=y
#
CONFIG_USB_MUSB_PERIPHERAL=y
# CONFIG_USB_MUSB_OTG is not set
CONFIG_USB_GADGET_MUSB_HDRC=y
# CONFIG_MUSB_PIO_ONLY is not set
...
...
drivers/usb/musb/davinci.c
View file @
e9d451d3
...
...
@@ -155,6 +155,16 @@ static DECLARE_WORK(evm_vbus_work, evm_deferred_drvvbus);
#endif
/* modified board */
#endif
/* EVM */
#ifdef CONFIG_MACH_NTOSD_644XA
static
void
ntosd_644XA_deferred_drvbus
(
struct
work_struct
*
ignored
)
{
gpio_direction_output
(
GPIO
(
46
),
!
vbus_state
);
gpio_set_value
(
GPIO
(
46
),
!
vbus_state
);
vbus_state
=
!
vbus_state
;
}
static
DECLARE_WORK
(
ntosd_644XA_vbus_work
,
ntosd_644XA_deferred_drvbus
);
#endif
static
void
davinci_source_power
(
struct
musb
*
musb
,
int
is_on
,
int
immediate
)
{
if
(
is_on
)
...
...
@@ -182,6 +192,15 @@ static void davinci_source_power(struct musb *musb, int is_on, int immediate)
schedule_work
(
&
evm_vbus_work
);
#endif
}
#endif
#ifdef CONFIG_MACH_NTOSD_644XA
printk
(
"ntosd_644xa source power: is_on = %d, immediate = %d
\n
"
,
is_on
,
immediate
);
if
(
immediate
)
{
gpio_direction_output
(
GPIO
(
46
),
!
is_on
);
gpio_set_value
(
GPIO
(
46
),
!
is_on
);
}
else
{
schedule_work
(
&
ntosd_644XA_vbus_work
);
}
#endif
if
(
immediate
)
vbus_state
=
is_on
;
...
...
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