arm:omap:am33xx: Add eeprom board detection logic for beaglebone
authorSteve Kipisz <s-kipisz2@ti.com>
Thu, 13 Oct 2011 11:25:50 +0000 (16:55 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:31 +0000 (00:44 +0530)
commitaffce35de47f8748827d0fc575783f08e01ec8d5
tree502dc80282136048051144030b706bd6f530a595
parente61b50856bd75be07934c332a8c3865a2b3e7be4
arm:omap:am33xx: Add eeprom board detection logic for beaglebone

In case of wrong EEPROM ID, or if device fails to read/detect the
board fall back to BeagleBone board.

Also, add support for BeagleBone version detection and support for
old boards.

Difference in BeagleBone variants.

* Have different dev_cfg structures and setup functions for new, old
  beaglebone boards setup pin mux accordingly

* Fall back to older Bone boards if EEPROM reads are incorrect or empty

* Read version field of EEPROM config to call correct setup_beaglebone
  function according to board version

Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/board-am335xevm.c