From patchwork Mon Oct 26 01:46:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1387422 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=rguDtTeQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKHl25rqyz9sSs for ; Mon, 26 Oct 2020 12:47:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B310382485; Mon, 26 Oct 2020 02:47:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rguDtTeQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4CB158248D; Mon, 26 Oct 2020 02:47:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 65C3982465 for ; Mon, 26 Oct 2020 02:47:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x836.google.com with SMTP id e6so5723577qtw.10 for ; Sun, 25 Oct 2020 18:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iLFDKqV/Sj1ir18Hk/93oRmlEIAXeMOiYuIrjSnHMlQ=; b=rguDtTeQ1xpk8pukGYWikESzzvPJUB+gGuoaDETE91Btn7AdmosxYCBNDvrd0wjkQL hVzIBdZOevyoNJw+poK2KpLr+NV2/2JLn/V/YxKEbhVetSiYWcrxVutxjmaaBAMiYTju VKIFU+dHulIzH4vKU6oExKTXDx7Tk+FWzyldF1bRfbhgvRbZMIbUEDmINkMD0zEyIqLe jGZhGCc+E5wE3Nobdd5BIWtC4E/FoWhZ/5vrr317hEIJj1wE1DYWyaoIzyPfnJywAC1V V+X18Sk4N7o5f1NFYe5GRc6B10jKzVnirhVhMbchUlRtRKO3jOou9mdpMTWIYGKCom/7 Mmew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iLFDKqV/Sj1ir18Hk/93oRmlEIAXeMOiYuIrjSnHMlQ=; b=VTbsERGuqNvWwszq1uILAf5/6A1e+XYKuZ5h6HgFoxDLdcoefm7u838KnFqjweDHyO a10Lp2w0hFNmnC+ClnXSvic/EH2QEX4CMO7pkgHyxTAtJvDgg8iMvICjLeOT8ni7O8Ac Gv8xoS+5UDxRH090HnZ6aSkZUWskxIZbCnVr13BellyqWiUyzNAOsqWUbblsMhTuMadR tw6bQOKAABwkpNd83PJY/toeK/2sy5d1lM0F4OVZHxeTfYAFMboI2XzVIgVOS+6PyZNc axtFheLe2OPN7PMRki50QUOxPCtlax9CD3Y0+gXo3tWuEDYxPDWqAduzA/s3nJG4hV9z Idug== X-Gm-Message-State: AOAM533v2unNR1JZ5Ivcntt9opYNLMj3aTQTW795fyEvyCHN5O+Hqw8h bUCL7KLj2t9mBX0IofgGD6tIRXIyslLKug== X-Google-Smtp-Source: ABdhPJwWSsay8etQF5JDw8PasbdI0Z6UtPIO2vhj4o8ZtUA5d7MT4HI1DSU9FplMK2fhqvUo2DHPIQ== X-Received: by 2002:a05:622a:8d:: with SMTP id o13mr13696319qtw.146.1603676821186; Sun, 25 Oct 2020 18:47:01 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id k15sm5840964qtq.11.2020.10.25.18.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 18:47:00 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Simon Glass , Rick Chen , Bin Meng , Pragnesh Patel , Sean Anderson Subject: [PATCH v2 0/3] riscv: Move timers into drivers/timer Date: Sun, 25 Oct 2020 21:46:55 -0400 Message-Id: <20201026014658.609304-1-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 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 Now that mtime sources are regular timers, they can go in with the rest of the timer drivers. I have assigned maintenance of these drivers to Rick Chen, as they were previous under his purview. Passing CI (for v1) located at [1]. [1] https://dev.azure.com/seanga2/9603e4b8-6f49-4106-b8fc-46e66a869d69/_build/results?buildId=45 Changes in v2: - Rebase onto master Sean Anderson (3): riscv: Move Andes PLMT driver to drivers/timer timer: Add _TIMER suffix to Andes PLMT Kconfig riscv: Move timer portions of SiFive CLINT to drivers/timer MAINTAINERS | 2 + arch/riscv/Kconfig | 7 --- arch/riscv/cpu/ax25/Kconfig | 2 +- arch/riscv/lib/Makefile | 1 - arch/riscv/lib/sifive_clint.c | 41 +--------------- drivers/timer/Kconfig | 7 +++ drivers/timer/Makefile | 2 + .../timer/andes_plmt_timer.c | 0 drivers/timer/sifive_clint_timer.c | 47 +++++++++++++++++++ 9 files changed, 61 insertions(+), 48 deletions(-) rename arch/riscv/lib/andes_plmt.c => drivers/timer/andes_plmt_timer.c (100%) create mode 100644 drivers/timer/sifive_clint_timer.c