Message ID | 20201231041000.660925-7-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
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; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Pr5aH9xT; 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 4D5vvp02x2z9sSs for <incoming@patchwork.ozlabs.org>; Thu, 31 Dec 2020 15:15:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 32BA482669; Thu, 31 Dec 2020 05:12:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Pr5aH9xT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 53A0F82647; Thu, 31 Dec 2020 05:11:03 +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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 A457E82673 for <u-boot@lists.denx.de>; Thu, 31 Dec 2020 05:10:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x130.google.com with SMTP id v3so16497233ilo.5 for <u-boot@lists.denx.de>; Wed, 30 Dec 2020 20:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hl3FYh3n/G6OGM/1aXoqJCglir/+xRbK8FpYqilK2tg=; b=Pr5aH9xTO53VKG/pN8RhvQy1eAw4rw1kEk1LT9PzPXP1ophHBd8yexfHbDrZ4pdXgZ kKQY8qgotRuFhtSTDB0yqHLGJSR0Lw2Ggh7tWg1X/ssQKG0Q0C5Lpv1lYIsumxO5mJEm ZflQL89FpzANE998IuJlDI0UwRs0qd1F9FVzs= 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:mime-version:content-transfer-encoding; bh=Hl3FYh3n/G6OGM/1aXoqJCglir/+xRbK8FpYqilK2tg=; b=TVnWLz7J4RxOR0vYMrEvbxOsMInT6s4g+1HkEd7bCPWF6yvVzT2Mzp5NvR+Rvwe3kJ 30Ett1YDliMvXZOCKRSaxlgWx2O8B4gBLTBDxkvkbg6z0JVS5+fm3PnQTM7sBoUQewq0 nl8iFzBlGcGv9ixXkx/Yyo4OYZx2RvlKmRRnPgsoztPKRnw7ApU6huDaTa23/y4MYRkC l9GrtnOpfoOKsbQGCteFPi3i4Tz6vKz8iNkDR7tiASWclY8Q5IsvO7/l6dLht7cHiwSl RCpFZNKEANktUhGCkVEduRn/paSdeof+Wdt7OVKT4sRyd128QpWL4WFygzBNsczWIrzt 82eA== X-Gm-Message-State: AOAM531KGKPx59izbptvnAcDsQwTZO2glHkxEg1NSV8GsqD/ttk6nd6C e0tYRBZPriKHdPJQFSuyhYGEycJWG3FrI53n X-Google-Smtp-Source: ABdhPJxpB3x7FG41LmYZ2OMbUFVwLNeCe87MpNI752tBs/DO9/sMeypMPWhe2CRIcXcQMNazPB7WJw== X-Received: by 2002:a05:6e02:148f:: with SMTP id n15mr56011020ilk.17.1609387851279; Wed, 30 Dec 2020 20:10:51 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id 14sm31959026ilz.7.2020.12.30.20.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Dec 2020 20:10:50 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Marek Vasut <marex@denx.de>, Walter Lozano <walter.lozano@collabora.com>, Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH 27/30] x86: Support a fake PCI device with of-platdata-inst Date: Wed, 30 Dec 2020 21:09:57 -0700 Message-Id: <20201231041000.660925-7-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20201231041000.660925-1-sjg@chromium.org> References: <20201231041000.660925-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Implement OF_PLATDATA_INST in driver model (part E)
|
expand
|
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index 04ff32277fd..dd797780ee0 100644 --- a/arch/x86/lib/tpl.c +++ b/arch/x86/lib/tpl.c @@ -144,5 +144,6 @@ U_BOOT_DRIVER(pci_x86) = { .name = "pci_x86", .id = UCLASS_SIMPLE_BUS, .of_match = of_match_ptr(tpl_fake_pci_ids), + DM_PHASE(tpl) }; #endif
With TPL we don't need full PCI support and it adds to code size. Instead, a simple_bus driver is good enough to be able to read and write the PCI config and do a little basic setup. So at present there are two drivers in U-Boot called pci_x86. One is in UCLASS_PCI, used in SPL and U-Boot proper. The other is in UCLASS_SIMPLE_BUS and used only in TPL. Add a tag to tell dtoc about this, so it knows which one to use when generating the devices and uclasses. Signed-off-by: Simon Glass <sjg@chromium.org> --- arch/x86/lib/tpl.c | 1 + 1 file changed, 1 insertion(+)