From: Duje Mihanović Date: Tue, 17 Dec 2024 21:28:59 +0000 (+0100) Subject: update colors a bit, stuck on board_init_f() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ddd06b86d37afe0954b04ad0b02a8db8c3959f86;p=u-boot.git update colors a bit, stuck on board_init_f() --- diff --git a/board/samsung/coreprimevelte/coreprimevelte.c b/board/samsung/coreprimevelte/coreprimevelte.c index d7ed86aee3..1970afffac 100644 --- a/board/samsung/coreprimevelte/coreprimevelte.c +++ b/board/samsung/coreprimevelte/coreprimevelte.c @@ -4,10 +4,8 @@ void lowlevel_init(void) { - debug_uart_init(); - printascii(__func__); - for (int *i = (int *) 0x17200000; i < 0x17200000 + 0x177000; i++) - *i = 0x77777777; + for (int *i = (int *) 0x17200000; i < 0x17177000 + 0x177000; i++) + *i = 0xffff0000; } int board_init(void) diff --git a/common/board_f.c b/common/board_f.c index 939697d13d..3abc15f9cd 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -1026,6 +1026,9 @@ void board_init_f(ulong boot_flags) { struct board_f boardf; + for (int *i = (int *) 0x17200000; i < 0x17177000 + 0x177000; i++) + *i = 0xff00ff00; + gd->flags = boot_flags; gd->flags &= ~GD_FLG_HAVE_CONSOLE; gd->boardf = &boardf; diff --git a/common/board_r.c b/common/board_r.c index 88dc756b2a..864edbac4a 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -783,6 +783,9 @@ void board_init_r(gd_t *new_gd, ulong dest_addr) */ gd->flags &= ~(GD_FLG_SERIAL_READY | GD_FLG_LOG_READY); + for (int *i = (int *) 0x17200000; i < 0x171770000 + 0x177000; i++) + *i = 0xffffffff; + /* * Set up the new global data pointer. So far only x86 does this * here. diff --git a/configs/coreprimevelte_defconfig b/configs/coreprimevelte_defconfig index 524450b65b..62ea135868 100644 --- a/configs/coreprimevelte_defconfig +++ b/configs/coreprimevelte_defconfig @@ -7,7 +7,7 @@ CONFIG_TEXT_BASE=0x1010000 CONFIG_NR_DRAM_BANKS=2 CONFIG_DEFAULT_DEVICE_TREE="pxa1908-samsung-coreprimevelte" CONFIG_TARGET_COREPRIMEVELTE=y -CONFIG_SYS_LOAD_ADDR=0x1010000 +CONFIG_SYS_LOAD_ADDR=0x1000000 CONFIG_DEBUG_UART_BASE=0xd4017000 CONFIG_DEBUG_UART_CLOCK=14745600 CONFIG_ARMV8_PSCI=y @@ -22,6 +22,7 @@ CONFIG_CPU=y CONFIG_CPU_ARMV8=y CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SYS_NS16550=y CONFIG_SYS_NS16550_MEM32=y CONFIG_MBEDTLS_LIB=y