summaryrefslogtreecommitdiff
path: root/board/k+p
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-03 23:48:58 +0300
committerTom Rini <trini@konsulko.com>2021-07-07 17:17:54 +0300
commitcb80ff20f2c8392f19248418f9a19a0474661860 (patch)
treea4a4ca65c3d6bb8331c0ba9746f300d9709abf7c /board/k+p
parentc48b781581f6c3b24cb40241e90296b0e7f7a30f (diff)
downloadu-boot-cb80ff20f2c8392f19248418f9a19a0474661860.tar.xz
bootstage: Eliminate when not enabled
When we do not have bootstage enabled, rather than include an empty dummy function, we just don't reference it. This saves us space in some tight builds. This also shows a few cases where show_boot_progress was incorrectly guarded before. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/k+p')
-rw-r--r--board/k+p/kp_imx53/kp_imx53.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/k+p/kp_imx53/kp_imx53.c b/board/k+p/kp_imx53/kp_imx53.c
index cc8118b4ad..7c3a695cb2 100644
--- a/board/k+p/kp_imx53/kp_imx53.c
+++ b/board/k+p/kp_imx53/kp_imx53.c
@@ -155,6 +155,7 @@ int board_late_init(void)
return ret;
}
+#if CONFIG_IS_ENABLED(BOOTSTAGE)
#define GPIO_DR 0x0
#define GPIO_GDIR 0x4
#define GPIO_ALT1 0x1
@@ -203,3 +204,4 @@ void show_boot_progress(int status)
gpio_direction_output(LED_RED, 1);
}
}
+#endif