Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add imx9352 mu1 driver to build #448

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcux/hal_nxp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ elseif(CONFIG_SOC_MIMXRT1189_CM33)
include_driver_ifdef(CONFIG_HAS_MCUX_CACHE cache/xcache driver_cache_xcache)
endif()

if (${MCUX_DEVICE} MATCHES "MIMX9596")
if ((${MCUX_DEVICE} MATCHES "MIMX9596") OR (${MCUX_DEVICE} MATCHES "MIMX9352"))
include_driver_ifdef(CONFIG_IPM_IMX mu1 driver_mu1)
include_driver_ifdef(CONFIG_MBOX_NXP_IMX_MU mu1 driver_mu1)
else()
Expand Down
22 changes: 22 additions & 0 deletions mcux/mcux-sdk/drivers/mu/fsl_mu.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,28 @@ static inline uint32_t MU_GetStatusFlags(MU_Type *base)
));
}

/*!
* brief Return the RX status flags in reverse order.
*
* This function return the RX status flags in reverse order.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update function description

*
* @code
* status_reg = MU_GetRxStatusFlags(base);
* @endcode
*
* @param base MU peripheral base address.
* @return MU RX status
*/

static inline uint32_t MU_GetRxStatusFlags(MU_Type *base)
{
uint32_t flags = 0;

flags = ((MU_GetStatusFlags(base)>>kMU_Rx0FullFlag) | 0x0000000F);

return flags;
}

/*!
* @brief Gets the MU IRQ pending status.
*
Expand Down
27 changes: 27 additions & 0 deletions mcux/mcux-sdk/drivers/mu1/fsl_mu.h
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,33 @@ static inline void MU_ClearGeneralPurposeStatusFlags(MU_Type *base, uint32_t fla
base->GSR = flags;
}

/*!
* brief Return the RX status flags in reverse order.
*
* This function return the RX status flags in reverse order.
*
* @code
* status_reg = MU_GetRxStatusFlags(base);
* @endcode
*
* @param base MU peripheral base address.
* @return MU RX status flags in reverse order
*/

static inline uint32_t MU_GetRxStatusFlags(MU_Type *base)
{
uint32_t flags = 0;

flags = ((MU_GetStatusFlags(base)>>kMU_Rx0FullFlag) | 0x0000000F);

flags = (((flags>>MU_RSR_RF3_SHIFT)<<MU_RSR_RF0_SHIFT) |
((flags>>MU_RSR_RF2_SHIFT)<<MU_RSR_RF1_SHIFT) |
((flags>>MU_RSR_RF1_SHIFT)<<MU_RSR_RF2_SHIFT) |
((flags>>MU_RSR_RF0_SHIFT)<<MU_RSR_RF3_SHIFT));

return flags;
}

/*!
* @brief Triggers general purpose interrupts to the other core.
*
Expand Down