From patchwork Sat Dec 7 04:42:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1205382 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LlZC27+b"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 47VHFH6F2Lz9sPf for ; Sat, 7 Dec 2019 15:54:59 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B95C81761; Sat, 7 Dec 2019 05:49:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LlZC27+b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 830A981758; Sat, 7 Dec 2019 05:49:18 +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=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (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 EB069816C8 for ; Sat, 7 Dec 2019 05:49:15 +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-io1-xd41.google.com with SMTP id u7so9502151iop.5 for ; Fri, 06 Dec 2019 20:49:15 -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=+ftGwhoesfjHCHyBnk3YBDZtsDcG/P8JiWhJ17UnaeM=; b=LlZC27+bLn4hlgyO772j//taUMr99Yeg+xwvGH34Jd+HltVH9DaLeuBeTn+PJAhZ5f CwlzMH+n6pgCEF9QVZGc5JUupAkMoXZR/ZwwqPofzNO6FTbVGuYk/XhORrBhC7HX0wQK gdDapPISKx11s9iEaMv6f/pluIIZTBeFQI7kw= 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=+ftGwhoesfjHCHyBnk3YBDZtsDcG/P8JiWhJ17UnaeM=; b=GoovBzDb64/rRTXTaOXRyFCgYRjwLHc1/9rKSAvi9y8M7aojqQp1kq7GgYn/itWrzu +od57SUo3gQVJIkc01mvqzXlAdPZNgi3F8c5gB5sBHk02p2Wn9AX5cUG//x0x8y9Z9Pt bhmYiuS3tmZFhDTcibt/nTiDiq2F/lJcDO2hUXugr/aEGXyC3kDbc52JbmDX0lhgfHYA +zlSskxiNO3uLjj+w8jXGsRIC/+cnNMKO0+GxPs/TBT7rJkqgJWD+JDJmB1bH8UFG3lA t6eYHfiauHGhHOs7yWERSRaCCACvOGGQhNpWuCyqY3qQKj6hXoEvPGTM87KkXsyOnpYt hrMQ== X-Gm-Message-State: APjAAAVW7nYyfZn4V71E3FutuAZmL0uaDtRWJoQKAbsv5HXHoSYV+ynF DnedJink1PDAc5rJh21wShePbywS09k= X-Google-Smtp-Source: APXvYqx77P7btVsbBKyGeCPwPVLBPlrfKsAQffnQsbAkxnfRbn4sS7fighMSM/H96t4t9WuhvEI62A== X-Received: by 2002:a6b:7119:: with SMTP id q25mr12749326iog.148.1575694154776; Fri, 06 Dec 2019 20:49:14 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id o7sm4549410ilo.58.2019.12.06.20.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:49:14 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH v6 048/102] x86: fsp: Allow remembering the location of FSP-S Date: Fri, 6 Dec 2019 21:42:21 -0700 Message-Id: <20191206213936.v6.48.I0ef3f160bae110a483ea5b0c2298a6e563b83818@changeid> X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog In-Reply-To: <20191207044315.51770-1-sjg@chromium.org> References: <20191207044315.51770-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean FSP-S is used by the notify call after it has been used for silicon init. To avoid having to load it again, add a field to store the location. Reviewed-by: Bin Meng Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/x86/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 190b604e0f..f4c1839104 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -120,6 +120,9 @@ struct arch_global_data { int prev_sleep_state; /* Previous sleep state ACPI_S0/1../5 */ ulong backup_mem; /* Backup memory address for S3 */ #endif +#ifdef CONFIG_FSP_VERSION2 + struct fsp_header *fsp_s_hdr; /* Pointer to FSP-S header */ +#endif }; #endif