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
d37ba97d
Commit
d37ba97d
authored
Dec 19, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MX31: add spi controller devices/resources
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
f420db84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.c
+61
-0
arch/arm/mach-mx3/devices.h
arch/arm/mach-mx3/devices.h
+3
-0
No files found.
arch/arm/mach-mx3/devices.c
View file @
d37ba97d
...
@@ -455,6 +455,67 @@ struct platform_device mxc_usbh2 = {
...
@@ -455,6 +455,67 @@ struct platform_device mxc_usbh2 = {
.
num_resources
=
ARRAY_SIZE
(
mxc_usbh2_resources
),
.
num_resources
=
ARRAY_SIZE
(
mxc_usbh2_resources
),
};
};
/*
* SPI master controller
* 3 channels
*/
static
struct
resource
imx_spi_0_resources
[]
=
{
{
.
start
=
CSPI1_BASE_ADDR
,
.
end
=
CSPI1_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_CSPI1
,
.
end
=
MXC_INT_CSPI1
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
resource
imx_spi_1_resources
[]
=
{
{
.
start
=
CSPI2_BASE_ADDR
,
.
end
=
CSPI2_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_CSPI2
,
.
end
=
MXC_INT_CSPI2
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
resource
imx_spi_2_resources
[]
=
{
{
.
start
=
CSPI3_BASE_ADDR
,
.
end
=
CSPI3_BASE_ADDR
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_CSPI3
,
.
end
=
MXC_INT_CSPI3
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
imx_spi_device0
=
{
.
name
=
"spi_imx"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
imx_spi_0_resources
),
.
resource
=
imx_spi_0_resources
,
};
struct
platform_device
imx_spi_device1
=
{
.
name
=
"spi_imx"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
imx_spi_1_resources
),
.
resource
=
imx_spi_1_resources
,
};
struct
platform_device
imx_spi_device2
=
{
.
name
=
"spi_imx"
,
.
id
=
2
,
.
num_resources
=
ARRAY_SIZE
(
imx_spi_2_resources
),
.
resource
=
imx_spi_2_resources
,
};
#ifdef CONFIG_ARCH_MX35
#ifdef CONFIG_ARCH_MX35
static
struct
resource
mxc_fec_resources
[]
=
{
static
struct
resource
mxc_fec_resources
[]
=
{
{
{
...
...
arch/arm/mach-mx3/devices.h
View file @
d37ba97d
...
@@ -20,4 +20,7 @@ extern struct platform_device mxc_otg_host;
...
@@ -20,4 +20,7 @@ extern struct platform_device mxc_otg_host;
extern
struct
platform_device
mxc_usbh1
;
extern
struct
platform_device
mxc_usbh1
;
extern
struct
platform_device
mxc_usbh2
;
extern
struct
platform_device
mxc_usbh2
;
extern
struct
platform_device
mxc_rnga_device
;
extern
struct
platform_device
mxc_rnga_device
;
extern
struct
platform_device
imx_spi_device0
;
extern
struct
platform_device
imx_spi_device1
;
extern
struct
platform_device
imx_spi_device2
;
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