usb: renesas_usbhs: add support for R-Car D3
This patch adds support for R-Car D3. This SoC needs to release the PLL reset by the UGCTRL register. So, since this is not the same as other R-Car Gen3 SoCs, this patch adds a new type as "USBHS_TYPE_RCAR_GEN3_WITH_PLL". Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:

committed by
Felipe Balbi

parent
a877b8e553
commit
0f38672c62
@@ -485,6 +485,10 @@ static const struct of_device_id usbhs_of_match[] = {
|
||||
.compatible = "renesas,usbhs-r8a7796",
|
||||
.data = (void *)USBHS_TYPE_RCAR_GEN3,
|
||||
},
|
||||
{
|
||||
.compatible = "renesas,usbhs-r8a77995",
|
||||
.data = (void *)USBHS_TYPE_RCAR_GEN3_WITH_PLL,
|
||||
},
|
||||
{
|
||||
.compatible = "renesas,rcar-gen2-usbhs",
|
||||
.data = (void *)USBHS_TYPE_RCAR_GEN2,
|
||||
@@ -519,7 +523,8 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev)
|
||||
dparam->enable_gpio = gpio;
|
||||
|
||||
if (dparam->type == USBHS_TYPE_RCAR_GEN2 ||
|
||||
dparam->type == USBHS_TYPE_RCAR_GEN3) {
|
||||
dparam->type == USBHS_TYPE_RCAR_GEN3 ||
|
||||
dparam->type == USBHS_TYPE_RCAR_GEN3_WITH_PLL) {
|
||||
dparam->has_usb_dmac = 1;
|
||||
dparam->pipe_configs = usbhsc_new_pipe;
|
||||
dparam->pipe_size = ARRAY_SIZE(usbhsc_new_pipe);
|
||||
@@ -584,6 +589,9 @@ static int usbhs_probe(struct platform_device *pdev)
|
||||
case USBHS_TYPE_RCAR_GEN3:
|
||||
priv->pfunc = usbhs_rcar3_ops;
|
||||
break;
|
||||
case USBHS_TYPE_RCAR_GEN3_WITH_PLL:
|
||||
priv->pfunc = usbhs_rcar3_with_pll_ops;
|
||||
break;
|
||||
default:
|
||||
if (!info->platform_callback.get_id) {
|
||||
dev_err(&pdev->dev, "no platform callbacks");
|
||||
|
Reference in New Issue
Block a user