omap: Beagle: revision detection
authorRobert Nelson <robertcnelson@gmail.com>
Fri, 24 Sep 2010 01:22:47 +0000 (18:22 -0700)
committerJason Kridner <jkridner@beagleboard.org>
Wed, 16 Mar 2011 13:24:32 +0000 (08:24 -0500)
commit325afc09116e11e28265b648ef33d8c0306c61f1
treeb0053840492a1c082640c07cd0523f849c5e8a78
parentba5fd3ed4031a826309ab26045d27dbef88de418
omap: Beagle: revision detection

Due to the omap3530 ES3.0 Silicon being used on both the
B5/B6 and C1/2/3 Beagle we can't use the cpu_is_omap34xx()
routines to differentiate the Beagle Boards.

However gpio pins 171,172,173 where setup for this prupose, so
lets use them.

Changes:
for older U-Boot's, use omap_mux_init_gpio()
keep Beagle Rev in board-omap3beagle.c
gpio_free on gpio request failure

Tested on Beagle Revisions: B5, C2, C4, and xMA

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3beagle.c