diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-15 16:44:18 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-15 16:44:18 -0500 |
commit | 8e9801c283c0e5a7ccd5c04f5ba09003d01f1591 (patch) | |
tree | ae79033993ae3f06b581a3bd0fcd8dc36a3528eb /board/toradex/apalis_imx6/pf0100.c | |
parent | a970ee22578dce3d7596280351d3dbade561ed8c (diff) | |
parent | 9587b0d61133c025d48ebf480aa021fc2fdd53a7 (diff) |
Merge git://git.denx.de/u-boot-imx
Diffstat (limited to 'board/toradex/apalis_imx6/pf0100.c')
-rw-r--r-- | board/toradex/apalis_imx6/pf0100.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/toradex/apalis_imx6/pf0100.c b/board/toradex/apalis_imx6/pf0100.c index 5eaf9c0b17..013801e62b 100644 --- a/board/toradex/apalis_imx6/pf0100.c +++ b/board/toradex/apalis_imx6/pf0100.c @@ -10,6 +10,7 @@ #include <common.h> #include <i2c.h> +#include <linux/compiler.h> #include <asm/arch/imx-regs.h> #include <asm/arch/iomux.h> #include <asm/arch/mx6-pins.h> @@ -23,7 +24,7 @@ /*#define DEBUG */ /* use Apalis GPIO1 to switch on VPGM, ON: 1 */ -static iomux_v3_cfg_t const pmic_prog_pads[] = { +static __maybe_unused iomux_v3_cfg_t const pmic_prog_pads[] = { MX6_PAD_NANDF_D4__GPIO2_IO04 | MUX_PAD_CTRL(NO_PAD_CTRL), # define PMIC_PROG_VOLTAGE IMX_GPIO_NR(2, 4) }; @@ -161,7 +162,8 @@ unsigned pmic_init(void) return programmed; } -int pf0100_prog(void) +#ifndef CONFIG_SPL_BUILD +static int pf0100_prog(void) { unsigned char bus = 1; unsigned char val; @@ -208,7 +210,7 @@ int pf0100_prog(void) return CMD_RET_SUCCESS; } -int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc, +static int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { int ret; @@ -226,3 +228,4 @@ U_BOOT_CMD( "Program the OTP fuses on the PMIC PF0100", "" ); +#endif |