mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
usb: chipidea: s32g: Add usb support for s32g3
Enable USB driver for the s32g3 USB device. Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/1733ae21-7257-4fdd-8249-7eaebbf769a2@sabinyo.mountain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a4a2756546
commit
08c8767ada
@@ -676,6 +676,11 @@ static int usbmisc_s32g2_init(struct imx_usbmisc_data *data)
|
||||
return usbmisc_s32g_init(data, S32G_UCMALLBE);
|
||||
}
|
||||
|
||||
static int usbmisc_s32g3_init(struct imx_usbmisc_data *data)
|
||||
{
|
||||
return usbmisc_s32g_init(data, 0);
|
||||
}
|
||||
|
||||
static int usbmisc_imx7d_set_wakeup
|
||||
(struct imx_usbmisc_data *data, bool enabled)
|
||||
{
|
||||
@@ -1224,6 +1229,12 @@ static const struct usbmisc_ops s32g2_usbmisc_ops = {
|
||||
.power_lost_check = usbmisc_s32g_power_lost_check,
|
||||
};
|
||||
|
||||
static const struct usbmisc_ops s32g3_usbmisc_ops = {
|
||||
.init = usbmisc_s32g3_init,
|
||||
.set_wakeup = usbmisc_s32g_set_wakeup,
|
||||
.power_lost_check = usbmisc_s32g_power_lost_check,
|
||||
};
|
||||
|
||||
static inline bool is_imx53_usbmisc(struct imx_usbmisc_data *data)
|
||||
{
|
||||
struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
|
||||
@@ -1468,6 +1479,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[] = {
|
||||
.compatible = "nxp,s32g2-usbmisc",
|
||||
.data = &s32g2_usbmisc_ops,
|
||||
},
|
||||
{
|
||||
.compatible = "nxp,s32g3-usbmisc",
|
||||
.data = &s32g3_usbmisc_ops,
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, usbmisc_imx_dt_ids);
|
||||
|
||||
Reference in New Issue
Block a user