From patchwork Wed Dec 23 07:03:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 346991 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5970560jai; Tue, 22 Dec 2020 23:04:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5B2UKHJPcON6y2NMks/WuoR6Gg9nWrQxnETiOp5Xx2HSCKjzBYvaDvZ+2uV6OcOFTU/23 X-Received: by 2002:a17:906:7a46:: with SMTP id i6mr22216607ejo.257.1608707091374; Tue, 22 Dec 2020 23:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608707091; cv=none; d=google.com; s=arc-20160816; b=LgVNwGf8KJ+CEdhe1t79wYpcRSE4zc1ArtW+hMER6nOrUqckUDPhETQL32rLC6Ktoh 6ZidmmmQZ3f+9RDYadZ3XTNea06TfGclf+/6o06M8R2qx/XB0kJmaiEkLIDWVQBHZh5+ DhNX5gYdHAKw7BfOgZbtLPWqDEqttewd170zOmsYlu23FKvMEGu42tDImXQj+/cC/gwW Qppcj9xZTFdcmRW7SkV7d46d+q69gGJxw6wc/LxlnkjVTNpKIqOHncD0bb2OAwIOCBza IIyptFguxw0eRxu4VuzBU1POXe3r5HRRQsjLP0k3llvmo35vQ+sgnVyaIbPqixlLWZoM A9Zw== 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=BM1HEJcaIOoy4TTkt0yM3gSbQiXoPbq2AgFIB0dsyrk=; b=rsNzmBfws5zfZ7e+VQJYBgvRBd+OOAbYPkArDH5KauBiwoH/1mbYuCSOpd29WP43wd dmGAHjKnddSgDneQ6bTLpH/5Ow4O1N4zqar6n/85eId/pHQqnhJWpfvWOpMIzQxBq6qF fN/jIlOivZejAfnzUar+QCnWmpRlpcxHQOlFaYOk44FjebgP/lkSCqnOyKcJio9L7Yeb hDv2ozpALE+vd4j9gULXM4/xbrkt6v3e1yFKGzTCqwaveezTboQ2VpVHBKpGMCeCCBnK 5hgsMNiRgI27YbvIcV8w/gJ3cw459B9vPbXJQ1dJuWcBi0Rd5jIzkjOQHCubbhHIklcf nRzg== 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 p10si11520272eji.254.2020.12.22.23.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 23:04:51 -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 8C89F82B10; Wed, 23 Dec 2020 08:04:12 +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 4B7EE82B02; Wed, 23 Dec 2020 08:04:07 +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 5D584827DF for ; Wed, 23 Dec 2020 08:04:03 +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 5988B30E; Tue, 22 Dec 2020 23:04:02 -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 B9DE03F66E; Tue, 22 Dec 2020 23:03:59 -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 v3 06/14] fsp: Move and rename fsp_types.h file Date: Wed, 23 Dec 2020 12:33:22 +0530 Message-Id: <20201223070330.21361-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201223070330.21361-1-sughosh.ganu@linaro.org> References: <20201223070330.21361-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 --- Changes since V2: None This patch had been sent to the mailing list separately[1] and has been reviewed by Simon Glass and Bin Meng and merged on the x86 tree. [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__ */