staticinlinebool soc_intel_is_byt_cr(struct platform_device *pdev)
{ /* * List of systems which: * 1. Use a non CR version of the Bay Trail SoC * 2. Contain at least 6 interrupt resources so that the * platform_get_resource(pdev, IORESOURCE_IRQ, 5) check below * succeeds * 3. Despite 1. and 2. still have their IPC IRQ at index 0 rather then 5 * * This needs to be here so that it can be shared between the SST and * SOF drivers. We rely on the compiler to optimize this out in files * where soc_intel_is_byt_cr is not used.
*/ staticconststruct dmi_system_id force_bytcr_table[] = {
{ /* Lenovo Yoga Tablet 2 series */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
DMI_MATCH(DMI_PRODUCT_FAMILY, "YOGATablet2"),
},
},
{}
}; struct device *dev = &pdev->dev; int status = 0;
if (!soc_intel_is_byt()) returnfalse;
if (dmi_check_system(force_bytcr_table)) returntrue;
dev_info(dev, "BYT-CR not detected\n");
}
} else {
dev_info(dev, "IOSF_MBI not available, no BYT-CR detection\n");
}
if (!platform_get_resource(pdev, IORESOURCE_IRQ, 5)) { /* * Some devices detected as BYT-T have only a single IRQ listed, * causing platform_get_irq with index 5 to return -ENXIO. * The correct IRQ in this case is at index 0, as on BYT-CR.
*/
dev_info(dev, "Falling back to Baytrail-CR platform\n"); returntrue;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.