board: ti: beagleboneai: emmc read changes
authorCaleb Robey <c-robey@ti.com>
Thu, 2 Jan 2020 14:17:25 +0000 (08:17 -0600)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
commitd6eaaae3d3066efadab3899e3f66ee8db85368b2
tree9bf6cf93ad7129c5a18d778659771171dd2c2202
parent4250bf8ed96b50cf78d04fb2564fed351f7daeb2
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>
board/ti/am57xx/board.c
board/ti/am57xx/mux_data.h
board/ti/common/board_detect.c
board/ti/common/board_detect.h