1 comment:
File src/soc/intel/alderlake/chip.c:
else if (dev->path.type == DEVICE_PATH_GPIO)
dev->ops = &soc_gpio_ops;
Rather than adding this to every SoC, I think this can be handled within soc/intel/common/block/gpio driver. i.e. add something like:
static void intel_gpio_enable(struct device *dev)
{
assert(dev->path.type == DEVICE_PATH_GPIO);
dev->ops = &soc_gpio_ops;
}
struct chip_operations soc_gpio_ctrlr_ops = {
CHIP_NAME("Intel GPIO controller")
.enable_dev = intel_gpio_enable,
}
In addition to this, you will need a chip.h in that driver.
To view, visit change 48583. To unsubscribe, or for help writing mail filters, visit settings.