Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
eee0a1c6
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eee0a1c6
编写于
8月 28, 2011
作者:
P
Peter Maydell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
omap: Wire up the DMA request line to the GPMC
Signed-off-by:
N
Peter Maydell
<
peter.maydell@linaro.org
>
上级
ef20677c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
3 deletion
+8
-3
hw/omap.h
hw/omap.h
+2
-1
hw/omap2.c
hw/omap2.c
+2
-1
hw/omap_gpmc.c
hw/omap_gpmc.c
+4
-1
未找到文件。
hw/omap.h
浏览文件 @
eee0a1c6
...
@@ -119,7 +119,8 @@ void omap_sdrc_reset(struct omap_sdrc_s *s);
...
@@ -119,7 +119,8 @@ void omap_sdrc_reset(struct omap_sdrc_s *s);
/* OMAP2 general purpose memory controller */
/* OMAP2 general purpose memory controller */
struct
omap_gpmc_s
;
struct
omap_gpmc_s
;
struct
omap_gpmc_s
*
omap_gpmc_init
(
struct
omap_mpu_state_s
*
mpu
,
struct
omap_gpmc_s
*
omap_gpmc_init
(
struct
omap_mpu_state_s
*
mpu
,
target_phys_addr_t
base
,
qemu_irq
irq
);
target_phys_addr_t
base
,
qemu_irq
irq
,
qemu_irq
drq
);
void
omap_gpmc_reset
(
struct
omap_gpmc_s
*
s
);
void
omap_gpmc_reset
(
struct
omap_gpmc_s
*
s
);
void
omap_gpmc_attach
(
struct
omap_gpmc_s
*
s
,
int
cs
,
MemoryRegion
*
iomem
);
void
omap_gpmc_attach
(
struct
omap_gpmc_s
*
s
,
int
cs
,
MemoryRegion
*
iomem
);
void
omap_gpmc_attach_nand
(
struct
omap_gpmc_s
*
s
,
int
cs
,
DeviceState
*
nand
);
void
omap_gpmc_attach_nand
(
struct
omap_gpmc_s
*
s
,
int
cs
,
DeviceState
*
nand
);
...
...
hw/omap2.c
浏览文件 @
eee0a1c6
...
@@ -2402,7 +2402,8 @@ struct omap_mpu_state_s *omap2420_mpu_init(unsigned long sdram_size,
...
@@ -2402,7 +2402,8 @@ struct omap_mpu_state_s *omap2420_mpu_init(unsigned long sdram_size,
sysbus_mmio_map
(
busdev
,
4
,
omap_l4_region_base
(
ta
,
5
));
sysbus_mmio_map
(
busdev
,
4
,
omap_l4_region_base
(
ta
,
5
));
s
->
sdrc
=
omap_sdrc_init
(
0x68009000
);
s
->
sdrc
=
omap_sdrc_init
(
0x68009000
);
s
->
gpmc
=
omap_gpmc_init
(
s
,
0x6800a000
,
s
->
irq
[
0
][
OMAP_INT_24XX_GPMC_IRQ
]);
s
->
gpmc
=
omap_gpmc_init
(
s
,
0x6800a000
,
s
->
irq
[
0
][
OMAP_INT_24XX_GPMC_IRQ
],
s
->
drq
[
OMAP24XX_DMA_GPMC
]);
dinfo
=
drive_get
(
IF_SD
,
0
,
0
);
dinfo
=
drive_get
(
IF_SD
,
0
,
0
);
if
(
!
dinfo
)
{
if
(
!
dinfo
)
{
...
...
hw/omap_gpmc.c
浏览文件 @
eee0a1c6
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
/* General-Purpose Memory Controller */
/* General-Purpose Memory Controller */
struct
omap_gpmc_s
{
struct
omap_gpmc_s
{
qemu_irq
irq
;
qemu_irq
irq
;
qemu_irq
drq
;
MemoryRegion
iomem
;
MemoryRegion
iomem
;
int
accept_256
;
int
accept_256
;
...
@@ -564,7 +565,8 @@ static const MemoryRegionOps omap_gpmc_ops = {
...
@@ -564,7 +565,8 @@ static const MemoryRegionOps omap_gpmc_ops = {
};
};
struct
omap_gpmc_s
*
omap_gpmc_init
(
struct
omap_mpu_state_s
*
mpu
,
struct
omap_gpmc_s
*
omap_gpmc_init
(
struct
omap_mpu_state_s
*
mpu
,
target_phys_addr_t
base
,
qemu_irq
irq
)
target_phys_addr_t
base
,
qemu_irq
irq
,
qemu_irq
drq
)
{
{
int
cs
;
int
cs
;
struct
omap_gpmc_s
*
s
=
(
struct
omap_gpmc_s
*
)
struct
omap_gpmc_s
*
s
=
(
struct
omap_gpmc_s
*
)
...
@@ -574,6 +576,7 @@ struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
...
@@ -574,6 +576,7 @@ struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
memory_region_add_subregion
(
get_system_memory
(),
base
,
&
s
->
iomem
);
memory_region_add_subregion
(
get_system_memory
(),
base
,
&
s
->
iomem
);
s
->
irq
=
irq
;
s
->
irq
=
irq
;
s
->
drq
=
drq
;
s
->
accept_256
=
cpu_is_omap3630
(
mpu
);
s
->
accept_256
=
cpu_is_omap3630
(
mpu
);
s
->
revision
=
cpu_class_omap3
(
mpu
)
?
0x50
:
0x20
;
s
->
revision
=
cpu_class_omap3
(
mpu
)
?
0x50
:
0x20
;
omap_gpmc_reset
(
s
);
omap_gpmc_reset
(
s
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录