]> code.ossystems Code Review - bsp/u-boot.git/commit
ARM: vf610: Add SoC and CPU type detection
authorSanchayan Maity <maitysanchayan@gmail.com>
Wed, 15 Apr 2015 10:54:24 +0000 (16:24 +0530)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Apr 2015 20:56:17 +0000 (17:56 -0300)
commitd0b33b7c4106f638583267e56038052ef92da075
treec677159c5bd7df0d2f5d59012e81f31ab062d99f
parent6adfaabb693905a3a9e56ebb7f803ad74eed796a
ARM: vf610: Add SoC and CPU type detection

Vybrid product family consists of several rather similar SoC which
can be determined by softare during boot time. This allows use of
variable ${soc} for Linux device tree files. Detect VF5xx CPU's by
reading the CPU count register. We can determine the second number
of the CPU type (VF6x0) which indicates the presence of a L2 cache.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
arch/arm/cpu/armv7/vf610/generic.c
arch/arm/include/asm/arch-vf610/imx-regs.h