Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0DBEBC433F5 for ; Thu, 26 May 2022 13:43:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0CFDD84357; Thu, 26 May 2022 15:42:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com 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 0AD0884342; Thu, 26 May 2022 15:42:29 +0200 (CEST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B800A842BC for ; Thu, 26 May 2022 15:42:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f173.google.com with SMTP id bb31so1510661qtb.8 for ; Thu, 26 May 2022 06:42:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IP8Zx1bMgOpkgMoHMscW1v7yJ4dS4GKvc0RhzUHtLug=; b=cHqqw/QFAoyJ4gLjxKCzSOP3hZIPRl8fnKhcCmCytEuWTw14PzzJdbNMAHZ7TKtouH 3xOEUtcZi19LYVBHBcNClCaodEhsBjh8AsxBWF9x+D2TSUZGoIEoUZumstUOPRV0YYtI gi80xvrlO1tq+J3qFgRUP0M4kmxbWBy+LzuVX3YZtbApQG307vOVXNNhqztm0IB6ogp6 0bpZtIsXih9eAQpiNuf/Yz7kb3od7VZnJ40+AYnvFKtf+dN98F5R+ZPbZu9NWzWvSAKC PgBtNxsKi+Ceqn7izQakQqHpub9ei+YeW3PgR41NFXlOplu09o6UYN0mJXkxtikucHTh jWrQ== X-Gm-Message-State: AOAM530Uk/8arSD/Ocqb9Z/Q/oepSj9qdEbQkC3te3YwGddfmBLuXylk d410UahF2sq21ptu6Oe6pv4CaYYSgQ== X-Google-Smtp-Source: ABdhPJzBq4dyr/LjMcPzzNqi9NpagQMJaa5+UL4l0WzUyZBKxALhlz/V/ZnrcvuSt/gMDP88fdtsEA== X-Received: by 2002:a05:622a:87:b0:2fb:c893:2a35 with SMTP id o7-20020a05622a008700b002fbc8932a35mr4274787qtw.94.1653572542165; Thu, 26 May 2022 06:42:22 -0700 (PDT) Received: from localhost.localdomain (2603-6081-7b00-25fd-0000-0000-0000-1003.res6.spectrum.com. [2603:6081:7b00:25fd::1003]) by smtp.gmail.com with ESMTPSA id j22-20020a05620a0a5600b006a10aa7908dsm1124264qka.38.2022.05.26.06.42.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 06:42:21 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 10/11] Introduce include/system-constants.h Date: Thu, 26 May 2022 09:42:06 -0400 Message-Id: <20220526134207.3147526-10-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220526134207.3147526-1-trini@konsulko.com> References: <20220526134207.3147526-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.5 at phobos.denx.de X-Virus-Status: Clean We have a number of CONFIG symbols today that are of the form: SYM1 = CONST1 + CONST2 or other static math operations (shifts, etc). The issue is that by moving these to Kconfig we no longer have the ability to calculate these values, so they become less flexible and useful. It's also the case that sometimes a platform will just define SYM1 directly or perform a slightly different set of calculations. We introduce this header now to have a place to start to handle these cases. Signed-off-by: Tom Rini --- include/system-constants.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/system-constants.h diff --git a/include/system-constants.h b/include/system-constants.h new file mode 100644 index 000000000000..4fd24f460993 --- /dev/null +++ b/include/system-constants.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __SYSTEM_CONSTANTS_H__ +#define __SYSTEM_CONSTANTS_H__ + +#endif -- 2.25.1