summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAdam YH Lee <adam.yh.lee@gmail.com>2015-06-01 14:29:09 -0700
committerTom Rini <trini@konsulko.com>2015-06-08 17:32:40 -0400
commit5e90470a866875984820dbc48c9b881e0ce773ba (patch)
tree39a732020d311e4f080725f7a420bbe32bb5eca2 /include
parent8f0b1e24e2887713bdcbf35b08902e9555ee7b92 (diff)
downloadtalos-obmc-uboot-5e90470a866875984820dbc48c9b881e0ce773ba.tar.gz
talos-obmc-uboot-5e90470a866875984820dbc48c9b881e0ce773ba.zip
pepper: Implement Board Detection mechanism
AM335x-based 'Gumstix Pepper' SBCs and variants use different types of RAM (DDR2 vs DDR3 with DDR3 being the default). Detect the board type by reading the factory-programmed EEPROM [1] and use this to select any runtime boot options such as RAM type. [1] http://elinux.org/BeagleBoardPinMux#List_of_Vendor_and_Device_IDs Signed-off-by: Adam YH Lee <adam.yh.lee@gmail.com> Signed-off-by: Ash Charles <ashcharles@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/pepper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/pepper.h b/include/configs/pepper.h
index cc153abaa9..16149f69d5 100644
--- a/include/configs/pepper.h
+++ b/include/configs/pepper.h
@@ -20,6 +20,8 @@
#undef CONFIG_SYS_PROMPT
#define CONFIG_SYS_PROMPT "pepper# "
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+
/* Mach type */
#define MACH_TYPE_PEPPER 4207 /* Until the next sync */
#define CONFIG_MACH_TYPE MACH_TYPE_PEPPER
OpenPOWER on IntegriCloud