uboot-add-rev-detection.patch
commita2bc49e37ac48944dc62b19d5db42bf673f455f0
authorAndy Green <andy@openmoko.com>
Fri, 11 Apr 2008 13:27:34 +0000 (11 14:27 +0100)
committerwarmcat <andy@warmcat.com>
Fri, 11 Apr 2008 13:27:34 +0000 (11 14:27 +0100)
treef84fa1c20cb132e8dbdb3b13e4bb5cc80448d530
parent626507bfaa8a3a996c79b7b80d0ee70448b65705
uboot-add-rev-detection.patch
uboot-add-rev-detection.patch

GTA02 A6+ has board rev detection capability, provide
 int gta02_get_pcb_revision(void)
which returns

b9    b8        b2    b1    b0
GPD4  GPD3     GPD0  GPC15 GPC13

GTA02 A5 and before:  0x000
GTA02 A6           :  0x001

Also create pcb_rev in the environment, which contains, eg, 0x101 and
can be passed into the operating system on the commandline.  For linux
this can then be seen from userspace by

cat /proc/cmdline

Signed-off-by: Andy Green <andy@openmoko.com>
board/neo1973/gta02/gta02.c