Skip to content

Commit

Permalink
nxp: mimx93: Switch to using CCM Rev3
Browse files Browse the repository at this point in the history
With this commit, the i.MX93 SoC will start using CCM Rev3. To make
this work, the following changes had to be made:
	1) Removed CCM-related nodes from the DTS.
		* no longer needed.
	2) Removed static memory mapping using mmu_regions.c.
		* no longer needed, CCM Rev3 uses device_map().
	3) Implemented the CCM Rev3 basic operations.
	4) Added clock ungating operation to the LPUART driver.
		* this is needed because clocks are gated by
		default. As such, before configuring the LPUART
		module, the clock has to be ungated.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Sep 11, 2023
1 parent 2d5133c commit 1a3d67e
Show file tree
Hide file tree
Showing 9 changed files with 853 additions and 21 deletions.
3 changes: 3 additions & 0 deletions boards/arm64/mimx93_evk/mimx93_evk_a55.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@
/* clocks = <&ccm IMX_CCM_UART4_CLK 0x6c 24>; */
pinctrl-0 = <&uart2_default>;
pinctrl-names = "default";
assigned-clocks = <IMX93_CCM_LPUART2_ROOT>;
assigned-clock-parents = <IMX93_CCM_OSC_24M>;
assigned-clock-rates = <24000000>;
};
3 changes: 3 additions & 0 deletions boards/arm64/mimx93_evk/mimx93_evk_a55_sof.dts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@
/* clocks = <&ccm IMX_CCM_UART4_CLK 0x6c 24>; */
pinctrl-0 = <&uart2_default>;
pinctrl-names = "default";
assigned-clocks = <IMX93_CCM_LPUART2_ROOT>;
assigned-clock-parents = <IMX93_CCM_OSC_24M>;
assigned-clock-rates = <24000000>;
};
4 changes: 4 additions & 0 deletions drivers/clock_control/imx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_SOC_MIMX93_A55 imx93_ccm.c)
Loading

0 comments on commit 1a3d67e

Please sign in to comment.