summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2012-09-14 11:28:02 +0800
committerJason Liu <r64343@freescale.com>2012-09-14 11:34:16 +0800
commitb7447e2cf6cd7e1ef166dea21fcc2ccb2afd37f2 (patch)
treef98b7cb13b9bbb9e78b3e62c64d2f846453abd4a /include/configs
parent9b6f86795690be9be190b8fe458eee781cdf3965 (diff)
downloadu-boot-imx-b7447e2cf6cd7e1ef166dea21fcc2ccb2afd37f2.zip
u-boot-imx-b7447e2cf6cd7e1ef166dea21fcc2ccb2afd37f2.tar.gz
u-boot-imx-b7447e2cf6cd7e1ef166dea21fcc2ccb2afd37f2.tar.bz2
ENGR00224291:i.MX6Q/ARM2-LPDDR2:enable CONFIG_CMD_IMXOTP to fix the build error
Need enable CONFIG_CMD_IMXOTP to fix the build error: 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' Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx6q_arm2_lpddr2.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/mx6q_arm2_lpddr2.h b/include/configs/mx6q_arm2_lpddr2.h
index 9a92c76..64e403b 100644
--- a/include/configs/mx6q_arm2_lpddr2.h
+++ b/include/configs/mx6q_arm2_lpddr2.h
@@ -91,6 +91,7 @@
#define CONFIG_BOOTP_DNS
#define CONFIG_CMD_I2C
+#define CONFIG_CMD_IMXOTP
/* Enable below configure when supporting nand */
@@ -171,6 +172,16 @@
#define CONFIG_NETMASK 255.255.255.0
/*
+ * 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
+
+/*
* I2C Configs
*/
#ifdef CONFIG_CMD_I2C