summaryrefslogtreecommitdiff
path: root/include/configs/mx6q_arm2_iram.h
diff options
context:
space:
mode:
authorEric Sun <jian.sun@freescale.com>2012-09-14 14:28:46 +0800
committerEric Sun <jian.sun@freescale.com>2012-09-14 16:52:13 +0800
commit097643f5cb6449a53bbf479eddc3565f53619820 (patch)
treeba8b8b973bb427a7b4d4dff83c9a8260cc3717c0 /include/configs/mx6q_arm2_iram.h
parentb7447e2cf6cd7e1ef166dea21fcc2ccb2afd37f2 (diff)
ENGR00224313:i.MX6 general:enable CONFIG_CMD_IMXOTP to fix the build error
Commit 7942886(ENGR00221503-2 imx6: add cpu serial number support) introduces dependency on "CONFIG_SERIAL_TAG" and "CONFIG_CMD_IMXOTP". On U-boot configuration header files which only defines the first one, build error will be met. --- build error message --- arm_cortexa8/mx6/libmx6.a(generic.o): In function `get_board_serial': arm_cortexa8/mx6/generic.c:1438: undefined reference to `imx_otp_read_one_u32' arm_cortexa8/mx6/generic.c:1439: undefined reference to `imx_otp_read_one_u32' --------------------------- To fix it, add missing "CONFIG_CMD_IMXOTP" macro definition in the config head file. Configs affected are: --------------------------- mx6q_arm2_iram mx6q_sabresd_iram mx6dl_arm2_iram mx6sl_arm2_iram mx6sl_evk_iram Signed-off-by: Eric Sun <jian.sun@freescale.com>
Diffstat (limited to 'include/configs/mx6q_arm2_iram.h')
-rw-r--r--include/configs/mx6q_arm2_iram.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/mx6q_arm2_iram.h b/include/configs/mx6q_arm2_iram.h
index a027b02134..a9623dff30 100644
--- a/include/configs/mx6q_arm2_iram.h
+++ b/include/configs/mx6q_arm2_iram.h
@@ -82,6 +82,8 @@
#define CONFIG_CMD_CONSOLE /* coninfo */
#define CONFIG_CMD_RUN /* run command in env variable */
+#define CONFIG_CMD_IMXOTP
+
/* Enable below configure when supporting nand */
#define CONFIG_CMD_ENV
@@ -134,6 +136,16 @@
#define CONFIG_CMDLINE_EDITING
+/*
+ * OCOTP Configs
+ */
+#ifdef CONFIG_CMD_IMXOTP
+ #define CONFIG_IMX_OTP
+ #define IMX_OTP_BASE OCOTP_BASE_ADDR
+ #define IMX_OTP_ADDR_MAX 0x7F
+ #define IMX_OTP_DATA_ERROR_VAL 0xBADABADA
+#endif
+
/*-----------------------------------------------------------------------
* Stack sizes
*