From: Duje Mihanović Date: Wed, 18 Dec 2024 15:36:46 +0000 (+0100) Subject: more narrowing down, stuck at serial_init now X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B?a=commitdiff_plain;h=c55794db21d112955fe08ae9d24a1102fccaec95;p=u-boot.git more narrowing down, stuck at serial_init now --- diff --git a/board/samsung/coreprimevelte/coreprimevelte.c b/board/samsung/coreprimevelte/coreprimevelte.c index 1970afffac..7c970e606c 100644 --- a/board/samsung/coreprimevelte/coreprimevelte.c +++ b/board/samsung/coreprimevelte/coreprimevelte.c @@ -2,14 +2,9 @@ #include #include -void lowlevel_init(void) -{ - for (int *i = (int *) 0x17200000; i < 0x17177000 + 0x177000; i++) - *i = 0xffff0000; -} - int board_init(void) { + debug_uart_init(); printascii("Reached board_init()\n"); u32 tmp = readl(0xd4015064); diff --git a/common/board_f.c b/common/board_f.c index 3abc15f9cd..1245467716 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -877,6 +877,22 @@ static int initf_upl(void) return 0; } +int green(void) +{ + for (int *i = (int *) 0x17200000; i < 0x17177000 + 0x177000; i++) + *i = 0xff00ff00; + + return 0; +} + +int blue(void) +{ + for (int *i = (int *) 0x17200000; i < 0x17177000 + 0x177000; i++) + *i = 0xff0000ff; + + return 0; +} + static const init_fnc_t init_sequence_f[] = { setup_mon_len, #ifdef CONFIG_OF_CONTROL @@ -914,7 +930,9 @@ static const init_fnc_t init_sequence_f[] = { #endif env_init, /* initialize environment */ init_baud_rate, /* initialze baudrate settings */ + green, serial_init, /* serial communications setup */ + blue, console_init_f, /* stage 1 init of console */ display_options, /* say that we are here */ display_text_info, /* show debugging info if required */ @@ -1026,9 +1044,6 @@ 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/configs/coreprimevelte_defconfig b/configs/coreprimevelte_defconfig index 62ea135868..798f459fa4 100644 --- a/configs/coreprimevelte_defconfig +++ b/configs/coreprimevelte_defconfig @@ -1,9 +1,10 @@ CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_DRIVER_GICV2=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_MMP=y -CONFIG_TEXT_BASE=0x1010000 +CONFIG_TEXT_BASE=0x1000000 CONFIG_NR_DRAM_BANKS=2 CONFIG_DEFAULT_DEVICE_TREE="pxa1908-samsung-coreprimevelte" CONFIG_TARGET_COREPRIMEVELTE=y @@ -20,10 +21,12 @@ CONFIG_NO_NET=y CONFIG_CLK=y CONFIG_CPU=y CONFIG_CPU_ARMV8=y +CONFIG_SERIAL_SEARCH_ALL=y CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_SYS_NS16550=y +CONFIG_NS16550_DYNAMIC=y CONFIG_SYS_NS16550_MEM32=y CONFIG_MBEDTLS_LIB=y # CONFIG_TOOLS_MKEFICAPSULE is not set