summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-07-08 15:53:21 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2015-07-08 15:53:21 +0200
commitfde58f26b226a6f1d6c5fad488f106e51e5329ec (patch)
treea5ad739b575c4da300b7583fcfd951227727aba9
parent4529ec182f647fdfe3e84bd6e7c41d8d499c014e (diff)
Apalis/Colibri iMX6: fix production commands
commit 2da77958e96151295e72f8f85aee352d0b4010fe added a configuration option to include commands used during production. Fixing the use of the CONFIG macro.
-rw-r--r--board/toradex/apalis_imx6/apalis_imx6.c4
-rw-r--r--board/toradex/colibri_imx6/colibri_imx6.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index 41ffdd4f5ff..7546e198485 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -32,7 +32,7 @@
#include <i2c.h>
#include "../common/configblock.h"
-#ifdef TRDX_CMD_IMX_MFGR
+#ifdef CONFIG_TRDX_CMD_IMX_MFGR
#include "pf0100.h"
#endif
@@ -818,7 +818,7 @@ int board_init(void)
setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info_loc);
setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info3);
-#ifdef TRDX_CMD_IMX_MFGR
+#ifdef CONFIG_TRDX_CMD_IMX_MFGR
(void) pmic_init();
#endif
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index 055f1cf2d4b..e625762e514 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -32,7 +32,7 @@
#include <i2c.h>
#include "../common/configblock.h"
-#ifdef TRDX_CMD_IMX_MFGR
+#ifdef CONFIG_TRDX_CMD_IMX_MFGR
#include "pf0100.h"
#endif
@@ -618,7 +618,7 @@ int board_init(void)
setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info_loc);
-#ifdef TRDX_CMD_IMX_MFGR
+#ifdef CONFIG_TRDX_CMD_IMX_MFGR
(void) pmic_init();
#endif