From: Bin Meng Date: Wed, 22 May 2019 00:09:43 -0700 Subject: [U-Boot] [PATCH v2 0/4] At present the GEM ethernet on SiFive Unleashed board can only work Message-ID: <1558508987-3239-1-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de in 1000 Mbps mode. With a 10/100 Mbps connection it just fails to do any network communication. This adds a new GEMGXL clock driver to adjust the clock settings per the connection speed so that 10/100 Mbps works. Changes in v2: - rename driver name to "sifive-gemgxl-mgmt" - add a comment for getting "tx_clk" via clk_get_by_name() - does not change anything in the default case - check the return value of clk_set_rate() Bin Meng (4): clk: sifive: Add clock driver for GEMGXL MGMT dm: net: macb: Update macb_linkspd_cb() signature dm: net: macb: Implement link speed change callback riscv: sifive: fu540: Enable GEMGXL MGMT driver board/sifive/fu540/Kconfig | 1 + drivers/clk/sifive/Kconfig | 7 +++++ drivers/clk/sifive/Makefile | 2 ++ drivers/clk/sifive/gemgxl-mgmt.c | 60 ++++++++++++++++++++++++++++++++++++++++ drivers/net/macb.c | 57 +++++++++++++++++++++++++++++++++++++- 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/sifive/gemgxl-mgmt.c -- 2.7.4