|
@@ -25,6 +25,7 @@
|
|
#include <linux/sysfs.h>
|
|
#include <linux/sysfs.h>
|
|
#include "common.h"
|
|
#include "common.h"
|
|
#include "rcar2.h"
|
|
#include "rcar2.h"
|
|
|
|
+#include "rcar3.h"
|
|
|
|
|
|
/*
|
|
/*
|
|
* image of renesas_usbhs
|
|
* image of renesas_usbhs
|
|
@@ -477,18 +478,16 @@ static const struct of_device_id usbhs_of_match[] = {
|
|
.data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
.data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- /* Gen3 is compatible with Gen2 */
|
|
|
|
.compatible = "renesas,usbhs-r8a7795",
|
|
.compatible = "renesas,usbhs-r8a7795",
|
|
- .data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
|
|
|
|
+ .data = (void *)USBHS_TYPE_RCAR_GEN3,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
.compatible = "renesas,rcar-gen2-usbhs",
|
|
.compatible = "renesas,rcar-gen2-usbhs",
|
|
.data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
.data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- /* Gen3 is compatible with Gen2 */
|
|
|
|
.compatible = "renesas,rcar-gen3-usbhs",
|
|
.compatible = "renesas,rcar-gen3-usbhs",
|
|
- .data = (void *)USBHS_TYPE_RCAR_GEN2,
|
|
|
|
|
|
+ .data = (void *)USBHS_TYPE_RCAR_GEN3,
|
|
},
|
|
},
|
|
{ },
|
|
{ },
|
|
};
|
|
};
|
|
@@ -578,6 +577,13 @@ static int usbhs_probe(struct platform_device *pdev)
|
|
priv->dparam.pipe_size = ARRAY_SIZE(usbhsc_new_pipe);
|
|
priv->dparam.pipe_size = ARRAY_SIZE(usbhsc_new_pipe);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
|
|
+ case USBHS_TYPE_RCAR_GEN3:
|
|
|
|
+ priv->pfunc = usbhs_rcar3_ops;
|
|
|
|
+ if (!priv->dparam.pipe_configs) {
|
|
|
|
+ priv->dparam.pipe_configs = usbhsc_new_pipe;
|
|
|
|
+ priv->dparam.pipe_size = ARRAY_SIZE(usbhsc_new_pipe);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
if (!info->platform_callback.get_id) {
|
|
if (!info->platform_callback.get_id) {
|
|
dev_err(&pdev->dev, "no platform callbacks");
|
|
dev_err(&pdev->dev, "no platform callbacks");
|