drivers: memc: memc_nxp_flexram.h: Move to the public includes directory

Moved to: include/zephyr/drivers/misc/flexram/memc_nxp_flexram.h

This change makes it so that the .h file does not need to be pulled in
using the CMakeLists.txt file, and can be included like other public
includes.

Removes drivers/memc/memc_nxp_flexram.h

Add memc_nxp_flexram.h to include/zephyr/drivers/misc/flexram

Modify drivers/memc/memc_nxp_flexram.c to use the new include path.

Modifies the mimxrt1170 magic_addr sample to include the driver using
the new include path.

Modify the soc file: soc/nxp/imxrt/imxrt11xx/soc.c to use the new path.

Add relevant information to migration-guide-4.2.rst.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
Co-authored-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Jacob Wienecke 2025-02-18 10:05:37 -06:00 committed by Benjamin Cabé
commit db63e563a9
7 changed files with 13 additions and 6 deletions

View file

@ -228,6 +228,15 @@ Stepper
* Refactored the ``stepper_enable(const struct device * dev, bool enable)`` function to
:c:func:`stepper_enable` & :c:func:`stepper_disable`.
Misc
====
* Moved file ``drivers/memc/memc_nxp_flexram.h`` to
:zephyr_file:`include/zephyr/drivers/misc/flexram/nxp_flexram.h` so that the
file can be included using ``<zephyr/drivers/misc/flexram/nxp_flexram.h>``.
Modification to CMakeList.txt to use include this driver is no longer
required.
Bluetooth
*********

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include "memc_nxp_flexram.h"
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
#include <zephyr/dt-bindings/memory-controller/nxp,flexram.h>
#include <zephyr/devicetree.h>
#include <zephyr/init.h>

View file

@ -5,6 +5,4 @@ cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(magic_addr)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/memc)
target_sources(app PRIVATE src/main.c)

View file

@ -6,7 +6,7 @@
#include <stdio.h>
#include <zephyr/linker/section_tags.h>
#include "memc_nxp_flexram.h"
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
#include <zephyr/kernel.h>
#include <zephyr/console/console.h>
#include <zephyr/cache.h>

View file

@ -22,7 +22,7 @@
#include "usb.h"
#endif
#include "memc_nxp_flexram.h"
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
#include <cmsis_core.h>

View file

@ -37,7 +37,7 @@ LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
#include "usb_phy.h"
#include "usb.h"
#endif
#include "memc_nxp_flexram.h"
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
#include <cmsis_core.h>