From patchwork Mon Dec 21 11:43:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 346406 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp4384545jai; Mon, 21 Dec 2020 03:44:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLYG4CWb2VhdA/c7W3PAamXb//0L0SWU5A0Zt5iCAnPzTJm9RPb4S2jMagonnb8RGQPlFH X-Received: by 2002:a17:907:2108:: with SMTP id qn8mr14755917ejb.127.1608551078135; Mon, 21 Dec 2020 03:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608551078; cv=none; d=google.com; s=arc-20160816; b=GnlSdKed4/2Helt2IEZbHX+R5w1IARpQ20D4N1Z86pnpGlhuycv1T0V04EilL+Vikg wSIx2HUdHL71AQpa2bFIUlBD3I+Vekmbly6GFjRicxLd+oAekfH3iAlKQv1xIjo9+gd/ 5wud5HV1BxpeDn+iY1V72rosk6g0pCSVqdYxvq6STiAzbTNnMZmSoN7qof4Z9FES0FpW 8cK0Ulto21EjE8sljW+YDTdXLvm2JoN2zIDJC/3ps0dub/HUWz8pOZWMAW5IMQtdCej0 VEvBTFNSTKCYhmw7TnU/3KmFnvQuv1Fd2OgQzQ/T5l+TlSNJNH73mG3zpu+Mcfr70bDl BFpQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from; bh=BuCv4v6gdKIMWbceI1saQ4nHss2wDPtND7R31Pu0xkI=; b=z7U6lAda1XR3QQob3DF1+KPrQ7ef1K2Obs0pl+rEGgJcMpz5CT0UfJoZ65LsR29xQ9 5bOHx1AOsl+6L9NvYT3eHMhdZGhWSUTj79c7wzNZ2GT+67kAYmCrxuP4eXU7TLDKgNOD CJewZnNH1R5Y8OqZe9hzeZc1kaQK1SjSR0zLeWRXKaEhkNdvGcF/TcUnB6GJ1o9G0yf2 V6bHEU8vDYhd7S2pywbjj2TUmW4DisLJG0/1/Ne6/fvcnMcLMRoYd3/V9LUyTshTiVoW OsjA36+ynXRSB1/bY38Xb8IWpU/NTR3aSm5y1IPJWgEG9aFI7dAd2o60mcr+zuzygu5b bBfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id bw26si890849ejb.644.2020.12.21.03.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 03:44:38 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 CFE618273A; Mon, 21 Dec 2020 12:43:54 +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 5472882807; Mon, 21 Dec 2020 12:43:50 +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 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 2DE6B8280A for ; Mon, 21 Dec 2020 12:43:46 +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 4EBD911B3; Mon, 21 Dec 2020 03:43:45 -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 AB6823F718; Mon, 21 Dec 2020 03:43:42 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Takahiro Akashi , Heinrich Schuchardt , Alexander Graf , Lukasz Majewski , Tuomas Tynkkynen , Tom Rini , Ilias Apalodimas , Sughosh Ganu Subject: [PATCH v2 06/14] fsp: Move and rename fsp_types.h file Date: Mon, 21 Dec 2020 17:13:06 +0530 Message-Id: <20201221114314.25588-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201221114314.25588-1-sughosh.ganu@linaro.org> References: <20201221114314.25588-1-sughosh.ganu@linaro.org> 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 Reviewed-by: Simon Glass --- Changes since V1: None This patch had been sent to the mailing list separately[1] and has been reviewed by Simon Glass. [1] - https://lists.denx.de/pipermail/u-boot/2020-December/434849.html 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 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__ */