mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	am33xx: Remove redundant timer config
We have the timer code in arch/arm/cpu/armv7/omap-common/timer.c that has been configuring and enabling the timer, so remove our code that does the same thing by different methods. Tested on EVM GP, SK-EVM and Beaglebone. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
		
							parent
							
								
									6298687557
								
							
						
					
					
						commit
						14dace7058
					
				@ -37,7 +37,6 @@
 | 
				
			|||||||
DECLARE_GLOBAL_DATA_PTR;
 | 
					DECLARE_GLOBAL_DATA_PTR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
 | 
					struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
 | 
				
			||||||
struct gptimer *timer_base = (struct gptimer *)CONFIG_SYS_TIMERBASE;
 | 
					 | 
				
			||||||
struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
 | 
					struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct gpio_bank gpio_bank_am33xx[4] = {
 | 
					static const struct gpio_bank gpio_bank_am33xx[4] = {
 | 
				
			||||||
@ -119,22 +118,6 @@ static int read_eeprom(void)
 | 
				
			|||||||
#define UART_SMART_IDLE_EN	(0x1 << 0x3)
 | 
					#define UART_SMART_IDLE_EN	(0x1 << 0x3)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CONFIG_SPL_BUILD
 | 
					 | 
				
			||||||
/* Initialize timer */
 | 
					 | 
				
			||||||
static void init_timer(void)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	/* Reset the Timer */
 | 
					 | 
				
			||||||
	writel(0x2, (&timer_base->tscir));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/* Wait until the reset is done */
 | 
					 | 
				
			||||||
	while (readl(&timer_base->tiocp_cfg) & 1)
 | 
					 | 
				
			||||||
		;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/* Start the Timer */
 | 
					 | 
				
			||||||
	writel(0x1, (&timer_base->tclr));
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Determine what type of DDR we have.
 | 
					 * Determine what type of DDR we have.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -183,9 +166,6 @@ void s_init(void)
 | 
				
			|||||||
	regVal |= UART_SMART_IDLE_EN;
 | 
						regVal |= UART_SMART_IDLE_EN;
 | 
				
			||||||
	writel(regVal, &uart_base->uartsyscfg);
 | 
						writel(regVal, &uart_base->uartsyscfg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Initialize the Timer */
 | 
					 | 
				
			||||||
	init_timer();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	preloader_console_init();
 | 
						preloader_console_init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Initalize the board header */
 | 
						/* Initalize the board header */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user