From patchwork Fri Dec 7 14:14:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1009457 X-Patchwork-Delegate: uboot@andestech.com 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QPD+wGJP"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43BDyC2vnhz9rxp for ; Sat, 8 Dec 2018 01:15:15 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D9467C2271C; Fri, 7 Dec 2018 14:11:49 +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=FREEMAIL_FROM, 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 75D0BC226F7; Fri, 7 Dec 2018 14:10:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B523FC22715; Fri, 7 Dec 2018 14:09:51 +0000 (UTC) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by lists.denx.de (Postfix) with ESMTPS id CA839C22714 for ; Fri, 7 Dec 2018 14:09:44 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id y4so1769726pgc.12 for ; Fri, 07 Dec 2018 06:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=KlPmUSV2bXF+dK3KRcSUGz5eo543ItckXpKPf5RfQPE=; b=QPD+wGJPJ2KMPxfk+j6KikKKnRcODuYKZwl9uFbwYIHJLtgTEJ2VPYoHAKEONAA3J1 OWL06AEAFs6zDUiTDf5ujQebP3PSlySiIakffGE9SaaISwrF01E+Yh/3AJifDGskgaT3 3KwzNwiGJVS2jdeLJsMohTt2h9FtaMtLcrjvr8yH9MZpvUVFIsSZk9MUa4FwQmMn3Msh ImEn79hjIzB8H40ZSpq2282+1bCbQi0w+lIYzNH7AvyT28dNI68UjEETcDj6A/kAT1TP 1JBQTzucDwrhW8PoavFqOxuF4fPrnk1ozGn+dsBO498odNuWWxh8mIymYtY/idGC49pf EjOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=KlPmUSV2bXF+dK3KRcSUGz5eo543ItckXpKPf5RfQPE=; b=JO1fRC7b17tfu7wCAw8M1P/L8rk6IaygzmsEZ0iZNTbTwUCQPdIBPMvtjgJLEwB07l PrF3hEuM3cVTGD1KLPZt6fQqFRVSGNlFqx0JqBjOcA7whcxog0JhFs2K6R6Oluf/Q0mp oz8O4umCoJaXYJWpsMbIZnzlgey5P36fp3qu0kkOmLeV3OQpyYLnAA2FYCUpUrCyCE7Q eZVambaqFMX7QjDzXt3RT1hW9xO0nVG1eA4zohhP0aXi3g7qF+pP7Cd+wipMLTdFcOTt 1uqgiFCNSWBbdnIxQekJWhUa2PQv49d0aU6YeBZ+Qhv4zh7lpfTuOOAO2i9eHmh0aU5o LyHw== X-Gm-Message-State: AA+aEWazWGegxYwG5ePQgcCzVeqGR2R5Zc7to6M5dGXoUbLDCpTY7o3G OjRWKSH+UPnRAJfYSKcSvxw= X-Google-Smtp-Source: AFSGD/U6lB7XK5o3lv5PrOdmnp13AF7hliB0iEfEA+kTi63ruCyEubt5LhBOii4i2FvDjDFKZ4hJxw== X-Received: by 2002:a63:f844:: with SMTP id v4mr2093568pgj.82.1544191783531; Fri, 07 Dec 2018 06:09:43 -0800 (PST) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id f6sm5206070pfg.188.2018.12.07.06.09.42 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Dec 2018 06:09:42 -0800 (PST) From: Bin Meng To: Rick Chen , Simon Glass , Lukas Auer , Anup Patel , U-Boot Mailing List Date: Fri, 7 Dec 2018 06:14:22 -0800 Message-Id: <1544192072-28764-11-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544192072-28764-1-git-send-email-bmeng.cn@gmail.com> References: <1544192072-28764-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 10/20] riscv: qemu: Add platform-specific Kconfig options 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" Add the QEMU RISC-V platform-specific Kconfig options, to include CPU and timer drivers. Signed-off-by: Bin Meng Reviewed-by: Lukas Auer --- Changes in v2: - add CMD_CPU as well arch/riscv/Kconfig | 1 + arch/riscv/cpu/qemu/Kconfig | 11 +++++++++++ board/emulation/qemu-riscv/Kconfig | 1 + 3 files changed, 13 insertions(+) create mode 100644 arch/riscv/cpu/qemu/Kconfig diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 7dc6e3f..39ca2d8 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -22,6 +22,7 @@ source "board/emulation/qemu-riscv/Kconfig" # platform-specific options below source "arch/riscv/cpu/ax25/Kconfig" +source "arch/riscv/cpu/qemu/Kconfig" # architecture-specific options below diff --git a/arch/riscv/cpu/qemu/Kconfig b/arch/riscv/cpu/qemu/Kconfig new file mode 100644 index 0000000..2e953e1 --- /dev/null +++ b/arch/riscv/cpu/qemu/Kconfig @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2018, Bin Meng + +config QEMU_RISCV + bool + imply CPU + imply CPU_RISCV + imply RISCV_TIMER + imply SIFIVE_CLINT if RISCV_MMODE + imply CMD_CPU diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig index 56bb533..ed005e5 100644 --- a/board/emulation/qemu-riscv/Kconfig +++ b/board/emulation/qemu-riscv/Kconfig @@ -18,6 +18,7 @@ config SYS_TEXT_BASE config BOARD_SPECIFIC_OPTIONS # dummy def_bool y + select QEMU_RISCV imply SYS_NS16550 imply VIRTIO_MMIO imply VIRTIO_NET