From patchwork Tue Dec 11 09:34:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1010930 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="YOWxSRQX"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43DZhG2M0bz9s3l for ; Tue, 11 Dec 2018 20:41:18 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 047D5C22133; Tue, 11 Dec 2018 09:34:32 +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_DNSWL_BLOCKED, 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 E9DBCC22634; Tue, 11 Dec 2018 09:30:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8C36EC22605; Tue, 11 Dec 2018 09:30:20 +0000 (UTC) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by lists.denx.de (Postfix) with ESMTPS id 7C030C223CA for ; Tue, 11 Dec 2018 09:30:16 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id 101so6661946pld.6 for ; Tue, 11 Dec 2018 01:30:16 -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=o/CYIw5sLVjogRo6UkIIhFyp2dcTufWM0oN7o82SiwU=; b=YOWxSRQX7fSyaIYZ5JklrNch+ETvxEXNvXnztJge/t/8XQED7SPBR6IpQbGY0xWFAP u8YXEyitmE8x3GO3dxzRTTwyuveGuBqo8B1iD//H9+Wj7tOZSDn5v7Aswxpksj428Egd A9oeLLqvyj97AgD9oOT9vrEkNuChAp0MtBeKrrdSwKwXRadNAjPDfMhX9fkx1cZVjDQI 9oYfUCILH4N2koLOO5iYw0cpwq4t1b72k1sLMR+qLW5y8PA/A94J1MSGww0uhYALPf9Y IUCxUqzmxlBA8RFpms9hqYUCEZRNoLEJ+mtpPXzPAcq4VUeTjR9NSrpLIDiRlBm6nzX7 p17Q== 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=o/CYIw5sLVjogRo6UkIIhFyp2dcTufWM0oN7o82SiwU=; b=ndEmknhJtIXFnqfCMHclHpSoIJz3003ZaFh6RnwYPoXaiQfTGH283JbqAYSIJrEzrL tlt0k4O0qeNYGdFJxiOS433zFFh0A8NNasW0sBSBjXmzehGNDctAEpGdLZJTh/fk9JeC 29ZCx8ZwId5oikzae5pbSYI1RUqWNYAIxzo7bj1TxX28qp7BstMboJHDO3GR6gXvg6V3 OQnlISWSHSt6zmAjcrXeCxUT1o27NIqg3vVTMo+a8IBFO8Bd1SlMPPDtfyh4ElHmpPUZ v2chB05MyQQLBPj+miZvTx2ztFGTim30P6Ex39qmmCJ0/IJS+u99de4Nx6vcic6Pw7p3 Ks5A== X-Gm-Message-State: AA+aEWb5lyJa3uF49NOrogZZHQ3AOienep79pOgmSbN8pOm9CrPcQ42W QXML2ttLKKe6dZLH/8er8fY= X-Google-Smtp-Source: AFSGD/V/tRA2SCVYj6d0hzYuAQ12A8Mm/Vb/fPZ25FVdMgb5xNFkqxfU5rWH3FZ+dAYL/E1cfvOzKg== X-Received: by 2002:a17:902:9887:: with SMTP id s7mr14994993plp.199.1544520615181; Tue, 11 Dec 2018 01:30:15 -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 n66sm21916129pfk.19.2018.12.11.01.30.14 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Dec 2018 01:30:14 -0800 (PST) From: Bin Meng To: Rick Chen , Simon Glass , Lukas Auer , Anup Patel , U-Boot Mailing List Date: Tue, 11 Dec 2018 01:34:46 -0800 Message-Id: <1544520901-31558-11-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544520901-31558-1-git-send-email-bmeng.cn@gmail.com> References: <1544520901-31558-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v3 10/25] 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 v3: None 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