i3c: add I3C controller driver for MCUX

This adds a very basic driver to utilize the I3C IP block
on MCUX (e.g. RT685). Note that, for now, this only supports
being the active controller on the bus.

Origin: NXP MCUXpresso SDK
License: BSD 3-Clause
URL: https://github.com/zephyrproject-rtos/hal_nxp
Commit: 2302a1e94f5bc00ce59db4e249b688ad2e959f58
Purpose: Enabling the I3C controller on RT685.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-05-27 12:22:42 -07:00 committed by Anas Nashif
commit 3e8f97009d
6 changed files with 2212 additions and 0 deletions

View file

@ -148,6 +148,12 @@ static int mcux_lpc_syscon_clock_control_get_subsys_rate(
case MCUX_BUS_CLK:
*rate = CLOCK_GetFreq(kCLOCK_BusClk);
break;
#if defined(CONFIG_I3C_MCUX)
case MCUX_I3C_CLK:
*rate = CLOCK_GetI3cClkFreq();
break;
#endif
}
return 0;