diff options
author | Dirk Behme <dirk.behme@googlemail.com> | 2009-02-12 18:55:41 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-02-22 18:29:10 +0100 |
commit | f956fd0338f4990793a10f767929ba4963665261 (patch) | |
tree | 44f670831d2fde5ea6104dbbd283390b825ce8bf /board/omap3/beagle/beagle.h | |
parent | 288f3cd912918b97919d13b6f7fb13fbddf74d68 (diff) | |
download | u-boot-imx-f956fd0338f4990793a10f767929ba4963665261.zip u-boot-imx-f956fd0338f4990793a10f767929ba4963665261.tar.gz u-boot-imx-f956fd0338f4990793a10f767929ba4963665261.tar.bz2 |
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>
Diffstat (limited to 'board/omap3/beagle/beagle.h')
-rw-r--r-- | board/omap3/beagle/beagle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/omap3/beagle/beagle.h b/board/omap3/beagle/beagle.h index 6511ffa..3f2a4dc 100644 --- a/board/omap3/beagle/beagle.h +++ b/board/omap3/beagle/beagle.h @@ -36,6 +36,8 @@ const omap3_sysinfo sysinfo = { #endif }; +#define BOARD_REVISION_MASK (0x1 << 11) + /* * IEN - Input Enable * IDIS - Input Disable |