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
ddfaadfa
Commit
ddfaadfa
authored
Oct 03, 2016
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/imx' into for-linus
parents
d38e45aa
b7d2648a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
+1
-0
drivers/dma/imx-sdma.c
drivers/dma/imx-sdma.c
+27
-1
No files found.
Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
View file @
ddfaadfa
...
...
@@ -8,6 +8,7 @@ Required properties:
"fsl,imx51-sdma"
"fsl,imx53-sdma"
"fsl,imx6q-sdma"
"fsl,imx7d-sdma"
The -to variants should be preferred since they allow to determine the
correct ROM script addresses needed for the driver to work without additional
firmware.
...
...
drivers/dma/imx-sdma.c
View file @
ddfaadfa
...
...
@@ -184,7 +184,7 @@
struct
sdma_mode_count
{
u32
count
:
16
;
/* size of the buffer pointed by this BD */
u32
status
:
8
;
/* E,R,I,C,W,D status bits stored here */
u32
command
:
8
;
/* command mostl
k
y used for channel 0 */
u32
command
:
8
;
/* command mostly used for channel 0 */
};
/*
...
...
@@ -479,6 +479,24 @@ static struct sdma_driver_data sdma_imx6q = {
.
script_addrs
=
&
sdma_script_imx6q
,
};
static
struct
sdma_script_start_addrs
sdma_script_imx7d
=
{
.
ap_2_ap_addr
=
644
,
.
uart_2_mcu_addr
=
819
,
.
mcu_2_app_addr
=
749
,
.
uartsh_2_mcu_addr
=
1034
,
.
mcu_2_shp_addr
=
962
,
.
app_2_mcu_addr
=
685
,
.
shp_2_mcu_addr
=
893
,
.
spdif_2_mcu_addr
=
1102
,
.
mcu_2_spdif_addr
=
1136
,
};
static
struct
sdma_driver_data
sdma_imx7d
=
{
.
chnenbl0
=
SDMA_CHNENBL0_IMX35
,
.
num_events
=
48
,
.
script_addrs
=
&
sdma_script_imx7d
,
};
static
const
struct
platform_device_id
sdma_devtypes
[]
=
{
{
.
name
=
"imx25-sdma"
,
...
...
@@ -498,6 +516,9 @@ static const struct platform_device_id sdma_devtypes[] = {
},
{
.
name
=
"imx6q-sdma"
,
.
driver_data
=
(
unsigned
long
)
&
sdma_imx6q
,
},
{
.
name
=
"imx7d-sdma"
,
.
driver_data
=
(
unsigned
long
)
&
sdma_imx7d
,
},
{
/* sentinel */
}
...
...
@@ -511,6 +532,7 @@ static const struct of_device_id sdma_dt_ids[] = {
{
.
compatible
=
"fsl,imx35-sdma"
,
.
data
=
&
sdma_imx35
,
},
{
.
compatible
=
"fsl,imx31-sdma"
,
.
data
=
&
sdma_imx31
,
},
{
.
compatible
=
"fsl,imx25-sdma"
,
.
data
=
&
sdma_imx25
,
},
{
.
compatible
=
"fsl,imx7d-sdma"
,
.
data
=
&
sdma_imx7d
,
},
{
/* sentinel */
}
};
MODULE_DEVICE_TABLE
(
of
,
sdma_dt_ids
);
...
...
@@ -1374,6 +1396,7 @@ static void sdma_issue_pending(struct dma_chan *chan)
#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 34
#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V2 38
#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3 41
#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4 42
static
void
sdma_add_scripts
(
struct
sdma_engine
*
sdma
,
const
struct
sdma_script_start_addrs
*
addr
)
...
...
@@ -1423,6 +1446,9 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
case
3
:
sdma
->
script_number
=
SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3
;
break
;
case
4
:
sdma
->
script_number
=
SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4
;
break
;
default:
dev_err
(
sdma
->
dev
,
"unknown firmware version
\n
"
);
goto
err_firmware
;
...
...
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