Richard, Marshall: Accessing dev->chip_info should be cleaned up under soc/amd.
1 comment:
File src/include/device/device.h:
static inline DEVTREE_CONST void *config_of_soc(void)
{
return config_of(pcidev_on_root(0, 0));
}
Overall the change looks good to me. […]
Right... I think we can find different way to find top-level .chip_info, so implementation would not depend on PCI 0:0.0 and becomes usable for soc/amd as well.
Platforms with separate cpu/,nb/,sb/ could not use config_of_soc() anyways, but config_of(dev) instead. The configuration structures are split like the directories.
To view, visit change 35656. To unsubscribe, or for help writing mail filters, visit settings.