]> git.sur5r.net Git - u-boot/blob - arch/arm/cpu/armv7/sunxi/cpu_info.c
sunxi: Add sun4i support
[u-boot] / arch / arm / cpu / armv7 / sunxi / cpu_info.c
1 /*
2  * (C) Copyright 2007-2011
3  * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4  * Tom Cubie <tangliang@allwinnertech.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #include <common.h>
10 #include <asm/io.h>
11 #include <asm/arch/cpu.h>
12
13 #ifdef CONFIG_DISPLAY_CPUINFO
14 int print_cpuinfo(void)
15 {
16 #ifdef CONFIG_SUN4I
17         puts("CPU:   Allwinner A10 (SUN4I)\n");
18 #elif defined CONFIG_SUN7I
19         puts("CPU:   Allwinner A20 (SUN7I)\n");
20 #else
21 #warning Please update cpu_info.c with correct CPU information
22         puts("CPU:   SUNXI Family\n");
23 #endif
24         return 0;
25 }
26 #endif