ti/common: add support for extension_scan_board function
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 4 May 2021 17:31:24 +0000 (19:31 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 13 May 2021 17:09:09 +0000 (13:09 -0400)
commit8c1d44320621f9bc6530e25907664c8de0ffa0ce
treebdd3f91b79648ac44f9ee04f9a7bed41da124365
parent95300f203f3249ffb7a08222dc4d8106c5a6ceeb
ti/common: add support for extension_scan_board function

The BeagleBone platforms all use a common mechanism to discover and
identify extension boards (called "capes"): each extension board has an
I2C-connected EEPROM describing itself.

This patch implements a generic extension_scan_board() feature that can
be used by all BeagleBone platforms to read those I2C EEPROMs and fill
in the list of "extension" structures.

Following commits will enable this common logic on two BeagleBone
platforms.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
board/ti/common/Kconfig
board/ti/common/Makefile
board/ti/common/cape_detect.c [new file with mode: 0644]
board/ti/common/cape_detect.h [new file with mode: 0644]