public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 01/22] arm: imxrt: soc: make mpu regions generic
Date: Thu, 13 May 2021 12:18:30 +0200	[thread overview]
Message-ID: <20210513101851.11223-2-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com>

This mpu handling works for every i.MXRT SoC that we have, so let's
generalize imxrt1050_region_config to imxrt_region_config.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 arch/arm/mach-imx/imxrt/soc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-imx/imxrt/soc.c b/arch/arm/mach-imx/imxrt/soc.c
index 8e7d15160d..c533f3554a 100644
--- a/arch/arm/mach-imx/imxrt/soc.c
+++ b/arch/arm/mach-imx/imxrt/soc.c
@@ -14,7 +14,7 @@ int arch_cpu_init(void)
 {
 	int i;
 
-	struct mpu_region_config imxrt1050_region_config[] = {
+	struct mpu_region_config imxrt_region_config[] = {
 		{ 0x00000000, REGION_0, XN_DIS, PRIV_RW_USR_RW,
 		  STRONG_ORDER, REGION_4GB },
 		{ PHYS_SDRAM, REGION_1, XN_DIS, PRIV_RW_USR_RW,
@@ -29,8 +29,8 @@ int arch_cpu_init(void)
 	 * the whole 4GB address space.
 	 */
 	disable_mpu();
-	for (i = 0; i < ARRAY_SIZE(imxrt1050_region_config); i++)
-		mpu_config(&imxrt1050_region_config[i]);
+	for (i = 0; i < ARRAY_SIZE(imxrt_region_config); i++)
+		mpu_config(&imxrt_region_config[i]);
 	enable_mpu();
 
 	return 0;
-- 
2.25.1

  reply	other threads:[~2021-05-13 10:18 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 23:03 [PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb Giulio Benetti
2021-04-12 23:03 ` [PATCH 1/5] video: mxsfb: add enabling of "axi" clock other than "per" clock Giulio Benetti
2021-04-12 23:03 ` [PATCH 2/5] video: mxsfb: add enabling of "disp_axi" clock Giulio Benetti
2021-04-12 23:03 ` [PATCH 3/5] clk: imx: clk-imxrt1050: introduce LCDIF_PIX and rename LCDIF to LCDIF_APB Giulio Benetti
2021-04-12 23:03 ` [PATCH 4/5] ARM: dts: imxrt1050: move lcdif assigned clock to dtsi Giulio Benetti
2021-04-12 23:03 ` [PATCH 5/5] ARM: dts: imxrt1050: set lcdif clocks according to mxsfb driver Giulio Benetti
2021-04-12 23:05 ` [PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb Giulio Benetti
2021-05-01 23:44   ` Giulio Benetti
2021-05-12 22:12     ` Giulio Benetti
2021-05-13  8:14       ` Stefano Babic
2021-05-13  9:09         ` [PATCH v3 00/22] Fix i.MXRT1020/50 Giulio Benetti
2021-05-13 10:18         ` Giulio Benetti
2021-05-13 10:18           ` Giulio Benetti [this message]
2021-06-09 13:43             ` [PATCH v3 01/22] arm: imxrt: soc: make mpu regions generic sbabic
2021-05-13 10:18           ` [PATCH v3 02/22] timer: imx-gpt: Add timer support for i.MX SoCs family Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:18           ` [PATCH v3 03/22] ARM: dts: imxrt1020: add node label to osc Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 04/22] ARM: dts: imxrt1020: add gpt1 node Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:18           ` [PATCH v3 05/22] ARM: dts: imxrt1020-evk: enable gpt1 timer Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 06/22] ARM: dts: imxrt1020-evk: set gpt1 as tick-timer for u-boot Giulio Benetti
2021-06-09 13:42             ` sbabic
2021-05-13 10:18           ` [PATCH v3 07/22] ARM: dts: imxrt1020-evk-u-boot: make gpt1 present for SPL Giulio Benetti
2021-06-09 13:42             ` sbabic
2021-05-13 10:18           ` [PATCH v3 08/22] ARM: dts: imxrt1020-evk: add device_type = "memory" to memory node Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:18           ` [PATCH v3 09/22] configs: imxrt1020-evk: enable imx gpt timer as tick-timer Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 10/22] ARM: dts: imxrt1050: add node label to osc Giulio Benetti
2021-06-09 13:42             ` sbabic
2021-05-13 10:18           ` [PATCH v3 11/22] ARM: dts: imxrt1050: add gpt1 node Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:18           ` [PATCH v3 12/22] ARM: dts: imxrt1050-evk: enable gpt1 timer Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 13/22] ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:18           ` [PATCH v3 14/22] ARM: dts: imxrt1050-evk-u-boot: make gpt1 present for SPL Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 15/22] ARM: dts: imxrt1050-evk: add device_type = "memory" to memory node Giulio Benetti
2021-06-09 13:42             ` sbabic
2021-05-13 10:18           ` [PATCH v3 16/22] configs: imxrt1050-evk: enable imx gpt timer as tick-timer Giulio Benetti
2021-06-09 13:42             ` sbabic
2021-05-13 10:18           ` [PATCH v3 17/22] video: mxsfb: add enabling of "axi" clock other than "per" clock Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:18           ` [PATCH v3 18/22] video: mxsfb: add enabling of "disp_axi" clock Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:19         ` Giulio Benetti
2021-05-13 10:19           ` [PATCH v3 19/22] clk: imx: clk-imxrt1050: introduce LCDIF_PIX and rename LCDIF to LCDIF_APB Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:19           ` [PATCH v3 20/22] ARM: dts: imxrt1050: move lcdif assigned clock to dtsi Giulio Benetti
2021-06-09 13:44             ` sbabic
2021-05-13 10:19           ` [PATCH v3 21/22] ARM: dts: imxrt1050: set lcdif clocks according to mxsfb driver Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:19           ` [PATCH v3 22/22] ARM: dts: imxrt1050-evk: remove u-boot,dm-spl Giulio Benetti
2021-06-09 13:43             ` sbabic
2021-05-13 10:21           ` [PATCH v3 18/22] video: mxsfb: add enabling of "disp_axi" clock Giulio Benetti
2021-05-13 10:26         ` [PATCH 0/5] Fix i.MXRT1050 hang on lcdif init and improve DT for mxsfb Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210513101851.11223-2-giulio.benetti@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox