mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	Update my and DPs email address to match current setup. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/aba5b19b9c5a95608829e86ad5cc4671c940f1bb.1688992543.git.michal.simek@amd.com
		
			
				
	
	
		
			37 lines
		
	
	
		
			651 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			651 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * (C) Copyright 2014 - 2020 Xilinx, Inc.
 | |
|  * Michal Simek <michal.simek@amd.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <init.h>
 | |
| #include <soc.h>
 | |
| 
 | |
| int print_cpuinfo(void)
 | |
| {
 | |
| 	struct udevice *soc;
 | |
| 	char name[SOC_MAX_STR_SIZE];
 | |
| 	int ret;
 | |
| 
 | |
| 	ret = soc_get(&soc);
 | |
| 	if (ret) {
 | |
| 		printf("CPU:   UNKNOWN\n");
 | |
| 		return 0;
 | |
| 	}
 | |
| 
 | |
| 	ret = soc_get_family(soc, name, SOC_MAX_STR_SIZE);
 | |
| 	if (ret)
 | |
| 		printf("CPU:   %s\n", name);
 | |
| 
 | |
| 	ret = soc_get_revision(soc, name, SOC_MAX_STR_SIZE);
 | |
| 	if (ret)
 | |
| 		printf("Silicon: %s\n", name);
 | |
| 
 | |
| 	ret = soc_get_machine(soc, name, SOC_MAX_STR_SIZE);
 | |
| 	if (ret)
 | |
| 		printf("Chip:  %s\n", name);
 | |
| 
 | |
| 	return 0;
 | |
| }
 |