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 74EDAC46467 for ; Tue, 10 Jan 2023 16:19:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE6828555D; Tue, 10 Jan 2023 17:19:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="A10lN48C"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A52628551C; Tue, 10 Jan 2023 17:19:52 +0100 (CET) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 D386D8545D for ; Tue, 10 Jan 2023 17:19:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-4a263c4ddbaso161241957b3.0 for ; Tue, 10 Jan 2023 08:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0WutEJCjyGIZ87Jte2nIXcWyWJt+ZkjeOuTQ+4teDDw=; b=A10lN48CRHLXTjbTFt67H3AknUTBK79/aHufeTCwZJ65t+qs+D1DiC8elIs/n5AVPu TfhuWPxihDP0XY/QgSO0MpALmPEsn7+awYDon8Qyk/xl/tSCnIGn7JYvLsU41hDbRxKU 9FgA+uJMo2SipHLoTQDMKEV+lq5D5SiYCH+nE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0WutEJCjyGIZ87Jte2nIXcWyWJt+ZkjeOuTQ+4teDDw=; b=BXYxasuxbSVxCOoK9ve4DgRuNUEXkRUqhAurxRh0M6YACVYJ557Ky5/0DuajhmbZe8 Z9LGhvrOwDyEXy5d3AW7s19vxyBRflyOtyCGRo6ztRCU210/jTN++HjY7wViMPnJ5TGd OR2pWjt+7PrvmxJ3g0EDynUGEDgXltZtT9RcufMkebTPzYdFJntlg/d49mDSLICRjLAl L9VeMqMI0IdBqacLkbn++NwHvXMYPFuLR6Pi49S7ny/Pc1VAYXRd4T3bZYYNL79cBVBG FXcl9XReuBxEAbE9VNLNH/VHbAaT2DVZt4dCuZ5YoHISQ8loxW+KZhexmMCaWOhu6Ede wDyw== X-Gm-Message-State: AFqh2kqLJhQYcKBynv0LimQqIz7pjNJYscYcCAR+6pndrIRjspVz/xgw bMG8sV/kRJ3x90rP85kWJ6syFOZgOTI3Kzr44XQ= X-Google-Smtp-Source: AMrXdXvKWMORLMs6xkypGdrYWtKi7Fmlukh1oaq3Q3C0eVDWBisGTu69zmnIL4H+CNskmoAL9kdQSw== X-Received: by 2002:a0d:e24c:0:b0:4d1:c5c:f23c with SMTP id l73-20020a0de24c000000b004d10c5cf23cmr4457552ywe.49.1673367588511; Tue, 10 Jan 2023 08:19:48 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-2c2f-ce0f-8dee-7136.res6.spectrum.com. [2603:6081:7b00:6400:2c2f:ce0f:8dee:7136]) by smtp.gmail.com with ESMTPSA id d12-20020a05620a240c00b006fcc3858044sm7557110qkn.86.2023.01.10.08.19.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 08:19:48 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 02/19] arc: Migrate ARC_MMU_VER to Kconfig Date: Tue, 10 Jan 2023 11:19:29 -0500 Message-Id: <20230110161946.3816866-2-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110161946.3816866-1-trini@konsulko.com> References: <20230110161946.3816866-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.6 at phobos.denx.de X-Virus-Status: Clean Move this value to Kconfig. Signed-off-by: Tom Rini --- arch/arc/Kconfig | 7 +++++++ arch/arc/include/asm/cache.h | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 1a7c525cdb96..6ae66bb163c0 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -102,6 +102,13 @@ config ARC_MMU_V4 endchoice +config ARC_MMU_VER + int + default 0 if ARC_MMU_ABSENT + default 2 if ARC_MMU_V2 + default 3 if ARC_MMU_V3 + default 4 if ARC_MMU_V4 + config CPU_BIG_ENDIAN bool "Enable Big Endian Mode" help diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index a48e1aec6889..74cff716ef60 100644 --- a/arch/arc/include/asm/cache.h +++ b/arch/arc/include/asm/cache.h @@ -16,16 +16,6 @@ */ #define ARCH_DMA_MINALIGN 128 -#if defined(ARC_MMU_ABSENT) -#define CONFIG_ARC_MMU_VER 0 -#elif defined(CONFIG_ARC_MMU_V2) -#define CONFIG_ARC_MMU_VER 2 -#elif defined(CONFIG_ARC_MMU_V3) -#define CONFIG_ARC_MMU_VER 3 -#elif defined(CONFIG_ARC_MMU_V4) -#define CONFIG_ARC_MMU_VER 4 -#endif - #ifndef __ASSEMBLY__ void cache_init(void); -- 2.25.1