summaryrefslogtreecommitdiff
path: root/board/freescale/ls1046aqds/ls1046aqds.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/ls1046aqds/ls1046aqds.c')
-rw-r--r--board/freescale/ls1046aqds/ls1046aqds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index 6a51dcd649..aac5d9aa84 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -482,7 +482,7 @@ u16 flash_read16(void *addr)
return (((val) >> 8) & 0x00ff) | (((val) << 8) & 0xff00);
}
-#ifdef CONFIG_TFABOOT
+#if defined(CONFIG_TFABOOT) && defined(CONFIG_ENV_IS_IN_SPI_FLASH)
void *env_sf_get_env_addr(void)
{
return (void *)(CONFIG_SYS_FSL_QSPI_BASE + CONFIG_ENV_OFFSET);