Commit 98b3125d authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

felboot: Use sunxi_board_init directly from u-boot

as expected there was no problem to use sunxi_board_init directly
from u-boot. Failure on A13 was a timing issue in the host side
script (need to wait for DRAM init to finish before trying next
fel operation)
parent 3ba3dde4
......@@ -25,7 +25,7 @@ UBOOT_OBJS= \
spl/drivers/power/axp209.o \
spl/drivers/i2c/libi2c.o \
spl/common/memsize.o \
spl/board/sunxi/dram_$(BOARD).o
$(addprefix spl/board/sunxi/,dram_$(BOARD).o board.o)
.c.o:
$(CROSS_COMPILE)$(CC) -c $(CFLAGS) $< -o $@
......
......@@ -63,44 +63,6 @@ void status_led_set(int led, int state)
return;
}
void sunxi_board_init(void)
{
int power_failed = 0;
int ramsize;
timer_init();
printf("DRAM:");
ramsize = sunxi_dram_init();
if (!ramsize) {
printf(" ?");
ramsize = sunxi_dram_init();
}
if (!ramsize) {
printf(" ?");
ramsize = sunxi_dram_init();
}
printf(" %dMB\n", ramsize>>20);
if (!ramsize)
hang();
#ifdef CONFIG_AXP209_POWER
power_failed |= axp209_init();
power_failed |= axp209_set_dcdc2(1400);
power_failed |= axp209_set_dcdc3(1250);
power_failed |= axp209_set_ldo2(3000);
power_failed |= axp209_set_ldo3(2800);
power_failed |= axp209_set_ldo4(2800);
#endif
/*
* Only clock up the CPU to full speed if we are reasonably
* assured it's being powered with suitable core voltage
*/
if (!power_failed)
clock_set_pll1(1008000000);
}
#ifndef NO_PRINTF
void putchar(int ch)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment