Patrick Delaunay | 2f6030a | 2024-01-15 15:05:49 +0100 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause |
2 | /* | ||||
3 | * Copyright (C) 2024, STMicroelectronics - All Rights Reserved | ||||
4 | */ | ||||
5 | |||||
6 | #include <env.h> | ||||
7 | #include <asm/arch/sys_proto.h> | ||||
8 | #include <dm/device.h> | ||||
9 | |||||
10 | /* used when CONFIG_DISPLAY_CPUINFO is activated */ | ||||
11 | int print_cpuinfo(void) | ||||
12 | { | ||||
13 | char name[SOC_NAME_SIZE]; | ||||
14 | |||||
15 | get_soc_name(name); | ||||
16 | printf("CPU: %s\n", name); | ||||
17 | |||||
18 | return 0; | ||||
19 | } |