From patchwork Wed Dec 30 13:57:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 355260 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp11350838jai; Wed, 30 Dec 2020 05:58:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXufbVLsSz/0dngOb8M8IYz29Io7QiGV3pOaQPzbikPJkgwDaOte9ekvUzmcLweAa0rI7y X-Received: by 2002:a17:906:9613:: with SMTP id s19mr49713999ejx.351.1609336739686; Wed, 30 Dec 2020 05:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609336739; cv=none; d=google.com; s=arc-20160816; b=oAi+hRSIB7MRlMXUJYVh8/vL29RR41s9akl89mYIjayFwvGrKQmVVzLyd+t85ucotN drEYfn6qM7Ix2bQ2exzI8ybS4/LBpg7irkWBqH/zoXc1Yi2DSkLM1G+FeGybZpY738fL ZTtYp4v90r4iaOIhjhFtPzuGnoZaluKRv7OaBl0B2n3pFZEeLROx0lxHisMLukBUxRkf 9rUuG0rKnpXAiLMjETsPgaOJr8J57WLeMGWXm7Ymmj1UvnNnQesQWQpL9gNiWiaBOLYx jtCvh1dIEwu+O0In7l98n51iXB0p4g2+rssTsN7+u9FA4qLDnrRdGodZC+05ERHcyspO vUmQ== 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=lzw0Bjf5fgrF5p+C9D8j/JcxehxMTplDc0oIXg9XXkM=; b=qFP7Gts2cZ7ZfWIUwQOGitZ9By7WNVafRaJKjMi93vtqnnhuDWw7ApbnhVJBpn1Pgj QHenjTOoMneGC88GTU0rx+FQs+IIUmjnL12sB/S8W3tWDUWEDXKM8dPhZJ9OuEJ1d1KR Oj/EAaOtfD7otmhZI2DuU1pD5q9jUtfQst0QTaSGy+FpS+vD7paKnjyYp9vjZ1qqqcEL YUZ/Oj03ZwYAjl1sVpOS5otvjHr1iggLmS6AAdlXrECd9U4N0f9Szx8KGorjpg2Ek1Yc Fn0MUD8YpAdV6cfZkC1xlpVuqv8B2JQ/iN7epwtb7AkMfrnYGF/3njkl1t3P1yhBVzFM 1I5Q== 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 gb19si20153772ejc.496.2020.12.30.05.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Dec 2020 05:58:59 -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 323D182607; Wed, 30 Dec 2020 14:58:19 +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 22E8782607; Wed, 30 Dec 2020 14:57:55 +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 896EF824DE for ; Wed, 30 Dec 2020 14:57:50 +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 1135D1474; Wed, 30 Dec 2020 05:57:50 -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 6E9DB3F6CF; Wed, 30 Dec 2020 05:57:47 -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 v4 06/14] fsp: Move and rename fsp_types.h file Date: Wed, 30 Dec 2020 19:27:04 +0530 Message-Id: <20201230135712.5289-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201230135712.5289-1-sughosh.ganu@linaro.org> References: <20201230135712.5289-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 Reviewed-by: Bin Meng --- Changes since V3: 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__ */