Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/broadcom/bcm2835/bcm2835_machdep.c
Context not available. | |||||
PLATFORMMETHOD_END, | PLATFORMMETHOD_END, | ||||
}; | }; | ||||
FDT_PLATFORM_DEF(bcm2835, "bcm2835", 0, "raspberrypi,model-b", 100); | FDT_PLATFORM_DEF(bcm2835, "bcm2835", 0, "brcm,bcm2835", 100); | ||||
andrew: You should keep the old compat string here to allow for people to use an old DTB with a new… | |||||
Done Inline ActionsThere is an extra argument in FDT_PLATFORM_DEF2 to add the variable name to use. andrew: There is an extra argument in `FDT_PLATFORM_DEF2` to add the variable name to use. | |||||
#endif | #endif | ||||
#ifdef SOC_BCM2836 | #ifdef SOC_BCM2836 | ||||
Context not available. | |||||
PLATFORMMETHOD_END, | PLATFORMMETHOD_END, | ||||
}; | }; | ||||
FDT_PLATFORM_DEF(bcm2836, "bcm2836", 0, "brcm,bcm2709", 100); | FDT_PLATFORM_DEF(bcm2836, "bcm2836", 0, "brcm,bcm2836", 100); | ||||
andrewUnsubmitted Done Inline ActionsAnd here. andrew: And here. | |||||
#endif | #endif | ||||
Context not available. |
You should keep the old compat string here to allow for people to use an old DTB with a new kernel. For this you can use FDT_PLATFORM_DEF2. You can see imx6_machdep.c for an example on using it.