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:
Diego Sueiro 2018-11-19 17:42:40 +00:00 committed by Kumar Gala
commit 6d070c77b6
4 changed files with 108 additions and 71 deletions

View file

@ -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;
}