Message ID | 1544623967-30010-4-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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="fkyOCZES"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43FJd42FsMz9s4s for <incoming@patchwork.ozlabs.org>; Thu, 13 Dec 2018 01:11:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id BA1B3C22709; Wed, 12 Dec 2018 14:09:12 +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 0B34EC22961; Wed, 12 Dec 2018 14:08:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 97D21C22977; Wed, 12 Dec 2018 14:08:14 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by lists.denx.de (Postfix) with ESMTPS id 1BF4FC2294B for <u-boot@lists.denx.de>; Wed, 12 Dec 2018 14:08:09 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id e5so8660862plb.5 for <u-boot@lists.denx.de>; Wed, 12 Dec 2018 06:08:09 -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=mKB90zfZKRi+iS4tSzsyMpidjpTE9doQVMRsGuQnVv4=; b=fkyOCZESwrChRdcyr6HXohNMgE4J0Yedm8rsiFKHojGQU0PSM75vT9+bAE3BZ6T2LX NSkb1qjbDshYFbvumN0JZTfltBAifZ5BO9wIElcZLyco4sF0NvQ4V+yXj1EJk0CyGh25 a6KAQZ25rxosoaKIxCVsp9iQEvzYrfxPSCSES8Jv4d0CBks0PFbdcwCWs2eaoFAef04s 4xSdnwXvv19eENp64Vr9tqgSUzi4nbhih8j6XrPFGbKv6cRhS6rfW0qwfmXdDhvAG6dQ VtF/K+5ql2duCq+bNuWQAsyEKIEqRZnG63FOR1PykuIevohiWm07N19B09HU9pAqIRF+ kHGw== 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=mKB90zfZKRi+iS4tSzsyMpidjpTE9doQVMRsGuQnVv4=; b=dLExgZU6OF9Jhm0r64l4ooJ8a6vcS0DoCWctOonSq+rYbNGk9Tmy/+fllCNhCH7E8B BMWsLWtrqyTSVO3sga0mEQVrTh959PRH88cjoIrBYh2XjA7h1PAUmDFSQt2o5njLVNvM fn99kghE8SbxochzgNrmDuaKtjdvuf7GQgnIaqtr2rEG/M4+nt90tpH65bF9E7KzLGLq d+9O1TYoZvMVEGCZPBGFyxnt11EMrNUJjZBZGd8ltkj0UWOZYWolk24ZS1vhC19os815 Pn5lYOcmgEmGE2vFnq5zOiRKmQid8HcYP5utTPAnbt8kUq673DeerbIkjIU5OP0Ou2wV LEkw== X-Gm-Message-State: AA+aEWaDa7pcZmZkufKrXwh8m+C/dEwo5qPHvPND99dSdM22JFnhbsBR hSmwvfNGGCMzL5q8uTRWIT8= X-Google-Smtp-Source: AFSGD/UbTT6AHWkWMg2kVNx0AbCJg5NhZBF3/Q9T3SmdbrkZXNnrj3f4BEfocs5+Gg7CEhX/goUAzA== X-Received: by 2002:a17:902:d911:: with SMTP id c17mr16096735plz.151.1544623687772; Wed, 12 Dec 2018 06:08:07 -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 o13sm21510331pfk.57.2018.12.12.06.08.06 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Dec 2018 06:08:07 -0800 (PST) From: Bin Meng <bmeng.cn@gmail.com> To: Rick Chen <rick@andestech.com>, Simon Glass <sjg@chromium.org>, Lukas Auer <lukas.auer@aisec.fraunhofer.de>, Anup Patel <anup@brainfault.org>, U-Boot Mailing List <u-boot@lists.denx.de> Date: Wed, 12 Dec 2018 06:12:25 -0800 Message-Id: <1544623967-30010-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544623967-30010-1-git-send-email-bmeng.cn@gmail.com> References: <1544623967-30010-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v5 03/25] riscv: qemu: Create a simple-bus driver for the soc node X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
riscv: Adding RISC-V CPU and timer driver
|
expand
|
diff --git a/arch/riscv/cpu/qemu/cpu.c b/arch/riscv/cpu/qemu/cpu.c index 25d97d0..ad2950c 100644 --- a/arch/riscv/cpu/qemu/cpu.c +++ b/arch/riscv/cpu/qemu/cpu.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <dm.h> /* * cleanup_before_linux() is called just before we call linux @@ -19,3 +20,16 @@ int cleanup_before_linux(void) return 0; } + +/* To enumerate devices on the /soc/ node, create a "simple-bus" driver */ +static const struct udevice_id riscv_virtio_soc_ids[] = { + { .compatible = "riscv-virtio-soc" }, + { } +}; + +U_BOOT_DRIVER(riscv_virtio_soc) = { + .name = "riscv_virtio_soc", + .id = UCLASS_SIMPLE_BUS, + .of_match = riscv_virtio_soc_ids, + .flags = DM_FLAG_PRE_RELOC, +};