mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-04 00:14:48 +01:00
qca: arm: fix compiler error when SPI-NOR is disabled
Change-Id: Iec996fc670fd28d467b81afc0ebfcba07fd82b60 Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This commit is contained in:
parent
32d259be7a
commit
cebcfa59e1
1 changed files with 7 additions and 1 deletions
|
|
@ -97,11 +97,13 @@ struct crashdump_flash_nand_cxt {
|
|||
unsigned char temp_data[MAX_NAND_PAGE_SIZE];
|
||||
};
|
||||
|
||||
#ifdef CONFIG_QCA_SPI
|
||||
/* Context for SPI NOR Flash memory */
|
||||
struct crashdump_flash_spi_cxt {
|
||||
loff_t start_crashdump_offset;
|
||||
loff_t cur_crashdump_offset;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QCA_MMC
|
||||
/* Context for EMMC Flash memory */
|
||||
|
|
@ -115,9 +117,11 @@ struct crashdump_flash_emmc_cxt {
|
|||
#endif
|
||||
|
||||
|
||||
static struct spi_flash *crashdump_spi_flash;
|
||||
static struct crashdump_flash_nand_cxt crashdump_nand_cnxt;
|
||||
#ifdef CONFIG_QCA_SPI
|
||||
static struct spi_flash *crashdump_spi_flash;
|
||||
static struct crashdump_flash_spi_cxt crashdump_flash_spi_cnxt;
|
||||
#endif
|
||||
#ifdef CONFIG_QCA_MMC
|
||||
static struct mmc *mmc;
|
||||
static struct crashdump_flash_emmc_cxt crashdump_emmc_cnxt;
|
||||
|
|
@ -797,6 +801,7 @@ int crashdump_nand_flash_write_data(void *cnxt,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_QCA_SPI
|
||||
/* Init function for SPI NOR flash writing. It erases the required sectors */
|
||||
int init_crashdump_spi_flash_write(void *cnxt,
|
||||
loff_t offset,
|
||||
|
|
@ -846,6 +851,7 @@ int deinit_crashdump_spi_flash_write(void *cnxt)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QCA_MMC
|
||||
/* Init function for EMMC. It initialzes the EMMC */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue