diff options
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 7b98e1d9194c..d82fa36c3465 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c | |||
@@ -476,6 +476,11 @@ static const struct of_device_id usbhs_of_match[] = { | |||
476 | .compatible = "renesas,usbhs-r8a7794", | 476 | .compatible = "renesas,usbhs-r8a7794", |
477 | .data = (void *)USBHS_TYPE_RCAR_GEN2, | 477 | .data = (void *)USBHS_TYPE_RCAR_GEN2, |
478 | }, | 478 | }, |
479 | { | ||
480 | /* Gen3 is compatible with Gen2 */ | ||
481 | .compatible = "renesas,usbhs-r8a7795", | ||
482 | .data = (void *)USBHS_TYPE_RCAR_GEN2, | ||
483 | }, | ||
479 | { }, | 484 | { }, |
480 | }; | 485 | }; |
481 | MODULE_DEVICE_TABLE(of, usbhs_of_match); | 486 | MODULE_DEVICE_TABLE(of, usbhs_of_match); |
@@ -493,7 +498,7 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev) | |||
493 | return NULL; | 498 | return NULL; |
494 | 499 | ||
495 | dparam = &info->driver_param; | 500 | dparam = &info->driver_param; |
496 | dparam->type = of_id ? (u32)of_id->data : 0; | 501 | dparam->type = of_id ? (uintptr_t)of_id->data : 0; |
497 | if (!of_property_read_u32(dev->of_node, "renesas,buswait", &tmp)) | 502 | if (!of_property_read_u32(dev->of_node, "renesas,buswait", &tmp)) |
498 | dparam->buswait_bwait = tmp; | 503 | dparam->buswait_bwait = tmp; |
499 | gpio = of_get_named_gpio_flags(dev->of_node, "renesas,enable-gpio", 0, | 504 | gpio = of_get_named_gpio_flags(dev->of_node, "renesas,enable-gpio", 0, |