Skip to content

Commit

Permalink
drivers: can: mcan: use __nocache_noinit for MRAM data variables
Browse files Browse the repository at this point in the history
Use __nocache_noinit for the Bosch M_CAN MRAM data variables on SoCs
without dedicated MRAM.

Fixes: #64691

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and carlescufi committed Nov 16, 2023
1 parent afe1ca6 commit 58e1963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/drivers/can/can_mcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ enum can_mcan_psr_lec {
*/
#define CAN_MCAN_DT_MRAM_DEFINE(node_id, _name) \
BUILD_ASSERT(CAN_MCAN_DT_MRAM_OFFSET(node_id) == 0, "offset must be 0"); \
static char __noinit __nocache __aligned(4) _name[CAN_MCAN_DT_MRAM_ELEMENTS_SIZE(node_id)];
static char __nocache_noinit __aligned(4) _name[CAN_MCAN_DT_MRAM_ELEMENTS_SIZE(node_id)];

/**
* @brief Assert that the Message RAM configuration meets the Bosch M_CAN IP core restrictions
Expand Down

0 comments on commit 58e1963

Please sign in to comment.