xref: /openbmc/u-boot/arch/arm/mach-aspeed/cpuinfo.c (revision 3ba98ed8)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) ASPEED Technology Inc.
4  * Ryan Chen <ryan_chen@aspeedtech.com>
5  */
6 
7 #include <common.h>
8 #include <command.h>
9 #include <asm/io.h>
10 #include <asm/arch/aspeed_scu_info.h>
11 #include <asm/arch/platform.h>
12 
13 int print_cpuinfo(void)
14 {
15 	aspeed_print_soc_id();
16 	aspeed_print_sysrst_info();
17 	aspeed_print_security_info();
18 	aspeed_print_2nd_wdt_mode();
19 	if (aspeed_print_fmc_aux_ctrl)
20 		aspeed_print_fmc_aux_ctrl();
21 	if (aspeed_print_spi1_abr_mode)
22 		aspeed_print_spi1_abr_mode();
23 	if (aspeed_print_spi1_aux_ctrl)
24 		aspeed_print_spi1_aux_ctrl();
25 	aspeed_print_spi_strap_mode();
26 	aspeed_print_espi_mode();
27 	aspeed_print_mac_info();
28 	return 0;
29 }
30