Message ID | 1614244979-48216-26-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | 46c9b595369170bc011e56dfb0c26d834f3e5e60 |
Delegated to: | Priyanka Jain |
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=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=<UNKNOWN>) 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=rUjPCGqy; 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 4DmSCD4PlSz9s1l for <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:28:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 47F4A82462; Thu, 25 Feb 2021 10:27:31 +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="rUjPCGqy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5904581FB9; Thu, 25 Feb 2021 10:25:28 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 1368781F66 for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:25:16 +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=bmeng.cn@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id l12so5930090edt.3 for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f2gs/4tpJkayHk43mbyg0XDMtZFthYdkCi8NaZV6NEE=; b=rUjPCGqyMl3U+FVSJ5LfIUa8UlwJTlvUyE2/8nfq+ESxJ2v3Y8GBWHRAi1bY25yvXG EDRe+IicUQCAtHTwXgARb0Ji5SYpBSFcE0WEZBp1Z/lT7aae1GMspf9k4+YVsrmdST/0 maDbF013ilJB0ppvXgjHkbpIOpbNud5eC7s2UAnOD9s5X9th3cYEaL1cWjEPkq/GJaJq k39ELgt/5sidylkC/AK7uxQSm1t67IhcO7beQ0doRU35o2cbcsmMgqKPTcKpvuFxuEH8 WWAO3OOqjUqpVNf2aUn/+mNeA0RunCyP3+4DTsuIrRkiKObyXVTitwMcqegjUZmcGBS8 v+GQ== 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:in-reply-to :references; bh=f2gs/4tpJkayHk43mbyg0XDMtZFthYdkCi8NaZV6NEE=; b=TtPqUybIcRkoN6KE20mZcgNcvexMWS0XUxebxJkbaUOij3dbQgHeZ82UUfWdd+q9TU syv2FPRywjWHG5iLSz7NztssHSKMQl6GypaInfj6u0zVgxPMC/qMwmH0u6ZSUd44BzXm Mtzvn8QDf41pYY6r1Lif7pnVFRdxyViwvU/mILfFmRdwEuJU3FxUFBn4W4+rCa18EGmF DdHim72N7R/+R/kU5CwxCPwe6pbB89uH5eo1yKke1+lzLq74XbopVwihhpwZmUnBBlSa d9NMzzwxKQWHjo+agjixpAeea0Zn5eZw4tHZrBsoE4cjNePUTvqolGNgDxDk1JTGRBFf /9zA== X-Gm-Message-State: AOAM531f3XZhOFhrywi7GwuaVEazcUrQaV9kpajhI02T2Djk1xRwFQtc I+QnJ4eAZD3/JPYbIOFxjic= X-Google-Smtp-Source: ABdhPJzZEAmmywaMZSrIPwVyo/eoMi3x7Mgb0szA11YafTG58rGNh25tz6gWNnU5K0yCJv6sU9zEFQ== X-Received: by 2002:a05:6402:1b01:: with SMTP id by1mr1071059edb.217.1614245115730; Thu, 25 Feb 2021 01:25:15 -0800 (PST) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.25.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Feb 2021 01:25:15 -0800 (PST) From: Bin Meng <bmeng.cn@gmail.com> To: Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>, Priyanka Jain <priyanka.jain@nxp.com> Cc: U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com> Subject: [PATCH v3 25/38] ppc: qemu: Enable VirtIO NET support Date: Thu, 25 Feb 2021 17:22:46 +0800 Message-Id: <1614244979-48216-26-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614244979-48216-1-git-send-email-bmeng.cn@gmail.com> References: <1614244979-48216-1-git-send-email-bmeng.cn@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support
|
expand
|
diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c index 79a6986..9c30c12 100644 --- a/board/freescale/qemu-ppce500/qemu-ppce500.c +++ b/board/freescale/qemu-ppce500/qemu-ppce500.c @@ -24,6 +24,8 @@ #include <fdtdec.h> #include <errno.h> #include <malloc.h> +#include <virtio_types.h> +#include <virtio.h> DECLARE_GLOBAL_DATA_PTR; @@ -130,6 +132,12 @@ int misc_init_r(void) if (ret) return ret; + /* + * Make sure virtio bus is enumerated so that peripherals + * on the virtio bus can be discovered by their drivers. + */ + virtio_init(); + return 0; } diff --git a/configs/qemu-ppce500_defconfig b/configs/qemu-ppce500_defconfig index 918739b..202e97e 100644 --- a/configs/qemu-ppce500_defconfig +++ b/configs/qemu-ppce500_defconfig @@ -33,5 +33,7 @@ CONFIG_DM_PCI=y CONFIG_PCI_MPC85XX=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_NET=y CONFIG_ADDR_MAP=y CONFIG_PANIC_HANG=y