]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
more narrowing down, stuck at serial_init now
authorDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 18 Dec 2024 15:36:46 +0000 (16:36 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 18 Dec 2024 15:36:46 +0000 (16:36 +0100)
board/samsung/coreprimevelte/coreprimevelte.c
common/board_f.c
configs/coreprimevelte_defconfig

index 1970afffac8a5ec35ef0f11f8bb808c315bbac91..7c970e606c4b510a94932221bd811d14ffc53fc1 100644 (file)
@@ -2,14 +2,9 @@
 #include <fdtdec.h>
 #include <asm/io.h>
 
-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);
index 3abc15f9cdf50aeb35510daab92d884564cf2834..12454677166f7e9730c5dfb82ab89eda9cab4c2e 100644 (file)
@@ -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;
index 62ea1358685505d2601fc196a572884418248d3a..798f459fa46f054fcde74efe2803ffd1e7aca0b2 100644 (file)
@@ -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