mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
4ed209326b
Siflower SF19A2890 is an SoC with: Dual-core MIPS InterAptiv at 800MHz DDR3 controller One Gigabit Ethernet MAC with RGMII and IPv4 HNAT engine Built-in 2x2 11N + 2x2 11AC WiFi radio USB 2.0 OTG I2C/SPI/GPIO and various other peripherals This PR adds support for SF19A2890 EVB with ethernet support. EVB spec: Memory: DDR3 128M Ethernet: RTL8367RB 5-port gigabit switch Flash: 16M NOR Others: MicroUSB OTG, LED x 1, Reset button x1 The built image can be flashed using u-boot recovery. This target is marked as source-only until support for a commercial router board comes. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 29282086f215ae723e6d2c139d23094e699ba5bb Mon Sep 17 00:00:00 2001
|
|
From: Chuanhong Guo <gch981213@gmail.com>
|
|
Date: Mon, 9 Sep 2024 16:46:53 +0800
|
|
Subject: [PATCH 8/9] usb: dwc2: add support for Siflower SF19A2890
|
|
|
|
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
|
|
---
|
|
drivers/usb/dwc2/params.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
--- a/drivers/usb/dwc2/params.c
|
|
+++ b/drivers/usb/dwc2/params.c
|
|
@@ -200,6 +200,14 @@ static void dwc2_set_amcc_params(struct
|
|
p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT;
|
|
}
|
|
|
|
+static void dwc2_set_sf19a2890_params(struct dwc2_hsotg *hsotg)
|
|
+{
|
|
+ struct dwc2_core_params *p = &hsotg->params;
|
|
+
|
|
+ p->max_transfer_size = 65535;
|
|
+ p->ahbcfg = GAHBCFG_HBSTLEN_INCR4 << GAHBCFG_HBSTLEN_SHIFT;
|
|
+}
|
|
+
|
|
static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
|
|
{
|
|
struct dwc2_core_params *p = &hsotg->params;
|
|
@@ -294,6 +302,8 @@ const struct of_device_id dwc2_of_match_
|
|
.data = dwc2_set_amlogic_a1_params },
|
|
{ .compatible = "amcc,dwc-otg", .data = dwc2_set_amcc_params },
|
|
{ .compatible = "apm,apm82181-dwc-otg", .data = dwc2_set_amcc_params },
|
|
+ { .compatible = "siflower,sf19a2890-usb",
|
|
+ .data = dwc2_set_sf19a2890_params },
|
|
{ .compatible = "st,stm32f4x9-fsotg",
|
|
.data = dwc2_set_stm32f4x9_fsotg_params },
|
|
{ .compatible = "st,stm32f4x9-hsotg" },
|