mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
board/lx2160aqds: Update the DSPI status fixup
The dts node of the DSPI controller in kernel is spi instead of dspi, it is not correct if use "/soc/dspi@" to fix up the status of the dts in kernel, so, modify it to "/soc/spi@". The DSPI2 and I2C5 are muxed, and the status of DSPI2 node in kernel dts default value is okay, So set the status of DSPI2 node in kernel dts to disabled if it is muxed as I2C5. Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
b91f739bb0
commit
a393629c7c
1 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright 2018-2019 NXP
|
||||
* Copyright 2018-2020 NXP
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
@ -191,9 +191,9 @@ void esdhc_dspi_status_fixup(void *blob)
|
|||
{
|
||||
const char esdhc0_path[] = "/soc/esdhc@2140000";
|
||||
const char esdhc1_path[] = "/soc/esdhc@2150000";
|
||||
const char dspi0_path[] = "/soc/dspi@2100000";
|
||||
const char dspi1_path[] = "/soc/dspi@2110000";
|
||||
const char dspi2_path[] = "/soc/dspi@2120000";
|
||||
const char dspi0_path[] = "/soc/spi@2100000";
|
||||
const char dspi1_path[] = "/soc/spi@2110000";
|
||||
const char dspi2_path[] = "/soc/spi@2120000";
|
||||
|
||||
struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
|
||||
u32 sdhc1_base_pmux;
|
||||
|
@ -243,10 +243,12 @@ void esdhc_dspi_status_fixup(void *blob)
|
|||
& FSL_CHASSIS3_IIC5_PMUX_MASK;
|
||||
iic5_pmux >>= FSL_CHASSIS3_IIC5_PMUX_SHIFT;
|
||||
|
||||
if (iic5_pmux == IIC5_PMUX_SPI3) {
|
||||
if (iic5_pmux == IIC5_PMUX_SPI3)
|
||||
do_fixup_by_path(blob, dspi2_path, "status", "okay",
|
||||
sizeof("okay"), 1);
|
||||
}
|
||||
else
|
||||
do_fixup_by_path(blob, dspi2_path, "status", "disabled",
|
||||
sizeof("disabled"), 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue