blob: b4b5089fec3d0fb5a4928b3f673549f704b4a45f [file] [log] [blame]
Ian Campbell6efe3692014-05-05 11:52:26 +01001/*
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
14int print_cpuinfo(void)
15{
Hans de Goede3ab9c232014-06-09 11:36:57 +020016#ifdef CONFIG_SUN4I
17 puts("CPU: Allwinner A10 (SUN4I)\n");
18#elif defined CONFIG_SUN7I
Ian Campbell6efe3692014-05-05 11:52:26 +010019 puts("CPU: Allwinner A20 (SUN7I)\n");
Hans de Goede3ab9c232014-06-09 11:36:57 +020020#else
21#warning Please update cpu_info.c with correct CPU information
22 puts("CPU: SUNXI Family\n");
23#endif
Ian Campbell6efe3692014-05-05 11:52:26 +010024 return 0;
25}
26#endif