Skip to content

Commit 4cc918e

Browse files
lategoodbyepopcornmix
authored andcommitted
ARM: bcm: Backport BCM2711 support from upstream
Make the BCM2711 a different machine, but keep it in board_bcm2835. Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
1 parent 40746d3 commit 4cc918e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎arch/arm/mach-bcm/board_bcm2835.c‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,30 @@ static const char * const bcm2835_compat[] = {
109109
#ifdef CONFIG_ARCH_MULTI_V7
110110
"brcm,bcm2836",
111111
"brcm,bcm2837",
112-
"brcm,bcm2711",
113112
#endif
114113
NULL
115114
};
116115

117116
DT_MACHINE_START(BCM2835, "BCM2835")
117+
.map_io = bcm2835_map_io,
118+
.init_machine = bcm2835_init,
119+
.dt_compat = bcm2835_compat,
120+
.smp = smp_ops(bcm2836_smp_ops),
121+
MACHINE_END
122+
123+
static const char * const bcm2711_compat[] = {
124+
#ifdef CONFIG_ARCH_MULTI_V7
125+
"brcm,bcm2711",
126+
#endif
127+
NULL
128+
};
129+
130+
DT_MACHINE_START(BCM2711, "BCM2711")
118131
#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
119132
.dma_zone_size = SZ_1G,
120133
#endif
121134
.map_io = bcm2835_map_io,
122135
.init_machine = bcm2835_init,
123-
.dt_compat = bcm2835_compat,
136+
.dt_compat = bcm2711_compat,
124137
.smp = smp_ops(bcm2836_smp_ops),
125138
MACHINE_END

0 commit comments

Comments
 (0)