diff options
author | Tom Rix <Tom.Rix@windriver.com> | 2009-06-02 20:53:56 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:45:47 +0200 |
commit | a30f519bd0cde78ba46b424314de94fdab863726 (patch) | |
tree | 9071cfc29d22d3722acb20c28f4e61f26d54bf90 /board/omap3/zoom2/zoom2.h | |
parent | 718763c4745fd3d987a5576d2a67325e9444f9d4 (diff) | |
download | blackbird-obmc-uboot-a30f519bd0cde78ba46b424314de94fdab863726.tar.gz blackbird-obmc-uboot-a30f519bd0cde78ba46b424314de94fdab863726.zip |
ZOOM2 detect the version of the zoom2 board at runtime.
There are currently 3 versions of the zoom2 board.
The production board, that is currently being released.
The beta board, similar in form to the production board but not released.
The alpha board, a set of PCBs with a very limited circulation.
GPIO 94 is used to determine the version of the board. If GPIO 94 is clear,
the board is a production board, otherwise it is a beta board.
The alpha board will likely be mistaken for a beta board. An alpha board
was unavailible for testing.
This has been tested on the beta and production boards.
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/omap3/zoom2/zoom2.h')
-rw-r--r-- | board/omap3/zoom2/zoom2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/omap3/zoom2/zoom2.h b/board/omap3/zoom2/zoom2.h index cae8a7a7fc..a21d1d6899 100644 --- a/board/omap3/zoom2/zoom2.h +++ b/board/omap3/zoom2/zoom2.h @@ -32,6 +32,15 @@ const omap3_sysinfo sysinfo = { "NAND", }; +typedef enum { + ZOOM2_REVISION_UNKNOWN = 0, + ZOOM2_REVISION_ALPHA, + ZOOM2_REVISION_BETA, + ZOOM2_REVISION_PRODUCTION +} zoom2_revision; + +zoom2_revision zoom2_get_revision(void); + /* * IEN - Input Enable * IDIS - Input Disable |