mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Remove post.h include as it is used in spl.c Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			724 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			724 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
 | 
						|
/*
 | 
						|
 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
 | 
						|
 */
 | 
						|
 | 
						|
#include <config.h>
 | 
						|
#include <common.h>
 | 
						|
#include <spl.h>
 | 
						|
#include <dm.h>
 | 
						|
#include <ram.h>
 | 
						|
#include <asm/io.h>
 | 
						|
#include <power/pmic.h>
 | 
						|
#include <power/stpmic1.h>
 | 
						|
#include <asm/arch/ddr.h>
 | 
						|
 | 
						|
void spl_board_init(void)
 | 
						|
{
 | 
						|
	/* Keep vdd on during the reset cycle */
 | 
						|
#if defined(CONFIG_PMIC_STPMIC1) && defined(CONFIG_SPL_POWER_SUPPORT)
 | 
						|
	struct udevice *dev;
 | 
						|
	int ret;
 | 
						|
 | 
						|
	ret = uclass_get_device_by_driver(UCLASS_PMIC,
 | 
						|
					  DM_GET_DRIVER(pmic_stpmic1), &dev);
 | 
						|
	if (!ret)
 | 
						|
		pmic_clrsetbits(dev,
 | 
						|
				STPMIC1_BUCKS_MRST_CR,
 | 
						|
				STPMIC1_MRST_BUCK(STPMIC1_BUCK3),
 | 
						|
				STPMIC1_MRST_BUCK(STPMIC1_BUCK3));
 | 
						|
#endif
 | 
						|
}
 |