Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
50041acb
Commit
50041acb
authored
Oct 08, 2008
by
Bryan Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blackfin arch: use new platform data interface of musb to replace old one
Signed-off-by:
Bryan Wu
<
cooloney@kernel.org
>
parent
3fa8749e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
12 deletions
+44
-12
arch/blackfin/mach-bf527/boards/cm_bf527.c
arch/blackfin/mach-bf527/boards/cm_bf527.c
+11
-3
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf527/boards/ezkit.c
+11
-3
arch/blackfin/mach-bf548/boards/cm_bf548.c
arch/blackfin/mach-bf548/boards/cm_bf548.c
+11
-3
arch/blackfin/mach-bf548/boards/ezkit.c
arch/blackfin/mach-bf548/boards/ezkit.c
+11
-3
No files found.
arch/blackfin/mach-bf527/boards/cm_bf527.c
View file @
50041acb
...
...
@@ -43,9 +43,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/usb/sl811.h>
#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
#include <linux/usb/musb.h>
#endif
#include <asm/cplb.h>
#include <asm/dma.h>
#include <asm/bfin5xx_spi.h>
...
...
@@ -130,6 +128,16 @@ static struct resource musb_resources[] = {
},
};
static
struct
musb_hdrc_config
musb_config
=
{
.
multipoint
=
0
,
.
dyn_fifo
=
0
,
.
soft_con
=
1
,
.
dma
=
1
,
.
num_eps
=
7
,
.
dma_channels
=
7
,
.
gpio_vrsel
=
GPIO_PF11
,
};
static
struct
musb_hdrc_platform_data
musb_plat
=
{
#if defined(CONFIG_USB_MUSB_OTG)
.
mode
=
MUSB_OTG
,
...
...
@@ -138,7 +146,7 @@ static struct musb_hdrc_platform_data musb_plat = {
#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
.
mode
=
MUSB_PERIPHERAL
,
#endif
.
multipoint
=
0
,
.
config
=
&
musb_config
,
};
static
u64
musb_dmamask
=
~
(
u32
)
0
;
...
...
arch/blackfin/mach-bf527/boards/ezkit.c
View file @
50041acb
...
...
@@ -42,9 +42,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/usb/sl811.h>
#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
#include <linux/usb/musb.h>
#endif
#include <asm/cplb.h>
#include <asm/dma.h>
#include <asm/bfin5xx_spi.h>
...
...
@@ -129,6 +127,16 @@ static struct resource musb_resources[] = {
},
};
static
struct
musb_hdrc_config
musb_config
=
{
.
multipoint
=
0
,
.
dyn_fifo
=
0
,
.
soft_con
=
1
,
.
dma
=
1
,
.
num_eps
=
7
,
.
dma_channels
=
7
,
.
gpio_vrsel
=
GPIO_PG13
,
};
static
struct
musb_hdrc_platform_data
musb_plat
=
{
#if defined(CONFIG_USB_MUSB_OTG)
.
mode
=
MUSB_OTG
,
...
...
@@ -137,7 +145,7 @@ static struct musb_hdrc_platform_data musb_plat = {
#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
.
mode
=
MUSB_PERIPHERAL
,
#endif
.
multipoint
=
0
,
.
config
=
&
musb_config
,
};
static
u64
musb_dmamask
=
~
(
u32
)
0
;
...
...
arch/blackfin/mach-bf548/boards/cm_bf548.c
View file @
50041acb
...
...
@@ -36,9 +36,7 @@
#include <linux/spi/flash.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
#include <linux/usb/musb.h>
#endif
#include <asm/bfin5xx_spi.h>
#include <asm/cplb.h>
#include <asm/dma.h>
...
...
@@ -268,6 +266,16 @@ static struct resource musb_resources[] = {
},
};
static
struct
musb_hdrc_config
musb_config
=
{
.
multipoint
=
0
,
.
dyn_fifo
=
0
,
.
soft_con
=
1
,
.
dma
=
1
,
.
num_eps
=
7
,
.
dma_channels
=
7
,
.
gpio_vrsel
=
GPIO_PH6
,
};
static
struct
musb_hdrc_platform_data
musb_plat
=
{
#if defined(CONFIG_USB_MUSB_OTG)
.
mode
=
MUSB_OTG
,
...
...
@@ -276,7 +284,7 @@ static struct musb_hdrc_platform_data musb_plat = {
#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
.
mode
=
MUSB_PERIPHERAL
,
#endif
.
multipoint
=
0
,
.
config
=
&
musb_config
,
};
static
u64
musb_dmamask
=
~
(
u32
)
0
;
...
...
arch/blackfin/mach-bf548/boards/ezkit.c
View file @
50041acb
...
...
@@ -38,9 +38,7 @@
#include <linux/irq.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
#include <linux/usb/musb.h>
#endif
#include <asm/bfin5xx_spi.h>
#include <asm/cplb.h>
#include <asm/dma.h>
...
...
@@ -314,6 +312,16 @@ static struct resource musb_resources[] = {
},
};
static
struct
musb_hdrc_config
musb_config
=
{
.
multipoint
=
0
,
.
dyn_fifo
=
0
,
.
soft_con
=
1
,
.
dma
=
1
,
.
num_eps
=
7
,
.
dma_channels
=
7
,
.
gpio_vrsel
=
GPIO_PE7
,
};
static
struct
musb_hdrc_platform_data
musb_plat
=
{
#if defined(CONFIG_USB_MUSB_OTG)
.
mode
=
MUSB_OTG
,
...
...
@@ -322,7 +330,7 @@ static struct musb_hdrc_platform_data musb_plat = {
#elif defined(CONFIG_USB_GADGET_MUSB_HDRC)
.
mode
=
MUSB_PERIPHERAL
,
#endif
.
multipoint
=
0
,
.
config
=
&
musb_config
,
};
static
u64
musb_dmamask
=
~
(
u32
)
0
;
...
...
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