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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355875

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",