dtoverlay: Support bcm2712 as a platform

Add "bcm2712" as a recognised platform. This will prevent Pi 5 from
loading bcm2711-specific versions, but there's a good chance they
wouldn't work anyway and will require modifications.
This commit is contained in:
Phil Elwell
2023-04-14 10:45:08 +01:00
committed by Phil Elwell
parent 0489c0728e
commit 06a7618c3e

View File

@@ -2559,6 +2559,11 @@ void dtoverlay_init_map_from_fp(FILE *fp, const char *compatible,
platform_name = "bcm2711";
break;
}
else if (strncmp(p, "bcm2712", len) == 0)
{
platform_name = "bcm2712";
break;
}
compatible_len -= (p - compatible);
compatible = p;