diff options
Diffstat (limited to 'arch/arm/mach-stm32mp/soc.c')
-rw-r--r-- | arch/arm/mach-stm32mp/soc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/soc.c b/arch/arm/mach-stm32mp/soc.c new file mode 100644 index 00000000000..d7b03590b8c --- /dev/null +++ b/arch/arm/mach-stm32mp/soc.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause +/* + * Copyright (C) 2024, STMicroelectronics - All Rights Reserved + */ + +#include <env.h> +#include <asm/arch/sys_proto.h> +#include <dm/device.h> + +/* used when CONFIG_DISPLAY_CPUINFO is activated */ +int print_cpuinfo(void) +{ + char name[SOC_NAME_SIZE]; + + get_soc_name(name); + printf("CPU: %s\n", name); + + return 0; +} |