cubieboard: use new arm bootblock infrastructure
commit 8b685398
(ARM: Overhaul the ARM Makefile.)
change config flags for cpu and mainboard bootblock initialization.
Tested on a20/cubieboard2.
Change-Id: I2a1019c2881bc7aada15322841204992d0106453
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: http://review.coreboot.org/7188
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
9b79731dd4
commit
890073915f
|
@ -5,6 +5,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
select CPU_ALLWINNER_A10
|
select CPU_ALLWINNER_A10
|
||||||
select BOARD_ROMSIZE_KB_4096
|
select BOARD_ROMSIZE_KB_4096
|
||||||
select DRIVER_XPOWERS_AXP209
|
select DRIVER_XPOWERS_AXP209
|
||||||
|
select MAINBOARD_HAS_BOOTBLOCK_INIT
|
||||||
|
|
||||||
config MAINBOARD_DIR
|
config MAINBOARD_DIR
|
||||||
string
|
string
|
||||||
|
@ -18,10 +19,6 @@ config MAX_CPUS
|
||||||
int
|
int
|
||||||
default 1
|
default 1
|
||||||
|
|
||||||
config BOOTBLOCK_MAINBOARD_INIT
|
|
||||||
string
|
|
||||||
default "mainboard/cubietech/cubieboard/bootblock.c"
|
|
||||||
|
|
||||||
config DRAM_SIZE_MB
|
config DRAM_SIZE_MB
|
||||||
int
|
int
|
||||||
default 1024
|
default 1024
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
bootblock-y += bootblock.c
|
||||||
romstage-y += romstage.c
|
romstage-y += romstage.c
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
|
#include <bootblock_common.h>
|
||||||
#include <console/uart.h>
|
#include <console/uart.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
@ -126,7 +127,6 @@ static void cubieboard_raminit(void)
|
||||||
////ram_check((u32)test_base, (u32)test_base + 0x1000);
|
////ram_check((u32)test_base, (u32)test_base + 0x1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bootblock_mainboard_init(void);
|
|
||||||
void bootblock_mainboard_init(void)
|
void bootblock_mainboard_init(void)
|
||||||
{
|
{
|
||||||
/* A10 Timer init uses the 24MHz clock, not PLLs, so we can init it very
|
/* A10 Timer init uses the 24MHz clock, not PLLs, so we can init it very
|
||||||
|
|
Loading…
Reference in New Issue