From patchwork Tue Sep 29 07:50:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andes X-Patchwork-Id: 1373102 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=andestech.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C0sLl5y3Nz9s0b for ; Tue, 29 Sep 2020 18:02:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B774681C0C; Tue, 29 Sep 2020 10:02:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 74DC281C2C; Tue, 29 Sep 2020 10:02:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from ATCSQR.andestech.com (exmail.andestech.com [60.248.187.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 32FE081BF9 for ; Tue, 29 Sep 2020 10:02:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=uboot@andestech.com Received: from mail.andestech.com (atcpcs12.andestech.com [10.0.1.220]) by ATCSQR.andestech.com with ESMTP id 08T7m6pe024724; Tue, 29 Sep 2020 15:48:06 +0800 (GMT-8) (envelope-from uboot@andestech.com) Received: from [127.0.1.1] (10.0.15.117) by ATCPCS12.andestech.com (10.0.1.220) with Microsoft SMTP Server id 14.3.123.3; Tue, 29 Sep 2020 16:01:50 +0800 MIME-Version: 1.0 Subject: Pull request: u-boot-riscv/master 20200929 From: To: , , , Date: Tue, 29 Sep 2020 15:50:15 +0800 Message-ID: X-Originating-IP: [10.0.15.117] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 08T7m6pe024724 X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Hi Tom, Please pull some riscv updates: - Disable CMD_IRQ for RISC-V. - Update sipeed/maix doc - Obtain reg of SiFive RAM via dev_read_addr_index() instead of regmap API. - Cleans up RISC-V timer drivers and converts them to DM. - Correctly handle IPIs already pending upon prior stage bootloader (on the K210) Thanks Rick https://travis-ci.org/github/rickchen36/u-boot-riscv/builds/731148651 The following changes since commit d44d46e9fafaae85b0ebbcdc53999537a199fa2f: Merge tag 'efi-2020-10-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi (2020-09-28 08:26:49 -0400) are available in the Git repository at: git@gitlab.denx.de:u-boot/custodians/u-boot-riscv.git for you to fetch changes up to e8f0f002930955e46c2b7cc4e1e6754570a0b439: riscv: Add some comments to start.S (2020-09-29 09:55:22 +0800) ---------------------------------------------------------------- Bin Meng (2): ram: sifive: Check return value on clk_enable() ram: sifive: Remove regmap dependency Heinrich Schuchardt (2): doc: correct kflash settings for Maix One Dock doc/sipeed/maix: describe RESET and BOOT button Pragnesh Patel (1): cmd: irq: disable CMD_IRQ for riscv arch Sean Anderson (16): riscv: Rework riscv timer driver to only support S-mode timer: Add helper for drivers using timebase fallback timer: Add a test for timer_timebase_fallback riscv: Rework Andes PLMT as a UCLASS_TIMER driver riscv: Clean up initialization in Andes PLIC riscv: Rework Sifive CLINT as UCLASS_TIMER driver riscv: clk: Add CLINT clock to kendryte clock driver riscv: Update Kendryte device tree for new CLINT driver riscv: Update SiFive device tree for new CLINT driver Revert "riscv: Clear pending interrupts before enabling IPIs" riscv: Match memory barriers between send_ipi_many and handle_ipi riscv: Use a valid bit to ignore already-pending IPIs riscv: Clear pending IPIs on initialization riscv: Consolidate fences into AMOs for available_harts_lock riscv: Ensure gp is NULL or points to valid data riscv: Add some comments to start.S arch/riscv/Kconfig | 16 ---------------- arch/riscv/cpu/ax25/Kconfig | 2 +- arch/riscv/cpu/cpu.c | 20 ++++++++++++++++++++ arch/riscv/cpu/fu540/Kconfig | 2 +- arch/riscv/cpu/generic/Kconfig | 2 +- arch/riscv/cpu/start.S | 58 +++++++++++++++++++++++++++++++++++++++++++++------------- arch/riscv/dts/fu540-c000-u-boot.dtsi | 8 ++++++-- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 4 ++++ arch/riscv/dts/k210.dtsi | 7 ++++--- arch/riscv/include/asm/global_data.h | 3 --- arch/riscv/include/asm/smp.h | 7 +++++++ arch/riscv/include/asm/syscon.h | 4 ++-- arch/riscv/lib/Makefile | 1 - arch/riscv/lib/andes_plic.c | 58 +++++++++++++++++++++++++--------------------------------- arch/riscv/lib/andes_plmt.c | 44 +++++++++++++++++++++----------------------- arch/riscv/lib/interrupts.c | 3 ++- arch/riscv/lib/rdtime.c | 38 -------------------------------------- arch/riscv/lib/sifive_clint.c | 62 ++++++++++++++++++++++++++++++++++---------------------------- arch/riscv/lib/smp.c | 16 +++++++++++++++- arch/sandbox/dts/test.dts | 9 ++++++++- arch/sandbox/include/asm/cpu.h | 11 +++++++++++ cmd/Kconfig | 2 +- doc/board/sipeed/maix.rst | 10 +++++++--- drivers/clk/kendryte/clk.c | 4 ++++ drivers/cpu/cpu_sandbox.c | 39 ++++++++++++++++++++++++++++++++------- drivers/ram/sifive/fu540_ddr.c | 17 ++++++++--------- drivers/timer/Kconfig | 4 ++-- drivers/timer/riscv_timer.c | 39 ++++++++++++++++++++------------------- drivers/timer/sandbox_timer.c | 4 +++- drivers/timer/timer-uclass.c | 31 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/k210-sysctl.h | 1 + include/timer.h | 15 +++++++++++++++ test/dm/timer.c | 27 ++++++++++++++++++++++++++- 33 files changed, 357 insertions(+), 211 deletions(-) delete mode 100644 arch/riscv/lib/rdtime.c create mode 100644 arch/sandbox/include/asm/cpu.h