Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * dwc3-keystone.c - Keystone Specific Glue layer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (C) 2010-2013 Texas Instruments Incorporated - https://www.ti.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * Author: WingMan Kwok <w-kwok2@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/dma-mapping.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/of_platform.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/phy/phy.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/pm_runtime.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) /* USBSS register offsets */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #define USBSS_REVISION		0x0000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #define USBSS_SYSCONFIG		0x0010
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #define USBSS_IRQ_EOI		0x0018
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #define USBSS_IRQSTATUS_RAW_0	0x0020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #define USBSS_IRQSTATUS_0	0x0024
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #define USBSS_IRQENABLE_SET_0	0x0028
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #define USBSS_IRQENABLE_CLR_0	0x002c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) /* IRQ register bits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #define USBSS_IRQ_EOI_LINE(n)	BIT(n)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #define USBSS_IRQ_EVENT_ST	BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #define USBSS_IRQ_COREIRQ_EN	BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) #define USBSS_IRQ_COREIRQ_CLR	BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) struct dwc3_keystone {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	struct device			*dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	void __iomem			*usbss;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	struct phy			*usb3_phy;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) static inline u32 kdwc3_readl(void __iomem *base, u32 offset)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	return readl(base + offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) static inline void kdwc3_writel(void __iomem *base, u32 offset, u32 value)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	writel(value, base + offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) static void kdwc3_enable_irqs(struct dwc3_keystone *kdwc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	u32 val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	val = kdwc3_readl(kdwc->usbss, USBSS_IRQENABLE_SET_0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	val |= USBSS_IRQ_COREIRQ_EN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	kdwc3_writel(kdwc->usbss, USBSS_IRQENABLE_SET_0, val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) static void kdwc3_disable_irqs(struct dwc3_keystone *kdwc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	u32 val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	val = kdwc3_readl(kdwc->usbss, USBSS_IRQENABLE_SET_0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	val &= ~USBSS_IRQ_COREIRQ_EN;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	kdwc3_writel(kdwc->usbss, USBSS_IRQENABLE_SET_0, val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) static irqreturn_t dwc3_keystone_interrupt(int irq, void *_kdwc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	struct dwc3_keystone	*kdwc = _kdwc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	kdwc3_writel(kdwc->usbss, USBSS_IRQENABLE_CLR_0, USBSS_IRQ_COREIRQ_CLR);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	kdwc3_writel(kdwc->usbss, USBSS_IRQSTATUS_0, USBSS_IRQ_EVENT_ST);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	kdwc3_writel(kdwc->usbss, USBSS_IRQENABLE_SET_0, USBSS_IRQ_COREIRQ_EN);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	kdwc3_writel(kdwc->usbss, USBSS_IRQ_EOI, USBSS_IRQ_EOI_LINE(0));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	return IRQ_HANDLED;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) static int kdwc3_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	struct device		*dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	struct device_node	*node = pdev->dev.of_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	struct dwc3_keystone	*kdwc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	int			error, irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	kdwc = devm_kzalloc(dev, sizeof(*kdwc), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	if (!kdwc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	platform_set_drvdata(pdev, kdwc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	kdwc->dev = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	kdwc->usbss = devm_platform_ioremap_resource(pdev, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	if (IS_ERR(kdwc->usbss))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		return PTR_ERR(kdwc->usbss);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	/* PSC dependency on AM65 needs SERDES0 to be powered before USB0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	kdwc->usb3_phy = devm_phy_optional_get(dev, "usb3-phy");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	if (IS_ERR(kdwc->usb3_phy))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 		return dev_err_probe(dev, PTR_ERR(kdwc->usb3_phy), "couldn't get usb3 phy\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	phy_pm_runtime_get_sync(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	error = phy_reset(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	if (error < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		dev_err(dev, "usb3 phy reset failed: %d\n", error);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 		return error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	error = phy_init(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	if (error < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 		dev_err(dev, "usb3 phy init failed: %d\n", error);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 		return error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	error = phy_power_on(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	if (error < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 		dev_err(dev, "usb3 phy power on failed: %d\n", error);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		phy_exit(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 		return error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	pm_runtime_enable(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	error = pm_runtime_get_sync(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	if (error < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		dev_err(kdwc->dev, "pm_runtime_get_sync failed, error %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 			error);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 		goto err_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	/* IRQ processing not required currently for AM65 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	if (of_device_is_compatible(node, "ti,am654-dwc3"))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 		goto skip_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	irq = platform_get_irq(pdev, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	if (irq < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 		error = irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 		goto err_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	error = devm_request_irq(dev, irq, dwc3_keystone_interrupt, IRQF_SHARED,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 			dev_name(dev), kdwc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	if (error) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 		dev_err(dev, "failed to request IRQ #%d --> %d\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 				irq, error);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 		goto err_irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	kdwc3_enable_irqs(kdwc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) skip_irq:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	error = of_platform_populate(node, NULL, NULL, dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	if (error) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 		dev_err(&pdev->dev, "failed to create dwc3 core\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 		goto err_core;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) err_core:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	kdwc3_disable_irqs(kdwc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) err_irq:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	pm_runtime_put_sync(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	pm_runtime_disable(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	phy_power_off(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	phy_exit(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	phy_pm_runtime_put_sync(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	return error;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) static int kdwc3_remove_core(struct device *dev, void *c)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	struct platform_device *pdev = to_platform_device(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	platform_device_unregister(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) static int kdwc3_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	struct dwc3_keystone *kdwc = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	struct device_node *node = pdev->dev.of_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	if (!of_device_is_compatible(node, "ti,am654-dwc3"))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 		kdwc3_disable_irqs(kdwc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	device_for_each_child(&pdev->dev, NULL, kdwc3_remove_core);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	pm_runtime_put_sync(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	pm_runtime_disable(kdwc->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	phy_power_off(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	phy_exit(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	phy_pm_runtime_put_sync(kdwc->usb3_phy);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	platform_set_drvdata(pdev, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) static const struct of_device_id kdwc3_of_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	{ .compatible = "ti,keystone-dwc3", },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	{ .compatible = "ti,am654-dwc3" },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	{},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) MODULE_DEVICE_TABLE(of, kdwc3_of_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) static struct platform_driver kdwc3_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	.probe		= kdwc3_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	.remove		= kdwc3_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	.driver		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 		.name	= "keystone-dwc3",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 		.of_match_table	= kdwc3_of_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) module_platform_driver(kdwc3_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) MODULE_ALIAS("platform:keystone-dwc3");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_AUTHOR("WingMan Kwok <w-kwok2@ti.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_LICENSE("GPL v2");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_DESCRIPTION("DesignWare USB3 KEYSTONE Glue Layer");