[PATCH v2] gpio: octeon_gpio: Add GPIO controller driver for Octeon

Stefan Roese sr at denx.de
Fri Jul 17 08:03:34 CEST 2020


Hi Daniel,

On 16.07.20 20:44, Daniel Schwierzeck wrote:

<snip>

>> +U_BOOT_DRIVER(octeon_gpio) = {
>> +	.name	= "octeon_gpio",
>> +	.id	= UCLASS_GPIO,
>> +	.of_match = of_match_ptr(octeon_gpio_ids),
>> +	.probe = octeon_gpio_probe,
>> +	.priv_auto_alloc_size = sizeof(struct octeon_gpio),
>> +	.ops	= &octeon_gpio_ops,
>> +	.flags	= DM_FLAG_PRE_RELOC,
>> +};
>> +
>> +static struct pci_device_id octeon_gpio_supported[] = {
>> +	{ PCI_VDEVICE(CAVIUM, PCI_DEVICE_ID_CAVIUM_GPIO),
>> +	  .driver_data = (ulong)&gpio_octeontx_data },
>> +	{ },
>> +};
> 
> I can't build that with the Octeon base support because
> PCI_VENDOR_ID_CAVIUM and PCI_DEVICE_ID_CAVIUM_GPIO are missing in U-
> Boot's include/pci_ids.h. I can only find PCI_VENDOR_ID_CAVIUM in Linux
> but not PCI_DEVICE_ID_CAVIUM_GPIO.

Ah yes. Sorry, I missed sending this pci_ids.h patch that I have applied
in my local branches. Here a link to the patch, which has been updated
since the first RFC version:

https://www.mail-archive.com/u-boot@lists.denx.de/msg345960.html

I'll send the new version in a few minutes.

Thanks,
Stefan


More information about the U-Boot mailing list