usb: gadget: udc: renesas_usb3: add support for r8a77990
Since r8a77990 (R-Car E3) doesn't have VBUS detect pin and number of ramif is 4, this patch adds a new renesas_usb3_priv variable for the SoC. 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:
parent
c6d849e562
commit
30025efa8b
1 changed files with 11 additions and 0 deletions
|
@ -2603,6 +2603,13 @@ static const struct renesas_usb3_priv renesas_usb3_priv_gen3 = {
|
||||||
.ramsize_per_pipe = SZ_4K,
|
.ramsize_per_pipe = SZ_4K,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct renesas_usb3_priv renesas_usb3_priv_r8a77990 = {
|
||||||
|
.ramsize_per_ramif = SZ_16K,
|
||||||
|
.num_ramif = 4,
|
||||||
|
.ramsize_per_pipe = SZ_4K,
|
||||||
|
.workaround_for_vbus = true,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct of_device_id usb3_of_match[] = {
|
static const struct of_device_id usb3_of_match[] = {
|
||||||
{
|
{
|
||||||
.compatible = "renesas,r8a7795-usb3-peri",
|
.compatible = "renesas,r8a7795-usb3-peri",
|
||||||
|
@ -2621,6 +2628,10 @@ static const struct soc_device_attribute renesas_usb3_quirks_match[] = {
|
||||||
.soc_id = "r8a7795", .revision = "ES1.*",
|
.soc_id = "r8a7795", .revision = "ES1.*",
|
||||||
.data = &renesas_usb3_priv_r8a7795_es1,
|
.data = &renesas_usb3_priv_r8a7795_es1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.soc_id = "r8a77990",
|
||||||
|
.data = &renesas_usb3_priv_r8a77990,
|
||||||
|
},
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue