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
Kirill Smelkov
linux
Commits
e0bf6c5c
Commit
e0bf6c5c
authored
Sep 08, 2013
by
Max Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xtensa: xtfpga: add CY7C67300 USB controller support
Signed-off-by:
Max Filippov
<
jcmvbkbc@gmail.com
>
parent
b67c961c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
+3
-0
arch/xtensa/platforms/xtfpga/setup.c
arch/xtensa/platforms/xtfpga/setup.c
+34
-0
No files found.
arch/xtensa/platforms/xtfpga/include/platform/hardware.h
View file @
e0bf6c5c
...
...
@@ -62,4 +62,7 @@
/* 5*rx buffs + 5*tx buffs */
#define OETH_SRAMBUFF_SIZE (5 * 0x600 + 5 * 0x600)
#define C67X00_PADDR (XCHAL_KIO_PADDR + 0x0D0D0000)
#define C67X00_SIZE 0x10
#define C67X00_IRQ 5
#endif
/* __XTENSA_XTAVNET_HARDWARE_H */
arch/xtensa/platforms/xtfpga/setup.c
View file @
e0bf6c5c
...
...
@@ -189,6 +189,7 @@ void __init platform_calibrate_ccount(void)
#include <linux/serial_8250.h>
#include <linux/if.h>
#include <net/ethoc.h>
#include <linux/usb/c67x00.h>
/*----------------------------------------------------------------------------
* Ethernet -- OpenCores Ethernet MAC (ethoc driver)
...
...
@@ -232,6 +233,38 @@ static struct platform_device ethoc_device = {
},
};
/*----------------------------------------------------------------------------
* USB Host/Device -- Cypress CY7C67300
*/
static
struct
resource
c67x00_res
[]
=
{
[
0
]
=
{
/* register space */
.
start
=
C67X00_PADDR
,
.
end
=
C67X00_PADDR
+
C67X00_SIZE
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
/* IRQ number */
.
start
=
C67X00_IRQ
,
.
end
=
C67X00_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
c67x00_platform_data
c67x00_pdata
=
{
.
sie_config
=
C67X00_SIE1_HOST
|
C67X00_SIE2_UNUSED
,
.
hpi_regstep
=
4
,
};
static
struct
platform_device
c67x00_device
=
{
.
name
=
"c67x00"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
c67x00_res
),
.
resource
=
c67x00_res
,
.
dev
=
{
.
platform_data
=
&
c67x00_pdata
,
},
};
/*----------------------------------------------------------------------------
* UART
*/
...
...
@@ -268,6 +301,7 @@ static struct platform_device xtavnet_uart = {
/* platform devices */
static
struct
platform_device
*
platform_devices
[]
__initdata
=
{
&
ethoc_device
,
&
c67x00_device
,
&
xtavnet_uart
,
};
...
...
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