mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	Rename the driver from S10 to SoC64 because Intel Agilex platform also using the this SYSRESET SoCFPGA driver for S10. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			642 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			642 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| /*
 | |
|  * Copyright (C) 2019 Pepperl+Fuchs
 | |
|  * Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <dm.h>
 | |
| #include <errno.h>
 | |
| #include <sysreset.h>
 | |
| #include <asm/arch/mailbox_s10.h>
 | |
| 
 | |
| static int socfpga_sysreset_request(struct udevice *dev,
 | |
| 				    enum sysreset_t type)
 | |
| {
 | |
| 	puts("Mailbox: Issuing mailbox cmd REBOOT_HPS\n");
 | |
| 	mbox_reset_cold();
 | |
| 	return -EINPROGRESS;
 | |
| }
 | |
| 
 | |
| static struct sysreset_ops socfpga_sysreset = {
 | |
| 	.request = socfpga_sysreset_request,
 | |
| };
 | |
| 
 | |
| U_BOOT_DRIVER(sysreset_socfpga) = {
 | |
| 	.id	= UCLASS_SYSRESET,
 | |
| 	.name	= "socfpga_sysreset",
 | |
| 	.ops	= &socfpga_sysreset,
 | |
| };
 |