From patchwork Fri Dec 11 10:06:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 341963 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp379618jai; Fri, 11 Dec 2020 02:07:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqipU5YSentRCGQgD8sbt5RFgEAcPS7IzdcIDfVjDsBwEIlnwXKJUxxzY8fa95S8cssSuU X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr10869692edb.191.1607681226793; Fri, 11 Dec 2020 02:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607681226; cv=none; d=google.com; s=arc-20160816; b=ngKeHEBCqViKdYNVNSEsadvgJxtuTYcCbQq33SFMBMfcCvRIZfAbYdq83oev4IB5m1 pcDP/y5mGtx9roJfcP2Tn3951RLNzDa0rHP/L5yZnoTCSubnHgjTlTDPHNHW0BcmocVu lTdHrK4z/cC6p7EylggLXBGG+XRYcaZvw7wxZLnYt31w0bIyFfADGCdN6Hi7SYqptZxe cv3MQT+SUPbXaMf6xMCDkdLkpVg1qe57lDMcppsrpmJfv3ncRwk1/ft+4VSOiqbi8jjb j4wbr/Baq8WpTJ27YWbU/DgC0mJANvSperjEIN3BOBN+Xg8oklqgH6k3/z8gJWLXtLDo J9Yw== 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=ltD2V8JfgOyBlCbfOfDLkYoKn4gHfjrvSgWJ0xQmdi8=; b=S2hxmio2qCE+VsTm4C2Hm7LzGRE48gOizRG2E9WdISORJaSkqTJwb914lN9AOg8b1/ hYGiN5eLy+hbIg04+xRYqEUaox5GSLxRxMfwwRUGNdE+cnJawt/z8nF8WjTBaLZ/j/4c /qx41ur0Ne9yigMmxgmMSouPB819tDKg2ZCNc/QnFlOk5OtMwJ9bcCQMNIyYhkxlvPC/ PnJk/OHibdIVyvLSQ5Je2G32rRyslOIRg8CfX4wvcTrNPMAx8ye5KTZ9UZvjjshO4ftR M6E7H2v1A1ixBew4vL3A8sOqnBdgNwX12zTuoiXhZeifmZVsSIwx4+EacebAFVMdvMdY 8HVA== 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 k15si4089512ejp.554.2020.12.11.02.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 02:07:06 -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 67F5682741; Fri, 11 Dec 2020 11:07:01 +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 4094382743; Fri, 11 Dec 2020 11:07:00 +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 2EB9182738 for ; Fri, 11 Dec 2020 11:06:57 +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 651C830E; Fri, 11 Dec 2020 02:06:55 -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 B5C3F3F68F; Fri, 11 Dec 2020 02:06:53 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Bin Meng , Simon Glass , Tom Rini , Sughosh Ganu Subject: [PATCH] fsp: Move and rename fsp_types.h file Date: Fri, 11 Dec 2020 15:36:28 +0530 Message-Id: <20201211100628.30042-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 --- Build tested for cougarcanyon2 board which builds the relevant fsp code. arch/x86/include/asm/fsp/fsp_support.h | 3 ++- .../asm/fsp/fsp_types.h => include/signature_types.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename arch/x86/include/asm/fsp/fsp_types.h => include/signature_types.h (94%) -- 2.17.1 Reviewed-by: Bin Meng diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h index 29e511415c..7651a0dac0 100644 --- a/arch/x86/include/asm/fsp/fsp_support.h +++ b/arch/x86/include/asm/fsp/fsp_support.h @@ -11,10 +11,11 @@ #include #include #include -#include #include #include +#include + #define FSP_LOWMEM_BASE 0x100000UL #define FSP_HIGHMEM_BASE 0x100000000ULL #define UPD_TERMINATOR 0x55AA diff --git a/arch/x86/include/asm/fsp/fsp_types.h b/include/signature_types.h similarity index 94% rename from arch/x86/include/asm/fsp/fsp_types.h rename to include/signature_types.h index 3d5b17ecf1..9b8c0543f6 100644 --- a/arch/x86/include/asm/fsp/fsp_types.h +++ b/include/signature_types.h @@ -4,8 +4,8 @@ * Copyright (C) 2014, Bin Meng */ -#ifndef __FSP_TYPES_H__ -#define __FSP_TYPES_H__ +#ifndef __SIGNATURE_TYPES_H__ +#define __SIGNATURE_TYPES_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 /* __SIGNATURE_TYPES_H__ */