bcm2835_vcbus: add legacy compat mappings

I've opted for just duplicating the two entries needed for this, rather than
writing any other mechanism for maintaining two root compat entries to map
to one config, for simplicity. We'll eventually declare these legacy DTB
unsupported, but let's not do that yet while there's no real burden.
This commit is contained in:
Kyle Evans 2019-12-18 02:29:27 +00:00
parent c2f22e9790
commit 32a44e1e53

View File

@ -152,6 +152,13 @@ static struct bcm283x_memory_soc_cfg {
bus_addr_t busdma_lowaddr;
} bcm283x_memory_configs[] = {
#ifdef SOC_BCM2835
/* Legacy */
{
.memmap = bcm2835_memmap,
.soc_compat = "raspberrypi,model-b",
.busdma_lowaddr = BUS_SPACE_MAXADDR_32BIT,
},
/* Modern */
{
.memmap = bcm2835_memmap,
.soc_compat = "brcm,bcm2835",
@ -159,6 +166,13 @@ static struct bcm283x_memory_soc_cfg {
},
#endif
#ifdef SOC_BCM2836
/* Legacy */
{
.memmap = bcm2836_memmap,
.soc_compat = "brcm,bcm2709",
.busdma_lowaddr = BUS_SPACE_MAXADDR_32BIT,
},
/* Modern */
{
.memmap = bcm2836_memmap,
.soc_compat = "brcm,bcm2836",