mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	openrisc: implement get_ticks and get_tbclk
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
This commit is contained in:
		
				
					committed by
					
						 Tom Rini
						Tom Rini
					
				
			
			
				
	
			
			
			
						parent
						
							221953d41d
						
					
				
				
					commit
					2bcffa6faa
				
			| @@ -86,6 +86,16 @@ void set_timer(ulong t) | |||||||
| 	timestamp = t; | 	timestamp = t; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | unsigned long long get_ticks(void) | ||||||
|  | { | ||||||
|  | 	return get_timer(0); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | ulong get_tbclk(void) | ||||||
|  | { | ||||||
|  | 	return CONFIG_SYS_HZ; | ||||||
|  | } | ||||||
|  |  | ||||||
| void __udelay(ulong usec) | void __udelay(ulong usec) | ||||||
| { | { | ||||||
| 	ulong elapsed = 0; | 	ulong elapsed = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user