mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-04 08:23:56 +01:00
ipq40xx: Changing the SPI initialization sequence
When SPI nor initialization happens before SPI Nand, SPI nor gets registered as the current nand device in nor+nand flash. This results in ECC fail at uboot. Hence this patch changes the initialization sequence . Change-Id: I968f364b7dfa91571f24230f16f8d51a0971b254 Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
This commit is contained in:
parent
750b3ca7ac
commit
dce27eb584
1 changed files with 2 additions and 3 deletions
|
|
@ -151,13 +151,12 @@ void board_nand_init(void)
|
|||
qca_gpio_init(gpio_node);
|
||||
}
|
||||
|
||||
if (fdtdec_get_uint(gd->fdt_blob, 0, "spi_nor_available", 0))
|
||||
ipq_spi_init(CONFIG_IPQ_SPI_NOR_INFO_IDX);
|
||||
|
||||
#ifdef CONFIG_SPI_NAND
|
||||
if (fdtdec_get_uint(gd->fdt_blob, 0, "spi_nand_available", 0))
|
||||
spi_nand_init();
|
||||
#endif
|
||||
if (fdtdec_get_uint(gd->fdt_blob, 0, "spi_nor_available", 0))
|
||||
ipq_spi_init(CONFIG_IPQ_SPI_NOR_INFO_IDX);
|
||||
}
|
||||
|
||||
static void ipq40xx_edma_common_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue