Commit db63e563 authored by Jacob Wienecke's avatar Jacob Wienecke Committed by Benjamin Cabé
Browse files

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: default avatarJacob Wienecke <jacob.wienecke@nxp.com>
Co-authored-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent f412cc64
Loading
Loading
Loading
Loading
+9 −0
Changes for doc/releases/migration-guide-4.2.rst: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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
*********

+1 −1
Changes for drivers/memc/memc_nxp_flexram.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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>
+0 −2
Changes for samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/CMakeLists.txt: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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)
+1 −1
Changes for samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/src/main.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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>
Loading