summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2016-12-28 16:28:34 (GMT)
committerTom Rini <trini@konsulko.com>2017-01-02 16:14:06 (GMT)
commit965c509f0a06ea506432e1f90fdd43a0faff6c23 (patch)
tree194944348c6e49e8524ff928cd68990900d6046a /include/configs
parent46650d583b8067c8aecf2ddea585e8a97f937d0c (diff)
downloadu-boot-fsl-qoriq-965c509f0a06ea506432e1f90fdd43a0faff6c23.tar.xz
arm: am57xx: cl-som-am57x: fetch board rev from EEPROM
Add PCB revision message. Implement board revision get_board_rev API. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Commit description update. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/cl-som-am57x.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/cl-som-am57x.h b/include/configs/cl-som-am57x.h
index c8d4a00..48c0f7f 100644
--- a/include/configs/cl-som-am57x.h
+++ b/include/configs/cl-som-am57x.h
@@ -24,6 +24,10 @@
#include <configs/ti_omap5_common.h>
+/* misc */
+#define CONFIG_MISC_INIT_R
+#define CONFIG_REVISION_TAG
+
/* Status LED */
#define CONFIG_STATUS_LED /* Status LED enabled */
#define CONFIG_GPIO_LED
@@ -65,6 +69,16 @@
#define CONFIG_ENV_OFFSET (768 * 1024)
#define CONFIG_ENV_SPI_MAX_HZ 48000000
+/* EEPROM */
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_BUS 3
+
+#define CONFIG_CMD_EEPROM
+#define CONFIG_CMD_EEPROM_LAYOUT
+#define CONFIG_ENV_EEPROM_IS_ON_I2C
+#define CONFIG_SYS_EEPROM_SIZE 256
+
#ifndef CONFIG_SPL_BUILD
/* SATA */
#define CONFIG_CMD_SCSI