mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	ARM: mach-shmobile: ap4evb: Add S6 debug switch support
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
		
							parent
							
								
									5098280e01
								
							
						
					
					
						commit
						8cb3a2ebc1
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		|  | @ -211,6 +211,20 @@ static void __init ap4evb_init(void) | |||
| 	gpio_export(GPIO_PORT187, 0); | ||||
| 	gpio_export(GPIO_PORT188, 0); | ||||
| 
 | ||||
| 	/* enable Debug switch (S6) */ | ||||
| 	gpio_request(GPIO_PORT32, NULL); | ||||
| 	gpio_request(GPIO_PORT33, NULL); | ||||
| 	gpio_request(GPIO_PORT34, NULL); | ||||
| 	gpio_request(GPIO_PORT35, NULL); | ||||
| 	gpio_direction_input(GPIO_PORT32); | ||||
| 	gpio_direction_input(GPIO_PORT33); | ||||
| 	gpio_direction_input(GPIO_PORT34); | ||||
| 	gpio_direction_input(GPIO_PORT35); | ||||
| 	gpio_export(GPIO_PORT32, 0); | ||||
| 	gpio_export(GPIO_PORT33, 0); | ||||
| 	gpio_export(GPIO_PORT34, 0); | ||||
| 	gpio_export(GPIO_PORT35, 0); | ||||
| 
 | ||||
| 	sh7372_add_standard_devices(); | ||||
| 
 | ||||
| 	platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Kuninori Morimoto
						Kuninori Morimoto