diff mbox series

[U-Boot,4/7] pci: i2c: designware: Add compatible string

Message ID 20191102135918.111713-5-sjg@chromium.org
State Superseded
Delegated to: Bin Meng
Headers show
Series x86: coral: Add support for Cr50 | expand

Commit Message

Simon Glass Nov. 2, 2019, 1:59 p.m. UTC
Add a compatible string for this driver so that it can have children.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/i2c/dw_i2c_pci.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Heiko Schocher Nov. 4, 2019, 5:58 a.m. UTC | #1
Hello Simon,

Am 02.11.2019 um 14:59 schrieb Simon Glass:
> Add a compatible string for this driver so that it can have children.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>   drivers/i2c/dw_i2c_pci.c | 6 ++++++
>   1 file changed, 6 insertions(+)

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox series

Patch

diff --git a/drivers/i2c/dw_i2c_pci.c b/drivers/i2c/dw_i2c_pci.c
index 34cdc7bf59..193ad5225f 100644
--- a/drivers/i2c/dw_i2c_pci.c
+++ b/drivers/i2c/dw_i2c_pci.c
@@ -64,9 +64,15 @@  static int designware_i2c_pci_bind(struct udevice *dev)
 	return 0;
 }
 
+static const struct udevice_id designware_i2c_pci_ids[] = {
+	{ .compatible = "snps,designware-i2c-pci" },
+	{ }
+};
+
 U_BOOT_DRIVER(i2c_designware_pci) = {
 	.name	= "i2c_designware_pci",
 	.id	= UCLASS_I2C,
+	.of_match = designware_i2c_pci_ids,
 	.bind	= designware_i2c_pci_bind,
 	.probe	= designware_i2c_pci_probe,
 	.priv_auto_alloc_size = sizeof(struct dw_i2c),