mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-20 06:01:26 +02:00
board: ls1088a: update ifc node name to be memory-controller
IFC-NOR and QSPI are muxed on SoC. So disable IFC node in dts if QSPI is enabled or disable QSPI node in dts in case QSPI is not enabled. "ifc/nor" will be changed to "memory-controller/nor" in linux. So need to modify "ifc/nor" to "memory-controller/nor" in fdt_path_offset(). Signed-off-by: Jianpeng Bu <jianpeng.bu@nxp.com> [Rebased] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
4118a5b1cf
commit
0a96dfb57e
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
/*
|
/*
|
||||||
* Copyright 2017-2018 NXP
|
* Copyright 2017-2022 NXP
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <clock_legacy.h>
|
#include <clock_legacy.h>
|
||||||
@ -904,10 +904,10 @@ void fsl_fdt_fixup_flash(void *fdt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (disable_ifc) {
|
if (disable_ifc) {
|
||||||
offset = fdt_path_offset(fdt, "/soc/ifc/nor");
|
offset = fdt_path_offset(fdt, "/soc/memory-controller/nor");
|
||||||
|
|
||||||
if (offset < 0)
|
if (offset < 0)
|
||||||
offset = fdt_path_offset(fdt, "/ifc/nor");
|
offset = fdt_path_offset(fdt, "/memory-controller/nor");
|
||||||
} else {
|
} else {
|
||||||
offset = fdt_path_offset(fdt, "/soc/quadspi");
|
offset = fdt_path_offset(fdt, "/soc/quadspi");
|
||||||
|
|
||||||
@ -917,10 +917,10 @@ void fsl_fdt_fixup_flash(void *fdt)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_FSL_QSPI
|
#ifdef CONFIG_FSL_QSPI
|
||||||
offset = fdt_path_offset(fdt, "/soc/ifc/nor");
|
offset = fdt_path_offset(fdt, "/soc/memory-controller/nor");
|
||||||
|
|
||||||
if (offset < 0)
|
if (offset < 0)
|
||||||
offset = fdt_path_offset(fdt, "/ifc/nor");
|
offset = fdt_path_offset(fdt, "/memory-controller/nor");
|
||||||
#else
|
#else
|
||||||
offset = fdt_path_offset(fdt, "/soc/quadspi");
|
offset = fdt_path_offset(fdt, "/soc/quadspi");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user