提交 65c12010 编写于 作者: S Stefan Wahren 提交者: Zheng Zengkai

ARM: bcm: Backport BCM2711 support from upstream

raspberrypi inclusion
category: feature
bugzilla: 50432

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

Make the BCM2711 a different machine, but keep it in board_bcm2835.
Signed-off-by: NStefan Wahren <wahrenst@gmx.net>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 107cc2c4
...@@ -109,17 +109,30 @@ static const char * const bcm2835_compat[] = { ...@@ -109,17 +109,30 @@ static const char * const bcm2835_compat[] = {
#ifdef CONFIG_ARCH_MULTI_V7 #ifdef CONFIG_ARCH_MULTI_V7
"brcm,bcm2836", "brcm,bcm2836",
"brcm,bcm2837", "brcm,bcm2837",
"brcm,bcm2711",
#endif #endif
NULL NULL
}; };
DT_MACHINE_START(BCM2835, "BCM2835") DT_MACHINE_START(BCM2835, "BCM2835")
.map_io = bcm2835_map_io,
.init_machine = bcm2835_init,
.dt_compat = bcm2835_compat,
.smp = smp_ops(bcm2836_smp_ops),
MACHINE_END
static const char * const bcm2711_compat[] = {
#ifdef CONFIG_ARCH_MULTI_V7
"brcm,bcm2711",
#endif
NULL
};
DT_MACHINE_START(BCM2711, "BCM2711")
#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE) #if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
.dma_zone_size = SZ_1G, .dma_zone_size = SZ_1G,
#endif #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 = bcm2711_compat,
.smp = smp_ops(bcm2836_smp_ops), .smp = smp_ops(bcm2836_smp_ops),
MACHINE_END MACHINE_END
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册