arm/ti/am335x: use new arm bootblock infrastructure
commit 8b685398 (ARM: Overhaul the ARM Makefile.)
changes config flags for cpu and mainboard bootblock initialization.
Tested on beaglebone black.
Change-Id: I70cbe3abad8443c5dc71c8ba76a35973a5284477
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: http://review.coreboot.org/7189
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
			
			
This commit is contained in:
		
				
					committed by
					
						
						Stefan Reinauer
					
				
			
			
				
	
			
			
			
						parent
						
							450335918c
						
					
				
				
					commit
					8c53b751f5
				
			@@ -5,19 +5,12 @@ config CPU_TI_AM335X
 | 
				
			|||||||
	select HAVE_MONOTONIC_TIMER
 | 
						select HAVE_MONOTONIC_TIMER
 | 
				
			||||||
	select HAVE_UART_SPECIAL
 | 
						select HAVE_UART_SPECIAL
 | 
				
			||||||
	select BOOTBLOCK_CONSOLE
 | 
						select BOOTBLOCK_CONSOLE
 | 
				
			||||||
 | 
						select CPU_HAS_BOOTBLOCK_INIT
 | 
				
			||||||
	bool
 | 
						bool
 | 
				
			||||||
	default n
 | 
						default n
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if CPU_TI_AM335X
 | 
					if CPU_TI_AM335X
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config BOOTBLOCK_CPU_INIT
 | 
					 | 
				
			||||||
	string
 | 
					 | 
				
			||||||
	default "cpu/ti/am335x/bootblock.c"
 | 
					 | 
				
			||||||
	help
 | 
					 | 
				
			||||||
	  CPU/SoC-specific bootblock code. This is useful if the
 | 
					 | 
				
			||||||
	  bootblock must load microcode or copy data from ROM before
 | 
					 | 
				
			||||||
	  searching for the bootblock.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
config BOOTBLOCK_BASE
 | 
					config BOOTBLOCK_BASE
 | 
				
			||||||
	hex
 | 
						hex
 | 
				
			||||||
	default 0x402f0400
 | 
						default 0x402f0400
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
bootblock-y	+= dmtimer.c
 | 
					bootblock-y	+= bootblock.c
 | 
				
			||||||
bootblock-y	+= bootblock_media.c
 | 
					bootblock-y	+= bootblock_media.c
 | 
				
			||||||
 | 
					bootblock-y	+= dmtimer.c
 | 
				
			||||||
bootblock-y	+= pinmux.c
 | 
					bootblock-y	+= pinmux.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
romstage-y	+= nand.c
 | 
					romstage-y	+= nand.c
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,8 @@
 | 
				
			|||||||
#include <types.h>
 | 
					#include <types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <arch/cache.h>
 | 
					#include <arch/cache.h>
 | 
				
			||||||
 | 
					#include <bootblock_common.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void bootblock_cpu_init(void);
 | 
					 | 
				
			||||||
void bootblock_cpu_init(void)
 | 
					void bootblock_cpu_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	uint32_t sctlr;
 | 
						uint32_t sctlr;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user