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
23291df4
Commit
23291df4
authored
Oct 22, 2009
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i.MX2: Add sound (ssi) resources
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
4f43c2ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
3 deletions
+82
-3
arch/arm/mach-mx2/clock_imx27.c
arch/arm/mach-mx2/clock_imx27.c
+2
-2
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.c
+78
-0
arch/arm/mach-mx2/devices.h
arch/arm/mach-mx2/devices.h
+2
-1
No files found.
arch/arm/mach-mx2/clock_imx27.c
View file @
23291df4
...
...
@@ -651,8 +651,8 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK
(
"mxc-ehci.1"
,
"usb_ahb"
,
usb_clk1
)
_REGISTER_CLOCK
(
"mxc-ehci.2"
,
"usb"
,
usb_clk
)
_REGISTER_CLOCK
(
"mxc-ehci.2"
,
"usb_ahb"
,
usb_clk1
)
_REGISTER_CLOCK
(
NULL
,
"ssi1"
,
ssi1_clk
)
_REGISTER_CLOCK
(
NULL
,
"ssi2"
,
ssi2_clk
)
_REGISTER_CLOCK
(
"imx-ssi.0"
,
NULL
,
ssi1_clk
)
_REGISTER_CLOCK
(
"imx-ssi.1"
,
NULL
,
ssi2_clk
)
_REGISTER_CLOCK
(
"mxc_nand.0"
,
NULL
,
nfc_clk
)
_REGISTER_CLOCK
(
NULL
,
"vpu"
,
vpu_clk
)
_REGISTER_CLOCK
(
NULL
,
"dma"
,
dma_clk
)
...
...
arch/arm/mach-mx2/devices.c
View file @
23291df4
...
...
@@ -530,6 +530,84 @@ struct platform_device mxc_usbh2 = {
};
#endif
static
struct
resource
imx_ssi_resources0
[]
=
{
{
.
start
=
SSI1_BASE_ADDR
,
.
end
=
SSI1_BASE_ADDR
+
0x6F
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_SSI1
,
.
end
=
MXC_INT_SSI1
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
name
=
"tx0"
,
.
start
=
DMA_REQ_SSI1_TX0
,
.
end
=
DMA_REQ_SSI1_TX0
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"rx0"
,
.
start
=
DMA_REQ_SSI1_RX0
,
.
end
=
DMA_REQ_SSI1_RX0
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"tx1"
,
.
start
=
DMA_REQ_SSI1_TX1
,
.
end
=
DMA_REQ_SSI1_TX1
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"rx1"
,
.
start
=
DMA_REQ_SSI1_RX1
,
.
end
=
DMA_REQ_SSI1_RX1
,
.
flags
=
IORESOURCE_DMA
,
},
};
static
struct
resource
imx_ssi_resources1
[]
=
{
{
.
start
=
SSI2_BASE_ADDR
,
.
end
=
SSI2_BASE_ADDR
+
0x6F
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MXC_INT_SSI2
,
.
end
=
MXC_INT_SSI2
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
name
=
"tx0"
,
.
start
=
DMA_REQ_SSI2_TX0
,
.
end
=
DMA_REQ_SSI2_TX0
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"rx0"
,
.
start
=
DMA_REQ_SSI2_RX0
,
.
end
=
DMA_REQ_SSI2_RX0
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"tx1"
,
.
start
=
DMA_REQ_SSI2_TX1
,
.
end
=
DMA_REQ_SSI2_TX1
,
.
flags
=
IORESOURCE_DMA
,
},
{
.
name
=
"rx1"
,
.
start
=
DMA_REQ_SSI2_RX1
,
.
end
=
DMA_REQ_SSI2_RX1
,
.
flags
=
IORESOURCE_DMA
,
},
};
struct
platform_device
imx_ssi_device0
=
{
.
name
=
"imx-ssi"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
imx_ssi_resources0
),
.
resource
=
imx_ssi_resources0
,
};
struct
platform_device
imx_ssi_device1
=
{
.
name
=
"imx-ssi"
,
.
id
=
1
,
.
num_resources
=
ARRAY_SIZE
(
imx_ssi_resources1
),
.
resource
=
imx_ssi_resources1
,
};
/* GPIO port description */
static
struct
mxc_gpio_port
imx_gpio_ports
[]
=
{
{
...
...
arch/arm/mach-mx2/devices.h
View file @
23291df4
...
...
@@ -26,4 +26,5 @@ extern struct platform_device mxc_usbh2;
extern
struct
platform_device
mxc_spi_device0
;
extern
struct
platform_device
mxc_spi_device1
;
extern
struct
platform_device
mxc_spi_device2
;
extern
struct
platform_device
imx_ssi_device0
;
extern
struct
platform_device
imx_ssi_device1
;
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