Skip to content

Commit 7d95848

Browse files
Michael ScottMarti Bolivar
authored andcommitted
[LTD fromlist] arm: soc: nxp k6x: MPU: add Bus Master 3 User Mode access bits
Ethernet on K64F is connected via Logical Bus Master 3. Section 19.3.8 of K64F reference manual establishes bits 20-18 (M3UM) on page 427 as "Bus Master 3 User Mode Access Control". To fix RW via Bus Master 3 when MPU is enabled, we need to add these bits to the MPU region descriptors. This fixes ETH0 on K64F when MPU is enabled. Fix recommended by Maureen Helm <[email protected]> Signed-off-by: Michael Scott <[email protected]> Signed-off-by: Marti Bolivar <[email protected]>
1 parent 20e3c9e commit 7d95848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/arch/arm/cortex_m/mpu/nxp_mpu.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
#define NXP_MPU_REGION_NUMBER 12
1515

1616
/* Read Attribute */
17-
#define MPU_REGION_READ ((1 << 2) | (1 << 8) | (1 << 14))
17+
#define MPU_REGION_READ ((1 << 2) | (1 << 8) | (1 << 14) | \
18+
(1 << 18) | (1 << 19) | (1 << 20))
1819

1920
/* Write Attribute */
20-
#define MPU_REGION_WRITE ((1 << 1) | (1 << 7) | (1 << 13))
21+
#define MPU_REGION_WRITE ((1 << 1) | (1 << 7) | (1 << 13) | \
22+
(1 << 18) | (1 << 19) | (1 << 20))
2123

2224
/* Execute Attribute */
2325
#define MPU_REGION_EXEC ((1 << 0) | (1 << 6) | (1 << 12))

0 commit comments

Comments
 (0)