[U-Boot] U-Boot 2012.10 - pxa270 CPU Unknown / no turbo

Marek Vasut
2012-11-13T13:52:40Z

> Hi together,
>
> i've got another problem with latest stable U-Boot-2012.10 and a Toradex
> Colibri PXA270 V2.4
>
> Uboot dosen't regonized the CPU Revision
> u-boot summary screen:
>
> U-Boot 2012.10 (Nov 12 2012 - 14:22:12)
> CPU: Marvell PXA27x rev. Unknown

See arch/arm/cpu/pxa/cpuinfo.c , patch is welcome ... they probably rolled out
some new CPU version.

> first lines of dmesg:
> [ 0.000000] CPU: XScale-PXA270 [69054118] revision 8 (ARMv5TE),
> cr=0000397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
> [ 0.000000] Machine: Toradex Colibri PXA270
> [ 0.000000] Memory policy: ECC disabled, Data cache writeback
> [ 0.000000] Run Mode clock: 208.00MHz (*16)
> [ 0.000000] Turbo Mode clock: 520.00MHz (*2.5, inactive)
> [ 0.000000] Memory clock: 104.00MHz (/2)
> [ 0.000000] System bus clock: 104.00MHz

Looks like you need to enable the "Turbo" bit, patch is welcome. See
arch/arm/cpu/pxa/start.S and arch/arm/cpu/pxa/pxa2xx.c

> $ cat /proc/cpuinfo
> Processor : XScale-PXA270 rev 8 (v5l)
> BogoMIPS : 207.66
> Features : swp half thumb fastmult edsp iwmmxt
> CPU implementer : 0x69
> CPU architecture: 5TE
> CPU variant : 0x0
> CPU part : 0x411
> CPU revision : 8
>
> Hardware : Toradex Colibri PXA270
> Revision : 0000
> Serial : 0000000000000000
>
>
>
> With an old uboot from a third party vendor its working fine and the boot
> time is about half with the latest stable u-boot.
>
> U-Boot 2010.06-dirty
> CPU speed: 520000kHz; RCSR 00000001
>
> first lines of dmesg:
> [ 0.000000] CPU: XScale-PXA270 [69054118] revision 8 (ARMv5TE),
> cr=0000397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache
> [ 0.000000] Machine: Toradex Colibri PXA270
> [ 0.000000] Memory policy: ECC disabled, Data cache writeback
> [ 0.000000] Run Mode clock: 208.00MHz (*16)
> [ 0.000000] Turbo Mode clock: 520.00MHz (*2.5, active)
> [ 0.000000] Memory clock: 208.00MHz (/2)
> [ 0.000000] System bus clock: 208.00MHz
>
> $ cat /proc/cpuinfo
> Processor : XScale-PXA270 rev 8 (v5l)
> BogoMIPS : 519.37
> Features : swp half thumb fastmult edsp iwmmxt
> CPU implementer : 0x69
> CPU architecture: 5TE
> CPU variant : 0x0
> CPU part : 0x411
> CPU revision : 8
>
> Hardware : Toradex Colibri PXA270
> Revision : 0000
> Serial : 00003600602d1400
>
>
> Uboot-2012.10 was compiled with stock files and no modification.
>
>
> Kind regards
> Andreas

Best regards,
Marek Vasut