Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
4e5cf41e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4e5cf41e
编写于
11月 04, 2010
作者:
S
Sascha Hauer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM i.MX SDMA: Add ROM script addresses to platform_data
Signed-off-by:
N
Sascha Hauer
<
s.hauer@pengutronix.de
>
上级
5b28aa31
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
97 addition
and
8 deletion
+97
-8
arch/arm/plat-mxc/devices/platform-imx-dma.c
arch/arm/plat-mxc/devices/platform-imx-dma.c
+97
-8
未找到文件。
arch/arm/plat-mxc/devices/platform-imx-dma.c
浏览文件 @
4e5cf41e
...
...
@@ -40,7 +40,7 @@ struct imx_imx_sdma_data {
}
#ifdef CONFIG_SOC_IMX25
const
struct
imx_imx_sdma_data
imx25_imx_sdma_data
__initconst
=
struct
imx_imx_sdma_data
imx25_imx_sdma_data
__initconst
=
imx_imx_sdma_data_entry_single
(
MX25
,
1
,
"imx25"
,
0
);
#endif
/* ifdef CONFIG_SOC_IMX25 */
...
...
@@ -55,7 +55,7 @@ struct imx_imx_sdma_data imx35_imx_sdma_data __initdata =
#endif
/* ifdef CONFIG_SOC_IMX35 */
#ifdef CONFIG_ARCH_MX51
const
struct
imx_imx_sdma_data
imx51_imx_sdma_data
__initconst
=
struct
imx_imx_sdma_data
imx51_imx_sdma_data
__initconst
=
imx_imx_sdma_data_entry_single
(
MX51
,
2
,
"imx51"
,
0
);
#endif
/* ifdef CONFIG_ARCH_MX51 */
...
...
@@ -84,6 +84,83 @@ static struct platform_device __init __maybe_unused *imx_add_imx_dma(void)
return
imx_add_platform_device
(
"imx-dma"
,
-
1
,
NULL
,
0
,
NULL
,
0
);
}
#ifdef CONFIG_ARCH_MX25
static
struct
sdma_script_start_addrs
addr_imx25_to1
=
{
.
ap_2_ap_addr
=
729
,
.
uart_2_mcu_addr
=
904
,
.
per_2_app_addr
=
1255
,
.
mcu_2_app_addr
=
834
,
.
uartsh_2_mcu_addr
=
1120
,
.
per_2_shp_addr
=
1329
,
.
mcu_2_shp_addr
=
1048
,
.
ata_2_mcu_addr
=
1560
,
.
mcu_2_ata_addr
=
1479
,
.
app_2_per_addr
=
1189
,
.
app_2_mcu_addr
=
770
,
.
shp_2_per_addr
=
1407
,
.
shp_2_mcu_addr
=
979
,
};
#endif
#ifdef CONFIG_ARCH_MX31
static
struct
sdma_script_start_addrs
addr_imx31_to1
=
{
.
per_2_per_addr
=
1677
,
};
static
struct
sdma_script_start_addrs
addr_imx31_to2
=
{
.
ap_2_ap_addr
=
423
,
.
ap_2_bp_addr
=
829
,
.
bp_2_ap_addr
=
1029
,
};
#endif
#ifdef CONFIG_ARCH_MX35
static
struct
sdma_script_start_addrs
addr_imx35_to1
=
{
.
ap_2_ap_addr
=
642
,
.
uart_2_mcu_addr
=
817
,
.
mcu_2_app_addr
=
747
,
.
uartsh_2_mcu_addr
=
1183
,
.
per_2_shp_addr
=
1033
,
.
mcu_2_shp_addr
=
961
,
.
ata_2_mcu_addr
=
1333
,
.
mcu_2_ata_addr
=
1252
,
.
app_2_mcu_addr
=
683
,
.
shp_2_per_addr
=
1111
,
.
shp_2_mcu_addr
=
892
,
};
static
struct
sdma_script_start_addrs
addr_imx35_to2
=
{
.
ap_2_ap_addr
=
729
,
.
uart_2_mcu_addr
=
904
,
.
per_2_app_addr
=
1597
,
.
mcu_2_app_addr
=
834
,
.
uartsh_2_mcu_addr
=
1270
,
.
per_2_shp_addr
=
1120
,
.
mcu_2_shp_addr
=
1048
,
.
ata_2_mcu_addr
=
1429
,
.
mcu_2_ata_addr
=
1339
,
.
app_2_per_addr
=
1531
,
.
app_2_mcu_addr
=
770
,
.
shp_2_per_addr
=
1198
,
.
shp_2_mcu_addr
=
979
,
};
#endif
#ifdef CONFIG_ARCH_MX51
static
struct
sdma_script_start_addrs
addr_imx51_to1
=
{
.
ap_2_ap_addr
=
642
,
.
uart_2_mcu_addr
=
817
,
.
mcu_2_app_addr
=
747
,
.
mcu_2_shp_addr
=
961
,
.
ata_2_mcu_addr
=
1473
,
.
mcu_2_ata_addr
=
1392
,
.
app_2_per_addr
=
1033
,
.
app_2_mcu_addr
=
683
,
.
shp_2_per_addr
=
1251
,
.
shp_2_mcu_addr
=
892
,
};
#endif
static
int
__init
imxXX_add_imx_dma
(
void
)
{
struct
platform_device
*
ret
;
...
...
@@ -95,29 +172,41 @@ static int __init imxXX_add_imx_dma(void)
#endif
#if defined(CONFIG_SOC_IMX25)
if
(
cpu_is_mx25
())
if
(
cpu_is_mx25
())
{
imx25_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx25_to1
;
ret
=
imx_add_imx_sdma
(
&
imx25_imx_sdma_data
);
else
}
else
#endif
#if defined(CONFIG_SOC_IMX31)
if
(
cpu_is_mx31
())
{
imx31_imx_sdma_data
.
pdata
.
to_version
=
mx31_revision
()
>>
4
;
int
to_version
=
mx31_revision
()
>>
4
;
imx31_imx_sdma_data
.
pdata
.
to_version
=
to_version
;
if
(
to_version
==
1
)
imx31_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx31_to1
;
else
imx31_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx31_to2
;
ret
=
imx_add_imx_sdma
(
&
imx31_imx_sdma_data
);
}
else
#endif
#if defined(CONFIG_SOC_IMX35)
if
(
cpu_is_mx35
())
{
imx35_imx_sdma_data
.
pdata
.
to_version
=
mx35_revision
()
>>
4
;
int
to_version
=
mx35_revision
()
>>
4
;
imx35_imx_sdma_data
.
pdata
.
to_version
=
to_version
;
if
(
to_version
==
1
)
imx35_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx35_to1
;
else
imx35_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx35_to2
;
ret
=
imx_add_imx_sdma
(
&
imx35_imx_sdma_data
);
}
else
#endif
#if defined(CONFIG_ARCH_MX51)
if
(
cpu_is_mx51
())
if
(
cpu_is_mx51
())
{
imx51_imx_sdma_data
.
pdata
.
script_addrs
=
&
addr_imx51_to1
;
ret
=
imx_add_imx_sdma
(
&
imx51_imx_sdma_data
);
else
}
else
#endif
ret
=
ERR_PTR
(
-
ENODEV
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录