Skip to content

Commit c51a5eb

Browse files
Merge branch 'master' into c40_flash_hal_nxp_1
2 parents e38b89b + cf8f163 commit c51a5eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+9269
-10363
lines changed

mcux/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,6 @@ Patch List:
246246
This patch was merged after PR https://github.com/zephyrproject-rtos/hal_nxp/pull/618/commits was created.
247247
Also since the additions about C40 Flash geometry in S32K344_features.h and defining local Flash Aliases in
248248
S32K344_glue_mcux.h, are for S32K344 SoC so they are not present in the mcusdk-core repo.
249+
- mcux-sdk-ng: drivers: xspi: cache64: Fix cache management issue.
250+
- PR: https://github.com/zephyrproject-rtos/hal_nxp/pull/597
251+
- This patch is in hal_nxp but is not in mcux-sdk-ng 25.09.00.

mcux/mcux-sdk-ng/drivers/xspi/fsl_xspi.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,7 +3054,7 @@ void XSPI_Cache64_InvalidateCacheByRange(uint32_t address, size_t size)
30543054
{
30553055
if (size > 0UL)
30563056
{
3057-
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size - 0x01U);
3057+
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size);
30583058
uint32_t pccReg = 0;
30593059
/* Align address to cache line size. */
30603060
uint32_t startAddr = MSDK_REG_SECURE_ADDR(address & ~((uint32_t)FSL_FEATURE_CACHE64_LINESIZE_BYTE - 1U));
@@ -3070,7 +3070,7 @@ void XSPI_Cache64_InvalidateCacheByRange(uint32_t address, size_t size)
30703070
return;
30713071
}
30723072
base = s_xspi_cache64ctrlBases[instance];
3073-
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance] - 0x01U);
3073+
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance]);
30743074
endAddr = endAddr > endLim ? endLim : endAddr;
30753075

30763076
/* Set the invalidate by line command and use the physical address. */
@@ -3120,7 +3120,7 @@ void XSPI_Cache64_CleanCacheByRange(uint32_t address, size_t size)
31203120
{
31213121
if (size > 0UL)
31223122
{
3123-
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size - 0x01U);
3123+
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size);
31243124
uint32_t pccReg = 0;
31253125
/* Align address to cache line size. */
31263126
uint32_t startAddr = MSDK_REG_SECURE_ADDR(address & ~((uint32_t)FSL_FEATURE_CACHE64_LINESIZE_BYTE - 1U));
@@ -3136,7 +3136,7 @@ void XSPI_Cache64_CleanCacheByRange(uint32_t address, size_t size)
31363136
return;
31373137
}
31383138
base = s_xspi_cache64ctrlBases[instance];
3139-
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance] - 0x01U);
3139+
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance]);
31403140
endAddr = endAddr > endLim ? endLim : endAddr;
31413141

31423142
/* Set the push by line command. */
@@ -3188,7 +3188,7 @@ void XSPI_Cache64_CleanInvalidateByRange(uint32_t address, size_t size)
31883188
{
31893189
if (size > 0UL)
31903190
{
3191-
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size - 0x01U);
3191+
uint32_t endAddr = MSDK_REG_SECURE_ADDR(address + size);
31923192
uint32_t pccReg = 0;
31933193
/* Align address to cache line size. */
31943194
uint32_t startAddr = MSDK_REG_SECURE_ADDR(address & ~((uint32_t)FSL_FEATURE_CACHE64_LINESIZE_BYTE - 1U));
@@ -3204,7 +3204,7 @@ void XSPI_Cache64_CleanInvalidateByRange(uint32_t address, size_t size)
32043204
return;
32053205
}
32063206
base = s_xspi_cache64ctrlBases[instance];
3207-
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance] - 0x01U);
3207+
endLim = MSDK_REG_SECURE_ADDR(phyMemBase[instance] + phyMemSize[instance]);
32083208
endAddr = endAddr > endLim ? endLim : endAddr;
32093209

32103210
/* Set the push by line command. */

mcux/mcux-sdk-ng/middleware/usb/device/usb_device_ehci.c

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

mcux/mcux-sdk-ng/middleware/usb/include/usb_misc.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,22 @@ _Pragma("diag_suppress=Pm120")
363363

364364
#elif defined(__GNUC__)
365365

366+
#if defined(__ARM_ARCH_8A__) /* This macro is ARMv8-A specific */
367+
#define CS "//"
368+
#else
369+
#define CS "@"
370+
#endif
371+
366372
#define USB_WEAK_VAR __attribute__((weak))
367373
#define USB_WEAK_FUN __attribute__((weak))
368374
#define USB_RAM_ADDRESS_ALIGNMENT(n) __attribute__((aligned(n)))
369375
#define USB_LINK_DMA_INIT_DATA(sec) __attribute__((section(#sec)))
370-
#define USB_LINK_USB_GLOBAL __attribute__((section("m_usb_global, \"aw\", %nobits @")))
371-
#define USB_LINK_USB_BDT __attribute__((section("m_usb_bdt, \"aw\", %nobits @")))
376+
#define USB_LINK_USB_GLOBAL __attribute__((section("m_usb_global, \"aw\", %nobits " CS)))
377+
#define USB_LINK_USB_BDT __attribute__((section("m_usb_bdt, \"aw\", %nobits " CS)))
372378
#define USB_LINK_USB_GLOBAL_BSS
373379
#define USB_LINK_USB_BDT_BSS
374-
#define USB_LINK_DMA_NONINIT_DATA __attribute__((section("CacheLineData, \"aw\", %nobits @")))
375-
#define USB_LINK_NONCACHE_NONINIT_DATA __attribute__((section("NonCacheable, \"aw\", %nobits @")))
380+
#define USB_LINK_DMA_NONINIT_DATA __attribute__((section("CacheLineData, \"aw\", %nobits " CS)))
381+
#define USB_LINK_NONCACHE_NONINIT_DATA __attribute__((section("NonCacheable, \"aw\", %nobits " CS)))
376382

377383
#elif (defined(__DSC__) && defined(__CW__))
378384
#define MAX(a, b) (((a) > (b)) ? (a) : (b))

mcux/mcux-sdk/devices/MIMX9111/MIMX9111.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53738,6 +53738,9 @@ typedef struct {
5373853738
* @{
5373953739
*/
5374053740

53741+
/** TPM - Size of Registers Arrays */
53742+
#define TPM_CONTROLS_COUNT 4u
53743+
5374153744
/** TPM - Register Layout Typedef */
5374253745
typedef struct {
5374353746
__I uint32_t VERID; /**< Version ID, offset: 0x0 */

0 commit comments

Comments
 (0)