mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 05:14:38 +00:00 
			
		
		
		
	 93c62da23a
			
		
	
	
		93c62da23a
		
	
	
	
	
		
			
			Previously it was not possible to do so, making it impossible for machines to configure the driver. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
		
			
				
	
	
		
			25 lines
		
	
	
		
			728 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			728 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Support for TI bq24022 (bqTINY-II) Dual Input (USB/AC Adpater)
 | |
|  * 1-Cell Li-Ion Charger connected via GPIOs.
 | |
|  *
 | |
|  * Copyright (c) 2008 Philipp Zabel
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License version 2 as
 | |
|  * published by the Free Software Foundation.
 | |
|  *
 | |
|  */
 | |
| 
 | |
| struct regulator_init_data;
 | |
| 
 | |
| /**
 | |
|  * bq24022_mach_info - platform data for bq24022
 | |
|  * @gpio_nce: GPIO line connected to the nCE pin, used to enable / disable charging
 | |
|  * @gpio_iset2: GPIO line connected to the ISET2 pin, used to limit charging current to 100 mA / 500 mA
 | |
|  */
 | |
| struct bq24022_mach_info {
 | |
| 	int gpio_nce;
 | |
| 	int gpio_iset2;
 | |
| 	struct regulator_init_data *init_data;
 | |
| };
 |