mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Add a simple driver which allows use of buttons attached to GPIOs. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			657 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			657 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
menu "Button Support"
 | 
						|
 | 
						|
config BUTTON
 | 
						|
	bool "Enable button support"
 | 
						|
	depends on DM
 | 
						|
	help
 | 
						|
	  Many boards have buttons which can be used to change behaviour (reset, ...).
 | 
						|
	  U-Boot provides a uclass API to implement this feature. Button drivers
 | 
						|
	  can provide access to board-specific buttons. Use of the device tree
 | 
						|
	  for configuration is encouraged.
 | 
						|
 | 
						|
config BUTTON_GPIO
 | 
						|
	bool "Button gpio"
 | 
						|
	depends on BUTTON
 | 
						|
	help
 | 
						|
	  Enable support for buttons which are connected to GPIO lines. These
 | 
						|
	  GPIOs may be on the SoC or some other device which provides GPIOs.
 | 
						|
	  The GPIO driver must used driver model. Buttons are configured using
 | 
						|
	  the device tree.
 | 
						|
 | 
						|
endmenu
 |