From patchwork Wed Mar 8 20:26:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 1754322 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=qvMaIu/3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PX3lT2HQBz1yWx for ; Thu, 9 Mar 2023 07:27:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8691B85EC9; Wed, 8 Mar 2023 21:27:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="qvMaIu/3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1DCA585E8F; Wed, 8 Mar 2023 21:27:15 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 D857285E97 for ; Wed, 8 Mar 2023 21:27:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ralph.siemsen@linaro.org Received: by mail-qt1-x82f.google.com with SMTP id y10so19542091qtj.2 for ; Wed, 08 Mar 2023 12:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678307223; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A1zH4cs0nkBy8ERzefeYpPCyNK9mLhWAOMjYYqoPb54=; b=qvMaIu/3hPk5tOXKdizHqfIkmTynNNbozYCgq5Qjtz2J/LohypworaJ4bkOswQ5Nx1 Mbfqe97alEKq0lokTlKCsPPkKl8sRpS1Yt4aqyLlNgigny8bEht7+XN3DqptQIVwl4Zp 31HcXPz9UPAsj51gAQvFUkJHFHa+RknUOoR+wMIvxb1cKDpFWH3JvWZam/eRtLv2usYw lIVWE+ylXBJKPXbfPMQnIJUTbvxOvVxuvYDGzOvUOZXjVz0Y0j+2KKU16IisPXEC9ulF z54R3lwAmU2V2zdpS++XRb0tb6Tc02uQSRCRyrKQhsCXe3e1UAgbzVpgyC4JSr6kz/Om BDxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678307223; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A1zH4cs0nkBy8ERzefeYpPCyNK9mLhWAOMjYYqoPb54=; b=hTRBFy6514jVbQiqXeK25sDIagPUBx/mcns8CRe6OXixx0R9cYMaknoEvcefa58Afx rgs/DQfxiMBDwJ9ylcXkKfBnlZii+Es+6ukMxkhXISRscO/foOV7zx+wDAj1/MMITcQI lyHEuZZqHgvpuQhXzf9Ko9rB2Qmy/gWKZnguH2UlZPgjasE5PHNx+W9Uj9Hg0mIHA983 zwG42koj8I/My3jKKWUaxNdfKYgqcoI57GEFa16IqEEVGdYDkRoEZKWVSEoJk0W8bDXn MTRaIO5+kvzvh69U5jCdjSir+UqqJxQt2ASLnaQMbRtweAr737wIBhd0xQj5lpCQnt/r hZmA== X-Gm-Message-State: AO0yUKXbMrFogaSVYRQjJgdoiZJu2o9htc6sYMNCZpLJ6giXn4ZhuH2Q 9oexWp/LMe5hXLaWbEgkhZCdzcXotnMP18mKAGYZVg== X-Google-Smtp-Source: AK7set/tMmD9eAB22hdQ9GDScjHWt0/srTsQJcSRvbqJQz8gIA4dfmwH1W00uXzsFksDFS1ND1OhJw== X-Received: by 2002:ac8:5812:0:b0:3bf:d4dc:7058 with SMTP id g18-20020ac85812000000b003bfd4dc7058mr34189649qtg.11.1678307223655; Wed, 08 Mar 2023 12:27:03 -0800 (PST) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id m2-20020ac84442000000b003b86b088755sm12144203qtn.15.2023.03.08.12.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 12:27:03 -0800 (PST) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Marek Vasut , Ralph Siemsen Subject: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN Date: Wed, 8 Mar 2023 15:26:44 -0500 Message-Id: <20230308202653.1926303-2-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308202653.1926303-1-ralph.siemsen@linaro.org> References: <20230308202653.1926303-1-ralph.siemsen@linaro.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S") added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For platforms not using SPL boot, add the corresponding non-SPL config, so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected. Signed-off-by: Ralph Siemsen Reviewed-by: Marek Vasut --- This will be used by the following commit that adds ARCH_RZN1. (no changes since v1) arch/arm/cpu/armv7/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig index f1e4e26b8f..e33e53636a 100644 --- a/arch/arm/cpu/armv7/Kconfig +++ b/arch/arm/cpu/armv7/Kconfig @@ -107,6 +107,11 @@ config ARMV7_LPAE Say Y here to use the long descriptor page table format. This is required if U-Boot runs in HYP mode. +config ARMV7_SET_CORTEX_SMPEN + bool + help + Enable the ARM Cortex ACTLR.SMP enable bit in U-boot. + config SPL_ARMV7_SET_CORTEX_SMPEN bool help