aboutsummaryrefslogtreecommitdiff
path: root/board/ti/common/board_detect.h
diff options
context:
space:
mode:
authorCaleb Robey <c-robey@ti.com>2020-01-02 08:17:25 -0600
committerLokesh Vutla <lokeshvutla@ti.com>2020-01-20 10:10:28 +0530
commitd6eaaae3d3066efadab3899e3f66ee8db85368b2 (patch)
tree9bf6cf93ad7129c5a18d778659771171dd2c2202 /board/ti/common/board_detect.h
parent4250bf8ed96b50cf78d04fb2564fed351f7daeb2 (diff)
downloadu-boot-d6eaaae3d3066efadab3899e3f66ee8db85368b2.zip
u-boot-d6eaaae3d3066efadab3899e3f66ee8db85368b2.tar.gz
u-boot-d6eaaae3d3066efadab3899e3f66ee8db85368b2.tar.bz2
board: ti: beagleboneai: emmc read changes
BeagleBoard.org BeagleBone AI rev A1 does not include a board identifier I2C EEPROM due to a design oversight. These boards have been put into production and are generally available now. The board identifier information, however, has been included in the second eMMC linear boot partition (/dev/mmcblk1boot1). This patch works by: * First, looking for a board identifier I2C EEPROM and if not found, * Then seeing if the boot mode matches BeagleBone AI with eMMC in the boot chain to make sure we don't enable eMMC pinmuxes on boards that don't support it, and * Finally, initializes the eMMC pins and reading the header. Signed-off-by: Jason Kridner <jdk@ti.com> Signed-off-by: Caleb Robey <c-robey@ti.com> Cc: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/common/board_detect.h')
-rw-r--r--board/ti/common/board_detect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/ti/common/board_detect.h b/board/ti/common/board_detect.h
index a45d896..1a85b7f 100644
--- a/board/ti/common/board_detect.h
+++ b/board/ti/common/board_detect.h
@@ -268,6 +268,15 @@ struct ti_am6_eeprom {
int ti_i2c_eeprom_am_get(int bus_addr, int dev_addr);
/**
+ * ti_emmc_boardid_get() - Fetch board ID information from eMMC
+ *
+ * ep in SRAM is populated by the this function that is currently
+ * based on BeagleBone AI, but could be made more general across AM*
+ * platforms.
+ */
+int __maybe_unused ti_emmc_boardid_get(void);
+
+/**
* ti_i2c_eeprom_dra7_get() - Consolidated eeprom data for DRA7 TI EVMs
* @bus_addr: I2C bus address
* @dev_addr: I2C slave address