From ad31f656ae879cf655b911cae2203a1f0721c4c4 Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Sun, 9 Jun 2019 22:54:39 +0200 Subject: [PATCH] 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 --- board/liebherr/display5/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/liebherr/display5/common.c b/board/liebherr/display5/common.c index 7b89d16..8390d9a 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); -- 2.7.4