Skip to content

Commit 811d221

Browse files
Kaustabh Chakrabortygregkh
authored andcommitted
usb: dwc3: exynos: add support for exynos7870
Exynos7870 devices have a DWC3 compatible USB 2.0 controller. Add support in the driver by: - Adding its own compatible string, "samsung,exynos7870-dwusb3". - Adding three USBDRD clocks named "bus_early", "ref", and "ctrl", to be controlled by the driver. Signed-off-by: Kaustabh Chakraborty <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 43092fc commit 811d221

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/usb/dwc3/dwc3-exynos.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ static const struct dwc3_exynos_driverdata exynos7_drvdata = {
163163
.suspend_clk_idx = 1,
164164
};
165165

166+
static const struct dwc3_exynos_driverdata exynos7870_drvdata = {
167+
.clk_names = { "bus_early", "ref", "ctrl" },
168+
.num_clks = 3,
169+
.suspend_clk_idx = -1,
170+
};
171+
166172
static const struct dwc3_exynos_driverdata exynos850_drvdata = {
167173
.clk_names = { "bus_early", "ref" },
168174
.num_clks = 2,
@@ -185,6 +191,9 @@ static const struct of_device_id exynos_dwc3_match[] = {
185191
}, {
186192
.compatible = "samsung,exynos7-dwusb3",
187193
.data = &exynos7_drvdata,
194+
}, {
195+
.compatible = "samsung,exynos7870-dwusb3",
196+
.data = &exynos7870_drvdata,
188197
}, {
189198
.compatible = "samsung,exynos850-dwusb3",
190199
.data = &exynos850_drvdata,

0 commit comments

Comments
 (0)