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: 10247491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55D0B60362 for ; Wed, 28 Feb 2018 13:13:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46F2728D3E for ; Wed, 28 Feb 2018 13:13:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B70F28D41; Wed, 28 Feb 2018 13:13:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 10E2F28D3E for ; Wed, 28 Feb 2018 13:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ie9NK3lq0eT7R7ih4eZGfjbnLA33AA7vMgTKxJpgCT0=; b=Q4sClZ1acsDB0t 1NaRfLB1oKn9HLXS/bagO3TFB9zmpt54LNXjf+TLFHS7aQHfZ9lV17pfJEt3c8wSqteckcyrTFWQI fChoaFvW8rFWy2P+tDIDXJDBTJ3vguTmXiQCjggHeaXHs6hN1RIar1YLIuHe5j2wLQF3NHLeLXE4S RBIoxIfX7yqH2XLw3JKPou1rLCWq1ULX5jftgc8Y87P5haizYixeUVcftO80w2EpBJ8Rl+IOroYCo bPWt+6CEt2kWA/iAJqHwpSc0EOvJcZc1EE3I4XslFmyBtvR2yndl0rl/qcfYalj4drK98bSWTllaD ZNlnJEEvaYeWnkE2oENg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1er1XV-0001ZZ-P4; Wed, 28 Feb 2018 13:12:57 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1er1WB-0000VA-NR for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 13:11:43 +0000 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 , , , , , , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_051136_521429_74F46808 X-CRM114-Status: UNSURE ( 7.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, vladimir.murzin@arm.com, Alexandre Torgue , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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