From patchwork Tue Dec 11 15:02:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1011126 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=brainfault-org.20150623.gappssmtp.com header.i=@brainfault-org.20150623.gappssmtp.com header.b="cSsZ4ACV"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43DjqL4MgHz9s5c for ; Wed, 12 Dec 2018 02:02:50 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E1195C22547; Tue, 11 Dec 2018 15:02:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 92CCCC2231D; Tue, 11 Dec 2018 15:02:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 182F4C2231D; Tue, 11 Dec 2018 15:02:40 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id 4214EC22277 for ; Tue, 11 Dec 2018 15:02:39 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id z11so6768043pgu.0 for ; Tue, 11 Dec 2018 07:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IF/ASONCqIwS2COLImUuiRtTYJPcfuhX+zBiXBXK0Kk=; b=cSsZ4ACVhPTHohn3tSMBwtzXvFOr8pzgTZGaZqW9IiS3vU9qhKPNBiCU/1g7KPFrZc n3PPRYheEmidjZnlERTtVQv1+Nc/4sa4DRPP7N6S3oGiGp6WTCtxrfX3hQFbgvtQK3uX mBce2XnKhOUk7G0KGvOWu6YR75mgSILrOjGD7ZA/mmfsA+GAEV/olZpcF670430mc7pt iJyXV+gAInPFn4x5EvSjg/5xO9JPffwx0oJvvsnpkAf90lZj7chTfctg8zAFjsKwPMpY vPKBOsfPJc4rRtM4B8ochl5dDu9VL1YUCW8uMVRBi3/adqygqtIsWDM1Wt/5RHGPRqnB Eolg== 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; bh=IF/ASONCqIwS2COLImUuiRtTYJPcfuhX+zBiXBXK0Kk=; b=rxpFeMPIQBko9/No9tYWJpcWjtZGNGg3OF9mU6FwtYwRHDAmOaVse1G/+/mHI9ba/6 Mtyf7TZyb9lAk2n+h6jU5nzBG61afeDWM6ip1sDb3ziTNu5PD9ehKsDW7EJgW0o52zrG VMoL7hyPDMhYv7sBl15LPcWTmfXBpLKJZIlb06t4JZK0ISkXnlG2+rrEVewp7klDJj5d ollOEFKvWFTIvIgZvHSR0/SgYZeTftwVNyp3CS7ex0SrVBVD+ItwzxJO3bIBW92hSxne Ijy09jKj/NDkBZ/eO/4u6mJx6skrUH8cpJsn7MR5Jdmy+yRdKDvDdnlQmBv+TG3hjMs9 OUvA== X-Gm-Message-State: AA+aEWY2B6hSdLZZv1NSDl/pwqMepNuMtugDAIdX0pwhiTNjocKmc8OC fVerkL3X7Qlg/9mRo0x8RomjSg== X-Google-Smtp-Source: AFSGD/Xr219aGIKE76+sJ5p4gxmBDO8alyRwRh8c9IRSgIaaUhcBZ6zA2Wj07ZYNsgzX6+o4tKJ53Q== X-Received: by 2002:a63:134f:: with SMTP id 15mr14754641pgt.19.1544540557074; Tue, 11 Dec 2018 07:02:37 -0800 (PST) Received: from localhost.localdomain ([106.51.21.244]) by smtp.gmail.com with ESMTPSA id m20sm15317063pgv.93.2018.12.11.07.02.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 07:02:36 -0800 (PST) From: Anup Patel To: Rick Chen , Bin Meng , Lukas Auer Date: Tue, 11 Dec 2018 20:32:19 +0530 Message-Id: <20181211150221.62514-1-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 Cc: U-Boot Mailing List , Palmer Dabbelt , Alexander Graf , Christoph Hellwig , Atish Patra Subject: [U-Boot] [PATCH v2 0/2] SiFive UART support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset adds SiFive UART driver for SiFive UART found on SiFive boards. The driver is tested on QEMU sifive_u machine. In fact, with this patchset same U-Boot binary boots on QEMU virt machine and QEMU sifive_u machine in both M-mode and S-mode. The patches are based upon latest RISC-V UBoot tree (git://git.denx.de/u-boot-riscv.git) at commit id 48cbf6246052de10d35b616b5efb2f783904a49d Changes since v1: - Fixed copyright header in SiFive UART driver - Imply SIFIVE_SERIAL for QEMU emulation instead of enabling it in defconfigs. Anup Patel (2): drivers: serial: Add SiFive UART driver riscv: qemu: Imply SIFIVE_SERIAL for emulation board/emulation/qemu-riscv/Kconfig | 1 + drivers/serial/Kconfig | 13 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_sifive.c | 191 +++++++++++++++++++++++++++++ 4 files changed, 206 insertions(+) create mode 100644 drivers/serial/serial_sifive.c Signed-off-by: Anup Patel