]> git.ipfire.org Git - people/ms/u-boot.git/commit
OMAP3: Beagle: Add board revision detection
authorDirk Behme <dirk.behme@googlemail.com>
Thu, 12 Feb 2009 17:55:41 +0000 (18:55 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 22 Feb 2009 17:29:10 +0000 (18:29 +0100)
commitf956fd0338f4990793a10f767929ba4963665261
tree44f670831d2fde5ea6104dbbd283390b825ce8bf
parent288f3cd912918b97919d13b6f7fb13fbddf74d68
OMAP3: Beagle: Add board revision detection

With BeagleBoard revision C some HW changes are introduced (e.g. PinMUX)
which might need different software handling. For this, GPIO pin 171 (GPIO
module 6, offset 11) can be used to check for board revision. If this pin
is low, we have a rev C board. Else it must be a revision Ax or Bx board.

To handle board differences you can call function beagle_get_revision().
E.g.:

if (beagle_get_revision()) {

/* do special revision C stuff here */

}

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
board/omap3/beagle/beagle.c
board/omap3/beagle/beagle.h
include/asm-arm/arch-omap3/omap3.h