提交 e31db820 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

arm: bcm2835: DMA can only address 1GB

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

The legacy peripherals can only address the first gigabyte of RAM, so
ensure that DMA allocations are restricted to that region.
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 5b8ec687
...@@ -114,6 +114,9 @@ static const char * const bcm2835_compat[] = { ...@@ -114,6 +114,9 @@ static const char * const bcm2835_compat[] = {
}; };
DT_MACHINE_START(BCM2835, "BCM2835") DT_MACHINE_START(BCM2835, "BCM2835")
#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
.dma_zone_size = SZ_1G,
#endif
.map_io = bcm2835_map_io, .map_io = bcm2835_map_io,
.init_machine = bcm2835_init, .init_machine = bcm2835_init,
.dt_compat = bcm2835_compat, .dt_compat = bcm2835_compat,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册