usb: renesas_usbhs: Add support for RZ/A2

The RZ/A2 is similar to the R-Car Gen3 with some small differences.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chris Brandt
2019-05-15 10:20:44 -05:00
committed by Greg Kroah-Hartman
parent f756066990
commit b69dce6341
5 changed files with 90 additions and 1 deletions

View File

@@ -571,6 +571,17 @@ static const struct usbhs_of_data rza1_data = {
}
};
static const struct usbhs_of_data rza2_data = {
.platform_callback = &usbhs_rza2_ops,
.param = {
.type = USBHS_TYPE_RZA2,
.has_cnen = 1,
.cfifo_byte_addr = 1,
.pipe_configs = usbhsc_new_pipe,
.pipe_size = ARRAY_SIZE(usbhsc_new_pipe),
}
};
/*
* platform functions
*/
@@ -619,6 +630,10 @@ static const struct of_device_id usbhs_of_match[] = {
.compatible = "renesas,rza1-usbhs",
.data = &rza1_data,
},
{
.compatible = "renesas,rza2-usbhs",
.data = &rza2_data,
},
{ },
};
MODULE_DEVICE_TABLE(of, usbhs_of_match);