armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM
authorKeerthy <j-keerthy@ti.com>
Wed, 12 Feb 2020 08:25:05 +0000 (13:55 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 3 Mar 2020 07:38:14 +0000 (13:08 +0530)
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump
to a firmware directly from SPL.

Signed-off-by: Keerthy <j-keerthy@ti.com>
arch/arm/mach-k3/r5_mpu.c

index ee076ed87701f7e5cd8431a34cc443fdf2ada913..3d2ff6775a3f44b86ee00070122ce836262f42bc 100644 (file)
@@ -26,7 +26,9 @@ struct mpu_region_config k3_mpu_regions[16] = {
        /* U-Boot's code area marking it as WB and Write allocate */
        {CONFIG_SYS_SDRAM_BASE, REGION_2, XN_DIS, PRIV_RW_USR_RW,
         O_I_WB_RD_WR_ALLOC, REGION_2GB},
-       {0x0, 3, 0x0, 0x0, 0x0, 0x0},
+       /* mcu_r5fss0_core0 BTCM area marking it as WB and Write allocate. */
+       {0x41010000, 3, XN_DIS, PRIV_RW_USR_RW, O_I_WB_RD_WR_ALLOC,
+        REGION_8MB},
        {0x0, 4, 0x0, 0x0, 0x0, 0x0},
        {0x0, 5, 0x0, 0x0, 0x0, 0x0},
        {0x0, 6, 0x0, 0x0, 0x0, 0x0},