summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mx5
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-01-03 08:52:39 -0500
committerStefano Babic <sbabic@denx.de>2018-01-12 14:28:04 +0100
commit20b9f2eaf5fbb1e7befbdc4f7863fd69c942d744 (patch)
tree790158bd5575bd65f115716b747a789d31872ced /arch/arm/mach-imx/mx5
parente7528a3d7436fd0d073ecdd8527f9a0dc535e172 (diff)
arm: imx: Rework i.MX specific commands to be excluded from SPL
The "clocks" and "bootaux" commands are only usable in full U-Boot, not SPL, so do not link them inside of SPL. Rework a little of the bootaux related code to make use of __weak and declare parts of it static as it's local to the file. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/mx5')
-rw-r--r--arch/arm/mach-imx/mx5/clock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mx5/clock.c b/arch/arm/mach-imx/mx5/clock.c
index 610098c175..284f6d4cde 100644
--- a/arch/arm/mach-imx/mx5/clock.c
+++ b/arch/arm/mach-imx/mx5/clock.c
@@ -911,10 +911,11 @@ void mxc_set_sata_internal_clock(void)
}
#endif
+#ifndef CONFIG_SPL_BUILD
/*
* Dump some core clockes.
*/
-int do_mx5_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_mx5_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
u32 freq;
@@ -947,3 +948,4 @@ U_BOOT_CMD(
"display clocks",
""
);
+#endif