boards: nxp: Fix usage of DT_CHOSEN() macro to get chosen Zephyr Flash
Used multiple places in the tree. The idea is to determine if this node corresponds to a specific node (e.g: flexspi) so that specific configurations can get done. Without the fix, the macro expansions were defaulting to false. Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
parent
684a28656e
commit
3dc91dda7d
3 changed files with 10 additions and 10 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
void SystemInitHook(void)
|
||||
{
|
||||
#if DT_SAME_NODE(DT_NODELABEL(flexspi), DT_PARENT(DT_CHOSEN(flash)))
|
||||
#if DT_SAME_NODE(DT_NODELABEL(flexspi), DT_PARENT(DT_CHOSEN(zephyr_flash)))
|
||||
/* AT25SF128A SPI Flash on the RT1010-EVK requires special alignment
|
||||
* considerations, so set the READADDROPT bit in the FlexSPI so it
|
||||
* will fetch more data than each AHB burst requires to meet alignment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue