usb: r8a66597-hcd: add function for external controller
R8A66597 has the pin of WR0 and WR1. So, if one write-pin of CPU connects to the pins, we have to change the setting of FIFOSEL register in the controller. If we don't change the setting, the controller cannot send the data of odd length. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
		
					parent
					
						
							
								81463c1d70
							
						
					
				
			
			
				commit
				
					
						f2e9039a43
					
				
			
		
					 3 changed files with 25 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,9 @@ struct r8a66597_platdata {
 | 
			
		|||
 | 
			
		||||
	/* set one = big endian, set zero = little endian */
 | 
			
		||||
	unsigned	endian:1;
 | 
			
		||||
 | 
			
		||||
	/* (external controller only) set one = WR0_N shorted to WR1_N */
 | 
			
		||||
	unsigned	wr0_shorted_to_wr1:1;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* Register definitions */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue