Skip to content

Commit db63e56

Browse files
jacob-wienecke-nxpdecsny
authored andcommitted
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>
1 parent f412cc6 commit db63e56

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

doc/releases/migration-guide-4.2.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,15 @@ Stepper
228228
* Refactored the ``stepper_enable(const struct device * dev, bool enable)`` function to
229229
:c:func:`stepper_enable` & :c:func:`stepper_disable`.
230230

231+
Misc
232+
====
233+
234+
* Moved file ``drivers/memc/memc_nxp_flexram.h`` to
235+
:zephyr_file:`include/zephyr/drivers/misc/flexram/nxp_flexram.h` so that the
236+
file can be included using ``<zephyr/drivers/misc/flexram/nxp_flexram.h>``.
237+
Modification to CMakeList.txt to use include this driver is no longer
238+
required.
239+
231240
Bluetooth
232241
*********
233242

drivers/memc/memc_nxp_flexram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include "memc_nxp_flexram.h"
7+
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
88
#include <zephyr/dt-bindings/memory-controller/nxp,flexram.h>
99
#include <zephyr/devicetree.h>
1010
#include <zephyr/init.h>

samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ cmake_minimum_required(VERSION 3.20.0)
55
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
66
project(magic_addr)
77

8-
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/memc)
9-
108
target_sources(app PRIVATE src/main.c)

samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include <stdio.h>
88
#include <zephyr/linker/section_tags.h>
9-
#include "memc_nxp_flexram.h"
9+
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
1010
#include <zephyr/kernel.h>
1111
#include <zephyr/console/console.h>
1212
#include <zephyr/cache.h>

soc/nxp/imxrt/imxrt10xx/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "usb.h"
2323
#endif
2424

25-
#include "memc_nxp_flexram.h"
25+
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
2626

2727
#include <cmsis_core.h>
2828

soc/nxp/imxrt/imxrt11xx/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
3737
#include "usb_phy.h"
3838
#include "usb.h"
3939
#endif
40-
#include "memc_nxp_flexram.h"
40+
#include <zephyr/drivers/misc/flexram/nxp_flexram.h>
4141

4242
#include <cmsis_core.h>
4343

0 commit comments

Comments
 (0)