Skip to content

Commit 0ca3571

Browse files
Phil Elwellpopcornmix
Phil Elwell
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 <[email protected]> arm: bcm2835: Add bcm2838 compatible string. Signed-off-by: Phil Elwell <[email protected]> ARM: bcm: Switch board, clk and pinctrl to bcm2711 compatible After the decision to use bcm2711 compatible for upstream, we should switch all accepted compatibles to bcm2711. So we can boot with one DTB the down- and the upstream kernel. Signed-off-by: Stefan Wahren <[email protected]>
1 parent 8950933 commit 0ca3571

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

arch/arm/mach-bcm/board_bcm2835.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,31 @@ static const char * const bcm2835_compat[] = {
109109
#ifdef CONFIG_ARCH_MULTI_V7
110110
"brcm,bcm2836",
111111
"brcm,bcm2837",
112+
"brcm,bcm2711",
112113
#endif
113114
NULL
114115
};
115116

116117
DT_MACHINE_START(BCM2835, "BCM2835")
118+
.map_io = bcm2835_map_io,
119+
.init_machine = bcm2835_init,
120+
.dt_compat = bcm2835_compat,
121+
.smp = smp_ops(bcm2836_smp_ops),
122+
MACHINE_END
123+
124+
static const char * const bcm2711_compat[] = {
125+
#ifdef CONFIG_ARCH_MULTI_V7
126+
"brcm,bcm2711",
127+
#endif
128+
NULL
129+
};
130+
131+
DT_MACHINE_START(BCM2711, "BCM2711")
117132
#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
118133
.dma_zone_size = SZ_1G,
119134
#endif
120135
.map_io = bcm2835_map_io,
121136
.init_machine = bcm2835_init,
122-
.dt_compat = bcm2835_compat,
137+
.dt_compat = bcm2711_compat,
123138
.smp = smp_ops(bcm2836_smp_ops),
124139
MACHINE_END

0 commit comments

Comments
 (0)