From patchwork Mon Dec 14 06:22:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 343482 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2743400jai; Sun, 13 Dec 2020 22:23:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSXSOhK/MZtfoJMWXRZXd6jAsUxgn8ZnHuIpf48w7K0S5UgvhmeRqBvGh7xHdCJGeVEnnu X-Received: by 2002:aa7:d6c9:: with SMTP id x9mr6768963edr.96.1607927009045; Sun, 13 Dec 2020 22:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607927009; cv=none; d=google.com; s=arc-20160816; b=oVMFgyLbblAhq4LIl6mSGogSfyrdJCBDOkzr7Xa4JCwOsgIL8DE9772v0WRkwjjmOV aiHFwEUbDrwW1QOws6tbzqSgIqFgXOSfLJwOCvFWqtbrjyf5Y9mKuz2kQD7XkHFwOoj3 8Rxw5ktgqt/v5fxKM1YgAIByWlQ9NAGktkDZS2heT6wN584yz8qjmUT5P2qDqYl/Cktx r6lWM+HjajXZsADfb4nkFOBxDA1Anqy4Rl8wXBLq/kxxo40mIrn7zHA3NRyVZpC00dRN xgC9medpMlsSdiAf/89qJ/uzP7LuOsja7G/17PGhQvWzlA0Hs6fSxqrVEy3Q+EKUuc+V nJ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=hEsRPn2uvm8eoXWPhn0kNC+SoC2Y32RLn5b7lQ6Eh5A=; b=yZYMZOGgM/tushbdhjgpHx69uZlA1iQym0f8NEgWnXwzSUScq2aoSAt0zJ2XVwnRGr P/8GkRUrxEF8XuBXmI83wpeX40JAk5D7HEFvdaBiQSSX8cKYrUYdvsgzSnSYAl60vHwH s+dwaOcIRsgimW5+lZs/4oxnI1NroyQOTBLSivUc47raSWBCHeFojpzPvtqQzjNF3lFD 2kDkeXQ9mt5Yx/sXPT1FGNxtRIN4PEOE91bVDazo4dVvU/+n4vcaDgs0xEtBq3aza8OU Tz+bETdJJym3Bsu3lUCZO3Y/sxkLrWuBDG0CLuKyLt29vLmqDaCOpO9SY4RflWQ+SEBO 8Cbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 63si10161111edn.339.2020.12.13.22.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 22:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 76F208278A; Mon, 14 Dec 2020 07:23:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 47F2E8279F; Mon, 14 Dec 2020 07:23:25 +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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, SPF_HELO_NONE, SUBJ_OBFU_PUNCT_FEW autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 89BE0825F4 for ; Mon, 14 Dec 2020 07:23:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E518430E; Sun, 13 Dec 2020 22:23:20 -0800 (PST) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 31DC03F66B; Sun, 13 Dec 2020 22:23:18 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Bin Meng , Simon Glass , Tom Rini , Sughosh Ganu Subject: [PATCH v2] fsp: Move and rename fsp_types.h file Date: Mon, 14 Dec 2020 11:52:44 +0530 Message-Id: <20201214062244.4949-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean The fsp_types.h header file contains macros for building signatures of different widths. These signature macros are architecture agnostic, and can be used in all places which use signatures in a data structure. Move and rename the fsp_types.h under the common include header. Signed-off-by: Sughosh Ganu --- Changes since v1: Handled review comments from Simon Glass Build tested for cougarcanyon2 board which builds the relevant fsp code. arch/x86/include/asm/fsp/fsp_support.h | 3 ++- .../x86/include/asm/fsp/fsp_types.h => include/signatures.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename arch/x86/include/asm/fsp/fsp_types.h => include/signatures.h (95%) -- 2.17.1 Reviewed-by: Simon Glass diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h index 29e511415c..3cd3e4fcf5 100644 --- a/arch/x86/include/asm/fsp/fsp_support.h +++ b/arch/x86/include/asm/fsp/fsp_support.h @@ -7,11 +7,12 @@ #ifndef __FSP_SUPPORT_H__ #define __FSP_SUPPORT_H__ +#include + #include #include #include #include -#include #include #include diff --git a/arch/x86/include/asm/fsp/fsp_types.h b/include/signatures.h similarity index 95% rename from arch/x86/include/asm/fsp/fsp_types.h rename to include/signatures.h index 3d5b17ecf1..4042db1e00 100644 --- a/arch/x86/include/asm/fsp/fsp_types.h +++ b/include/signatures.h @@ -4,8 +4,8 @@ * Copyright (C) 2014, Bin Meng */ -#ifndef __FSP_TYPES_H__ -#define __FSP_TYPES_H__ +#ifndef __SIGNATURES_H__ +#define __SIGNATURES_H__ /** * Returns a 16-bit signature built from 2 ASCII characters. @@ -59,4 +59,4 @@ #define SIGNATURE_64(A, B, C, D, E, F, G, H) \ (SIGNATURE_32(A, B, C, D) | ((u64)(SIGNATURE_32(E, F, G, H)) << 32)) -#endif +#endif /* __SIGNATURES_H__ */