mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Try to maintain some consistency between these variables by using _plat as a suffix for them. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			27 lines
		
	
	
		
			796 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			796 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0+
 | 
						|
/*
 | 
						|
 * Copyright (C) 2019 Disruptive Technologies Research AS
 | 
						|
 * Sven Schwermer <sven.svenschwermer@disruptive-technologies.com>
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef _REGULATOR_COMMON_H
 | 
						|
#define _REGULATOR_COMMON_H
 | 
						|
 | 
						|
#include <asm/gpio.h>
 | 
						|
 | 
						|
struct regulator_common_plat {
 | 
						|
	struct gpio_desc gpio; /* GPIO for regulator enable control */
 | 
						|
	unsigned int startup_delay_us;
 | 
						|
	unsigned int off_on_delay_us;
 | 
						|
};
 | 
						|
 | 
						|
int regulator_common_of_to_plat(struct udevice *dev,
 | 
						|
				struct regulator_common_plat *dev_pdata, const
 | 
						|
				char *enable_gpio_name);
 | 
						|
int regulator_common_get_enable(const struct udevice *dev,
 | 
						|
	struct regulator_common_plat *dev_pdata);
 | 
						|
int regulator_common_set_enable(const struct udevice *dev,
 | 
						|
	struct regulator_common_plat *dev_pdata, bool enable);
 | 
						|
 | 
						|
#endif /* _REGULATOR_COMMON_H */
 |