drivers/ipm: Add IPM support for i.MX7
This patch ads the support for the IPM drivers on i.MX7 SoC family. Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
This commit is contained in:
parent
ccb57d766b
commit
6d070c77b6
4 changed files with 108 additions and 71 deletions
|
@ -210,6 +210,17 @@ static void nxp_mcimx7_pwm_config(void)
|
|||
}
|
||||
#endif /* CONFIG_PWM_IMX */
|
||||
|
||||
#ifdef CONFIG_IPM_IMX
|
||||
static void nxp_mcimx7_mu_config(void)
|
||||
{
|
||||
/* Set access to MU B for M4 core */
|
||||
RDC_SetPdapAccess(RDC, rdcPdapMuB, MU_B_RDC, false, false);
|
||||
|
||||
/* Enable clock gate for MU*/
|
||||
CCM_ControlGate(CCM, ccmCcgrGateMu, ccmClockNeededRun);
|
||||
}
|
||||
#endif /* CONFIG_IPM_IMX */
|
||||
|
||||
static int nxp_mcimx7_init(struct device *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
|
@ -236,6 +247,10 @@ static int nxp_mcimx7_init(struct device *arg)
|
|||
nxp_mcimx7_pwm_config();
|
||||
#endif /* CONFIG_PWM_IMX */
|
||||
|
||||
#ifdef CONFIG_IPM_IMX
|
||||
nxp_mcimx7_mu_config();
|
||||
#endif /* CONFIG_IPM_IMX */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue