How to determine gta04 hardware revision?
Dr. H. Nikolaus Schaller
hns at goldelico.com
Sat Jul 13 09:29:45 CEST 2013
Am 13.07.2013 um 07:50 schrieb Alexey:
> How to determine gta04 hardware revision?
Well, you (user space code) should not have to care about the hardware
revision (A2, A3, A4, A5 etc.). It rather should check for availability of
features and the kernel should load/disable the drivers.
That said, the main difference for user space between A3 and A4 is the availability
of hw-voice-routing.
Since the A3 board also lacks a mechanism to on/off the UMTS modem you can
check for the presence of the GPIO that controls it:
ls -l /sys/class/gpio/gpio186
If you want to see the revision for informational purposes:
dmesg | fgrep Revision
Finally you can take a look on the PCB. If there are 4 small resistors on the
backside of the backup battery, it is an A4 (or later) board.
Nikolaus
>
> root at neo:~# cat /proc/cpuinfo
> Processor : ARMv7 Processor rev 2 (v7l)
> BogoMIPS : 336.13
> Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x3
> CPU part : 0xc08
> CPU revision : 2
>
> Hardware : GTA04
> Revision : 0020
> Serial : 0000000000000000
>
>
> root at neo:~# find /sys -type f -iname *gpio*
> /sys/devices/virtual/gpio/gpiochip32/ngpio
> /sys/devices/virtual/gpio/gpiochip64/ngpio
> /sys/devices/virtual/gpio/gpiochip96/ngpio
> /sys/devices/virtual/gpio/gpiochip0/ngpio
> /sys/devices/virtual/gpio/gpiochip128/ngpio
> /sys/devices/virtual/gpio/gpiochip160/ngpio
> /sys/devices/virtual/gpio/gpiochip213/ngpio
> /sys/devices/virtual/gpio/gpiochip214/ngpio
> /sys/devices/platform/omap_i2c.2/i2c-2/2-0045/gpio/gpiochip212/ngpio
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
More information about the community
mailing list