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 66FACC433F5 for ; Fri, 11 Mar 2022 14:12:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6555583B17; Fri, 11 Mar 2022 15:12:42 +0100 (CET) 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 49A3883B09; Fri, 11 Mar 2022 15:12:28 +0100 (CET) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 3F485837F6 for ; Fri, 11 Mar 2022 15:12:16 +0100 (CET) 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-f177.google.com with SMTP id v14so3011397qta.2 for ; Fri, 11 Mar 2022 06:12:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AcPnszilPRbjRXZooSTG+CzOw53rBeIucm8hgCI5P4I=; b=Oq7OctXMK4Rp3JITLo6Ub1HNEjG/8evKQvB0v9xrpiurgySaRB71tvElXePdIHqxrB ZJQ3xgVcWAEO4FZFSgD8t5zRDDrZOHKqkQA3WANkgzK/TKWcxmxYW+4w28x8cN6bv1UC xFCWzk7X+DGU2czdwGsQinNX9qgUyf2UyBEzUNCYzU8BAkq2bHpXI/Jqz4xCKS6VRC5N PNnu6408+Mkws6BixHb/o3Y0qgZD6wgLBS+Nooh9fEMSY3luMYQ9uqNkUnhpAiTKAkxk Slx2zpmk/Y9RlG15qmDPERP+It/1s/r8DZt4AgXU3tfm1sS6SJd6Tu1cBPRSATEtgTby nHrA== X-Gm-Message-State: AOAM533falnRTLGI8UeCV/k6+b6qK4IbiB/EE/QFdfQ2uG1zrnqp44Tv o23c0fjCNMgUs/cv8svV07cy1PyK5A== X-Google-Smtp-Source: ABdhPJwjZglY+a4hotqGYmG3RPEaQENd+0MG1MK/AjkBF4EbnRkxCFJiq/F7rkxAlbjeuqcHsCU0Xw== X-Received: by 2002:a05:622a:1820:b0:2dc:93dd:19f8 with SMTP id t32-20020a05622a182000b002dc93dd19f8mr8367898qtc.301.1647007934883; Fri, 11 Mar 2022 06:12:14 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id z6-20020ae9c106000000b0067d3b9ef387sm3488297qki.28.2022.03.11.06.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 06:12:14 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Alex Nemirovsky , Marek Vasut , Michal Simek , Nobuhiro Iwamatsu , Simon Goldschmidt , Tien Fong Chee Subject: [v2 03/15] Convert CONFIG_ARMV8_SWITCH_TO_EL1 to Kconfig Date: Fri, 11 Mar 2022 09:11:58 -0500 Message-Id: <20220311141210.2810346-3-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220311141210.2810346-1-trini@konsulko.com> References: <20220311141210.2810346-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 This converts the following to Kconfig: CONFIG_ARMV8_SWITCH_TO_EL1 Cc: Alex Nemirovsky Cc: Marek Vasut Cc: Michal Simek Cc: Nobuhiro Iwamatsu Cc: Simon Goldschmidt Cc: Tien Fong Chee Signed-off-by: Tom Rini --- Changes in v2: - Don't hide the option, per Michal's request. --- arch/arm/cpu/armv8/Kconfig | 6 ++++++ include/configs/xilinx_versal.h | 2 -- include/configs/xilinx_zynqmp.h | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig index 9967376ecab9..4d4469c88439 100644 --- a/arch/arm/cpu/armv8/Kconfig +++ b/arch/arm/cpu/armv8/Kconfig @@ -31,6 +31,12 @@ config ARMV8_SET_SMPEN it can be safely enabled when EL2/EL3 initialized SMPEN bit or when CPU implementation doesn't include that register. +config ARMV8_SWITCH_TO_EL1 + bool "Enable switching to running in EL1" + help + In some circumstances we need to switch to running in EL1. + Enable this option to have U-Boot switch to EL1. + config ARMV8_SPIN_TABLE bool "Support spin-table enable method" depends on ARMV8_MULTIENTRY && OF_LIBFDT diff --git a/include/configs/xilinx_versal.h b/include/configs/xilinx_versal.h index 20f5a7271a20..a8009f236937 100644 --- a/include/configs/xilinx_versal.h +++ b/include/configs/xilinx_versal.h @@ -10,8 +10,6 @@ #ifndef __XILINX_VERSAL_H #define __XILINX_VERSAL_H -/* #define CONFIG_ARMV8_SWITCH_TO_EL1 */ - /* Generic Interrupt Controller Definitions */ #define GICD_BASE 0xF9000000 #define GICR_BASE 0xF9080000 diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 1f0da1a4b3e4..27ec3e06270e 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -10,8 +10,6 @@ #ifndef __XILINX_ZYNQMP_H #define __XILINX_ZYNQMP_H -/* #define CONFIG_ARMV8_SWITCH_TO_EL1 */ - /* Generic Interrupt Controller Definitions */ #define GICD_BASE 0xF9010000 #define GICC_BASE 0xF9020000 -- 2.25.1