mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	arm: Init the debug UART
At present we don't init the debug UART in the generic ARM code, but instead leave it to individual machines to handle. This is not the way it is supposed to work. Add the required init to the crt files. This ensures that the UART is available as early as possible and that the announcement appears when it should, if enabled. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		| @@ -109,6 +109,10 @@ ENTRY(_main) | |||||||
| 	mov	r9, r0 | 	mov	r9, r0 | ||||||
| 	bl	board_init_f_init_reserve | 	bl	board_init_f_init_reserve | ||||||
|  |  | ||||||
|  | #if defined(CONFIG_DEBUG_UART) && CONFIG_IS_ENABLED(SERIAL) | ||||||
|  | 	bl	debug_uart_init | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_EARLY_BSS) | #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_EARLY_BSS) | ||||||
| 	CLEAR_BSS | 	CLEAR_BSS | ||||||
| #endif | #endif | ||||||
|   | |||||||
| @@ -91,6 +91,10 @@ ENTRY(_main) | |||||||
| 	mov	x18, x0 | 	mov	x18, x0 | ||||||
| 	bl	board_init_f_init_reserve | 	bl	board_init_f_init_reserve | ||||||
|  |  | ||||||
|  | #if defined(CONFIG_DEBUG_UART) && CONFIG_IS_ENABLED(SERIAL) | ||||||
|  | 	bl	debug_uart_init | ||||||
|  | #endif | ||||||
|  |  | ||||||
| 	mov	x0, #0 | 	mov	x0, #0 | ||||||
| 	bl	board_init_f | 	bl	board_init_f | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user