ipq807x: Print the spi address length info
Print spi 3 byte address by default if the
SMEM_SPI_FLASH_ADDR_LEN ID is not passed in smem.
Change-Id: I6b55401adb89a1341130465ae307c30901ce7895
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
diff --git a/arch/arm/cpu/armv7/qca/common/smem.c b/arch/arm/cpu/armv7/qca/common/smem.c
index 156e282..2d13143 100644
--- a/arch/arm/cpu/armv7/qca/common/smem.c
+++ b/arch/arm/cpu/armv7/qca/common/smem.c
@@ -265,8 +265,8 @@
ret = smem_read_alloc_entry(SMEM_SPI_FLASH_ADDR_LEN,
&spi_flash_addr_len, sizeof(uint32_t));
if (ret != 0) {
- printf("smem: read spi flash address len failed\n");
- spi_flash_addr_len = 0;
+ printf("SPI: using 3 byte address mode as default\n");
+ spi_flash_addr_len = 3;
}
return spi_flash_addr_len;