From patchwork Wed Feb 28 13:10:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 129983 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1007947lja; Wed, 28 Feb 2018 05:11:46 -0800 (PST) X-Google-Smtp-Source: AH8x2259xqUTxXvc2hF4JXOmA5jnVusUNtoWxJqfXXR/9tJBAa4ZgqgJCeRMjSqd1VEnoFiBpdD/ X-Received: by 10.98.74.67 with SMTP id x64mr17706241pfa.135.1519823506521; Wed, 28 Feb 2018 05:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519823506; cv=none; d=google.com; s=arc-20160816; b=mPlUPZPANuFDPrCnoWfnowuWLnsDxuoskO2uYQ7Ohpjs1Dkc/t0OEJN1JBWgoVeLKq nc5Zi+Hc5CsG6MfTXOQi6NNB4U+iJcl8Nq3NTeh81UlTFfF4tucPiS4WIb/lYelKzGHa eutx93joEBbR73RXfqx6R5IRBEs+887DsjptArEutAyzA3qSnWv5yAKdWjxzWUaFffl3 1Vr4gjF+cAYVAHrQPUWznbAEvxmdjQ4/HPmDC8pfyhfchiNIVSp6pkFn6gw2RxPbIAGi IN4+MDmvniNQdxNzRclTg3TyYYQNGLE6qQEANeTLadpyonzO6Ru4awELTWmCyJqepeTN PQVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=WF0B8aejGrDoYEYx4mIUi9SuOlSVyooSQ2P81m9FB6E=; b=0bQHRtjbBTSe20c2swUembLeMMB3oDTt6NdbjdXRfBmCZttjlpec/NUz7CwrgsgoUp kKN8PAq6fTDfFxefBSAhIOKjMH+gsqXU0VCE1iz40Ua0lVqMN1qF1LhfjwbiALkbBneX YzCnCAfO3UCW7yS09heo8krZ+jzJm25T+nt5GbJlJzx4mcUf3pYb3JX0E7giHhxUCFHc I9bHuRMVcG8NPHDX+jq5DkCP2ajDqJ8DZ4oMekzvuG5lmpdaAT1OS94uZn8kyQR7qH+0 ZJ442vIb5sRtnx/58oy3USrZ+08qKCjNMTA+P3VQy5JmU0waP8Mh+8h7EvFrb920MWKL T7ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si1264584plb.733.2018.02.28.05.11.46; Wed, 28 Feb 2018 05:11:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752488AbeB1NLp (ORCPT + 6 others); Wed, 28 Feb 2018 08:11:45 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:20511 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbeB1NLo (ORCPT ); Wed, 28 Feb 2018 08:11:44 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1SD9Aa1022358; Wed, 28 Feb 2018 14:11:07 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gbwb16w2b-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 28 Feb 2018 14:11:07 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 82A0C34; Wed, 28 Feb 2018 13:11:06 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 60C2A2B33; Wed, 28 Feb 2018 13:11:06 +0000 (GMT) Received: from localhost (10.75.127.48) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 28 Feb 2018 14:11:05 +0100 From: Alexandre Torgue To: Maxime Coquelin , , , , , , CC: , , , Alexandre Torgue Subject: [PATCH v2 3/4] ARM: stm32: Select ARM_MPU for cortex-M7 machines Date: Wed, 28 Feb 2018 14:10:57 +0100 Message-ID: <1519823458-27734-4-git-send-email-alexandre.torgue@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519823458-27734-1-git-send-email-alexandre.torgue@st.com> References: <1519823458-27734-1-git-send-email-alexandre.torgue@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-02-28_07:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org STM32 MCUs embed a Memory Protection Unit. Enabling ARM_MPU flag will allow the Kernel to configure the MPU according to the devicetree. Signed-off-by: Alexandre Torgue -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig index 713c068..c2ad8e9 100644 --- a/arch/arm/mach-stm32/Kconfig +++ b/arch/arm/mach-stm32/Kconfig @@ -29,15 +29,18 @@ config MACH_STM32F469 config MACH_STM32F746 bool "STMicroelectronics STM32F746" select ARM_AMBA + select ARM_MPU default y config MACH_STM32F769 bool "STMicroelectronics STM32F769" select ARM_AMBA + select ARM_MPU default y config MACH_STM32H743 bool "STMicroelectronics STM32H743" + select ARM_MPU default y endif # ARMv7-M