From: Lukasz Majewski Date: Sun, 9 Jun 2019 20:54:39 +0000 (+0200) Subject: ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig X-Git-Tag: v2019.10-rc1~9^2~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad31f656ae879cf655b911cae2203a1f0721c4c4;p=oweals%2Fu-boot.git ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig After commit 14453fbfadc2 ("Convert CONFIG_SF_DEFAULT_* to Kconfig") and commit abe66b1b5dec ("Convert CONFIG_ENV_SPI_* to Kconfig") ,which moved some SPI related CONFIG_* defines to Kconfig the display5 board has become unbootable as the SPI CS check condition had wrong value. This commit fixes this check and allows proper SPI NOR flash operation in SPL. Signed-off-by: Lukasz Majewski --- diff --git a/board/liebherr/display5/common.c b/board/liebherr/display5/common.c index 7b89d16970..8390d9a0f3 100644 --- a/board/liebherr/display5/common.c +++ b/board/liebherr/display5/common.c @@ -68,7 +68,7 @@ iomux_v3_cfg_t const ecspi2_pads[] = { int board_spi_cs_gpio(unsigned int bus, unsigned int cs) { - if (bus != 1 || cs != (IMX_GPIO_NR(5, 29) << 8)) + if (bus != 1 || cs != 0) return -EINVAL; return IMX_GPIO_NR(5, 29);