]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lowlevel_init -> timer_init
authorDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 25 Dec 2024 16:57:00 +0000 (17:57 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 25 Dec 2024 16:57:00 +0000 (17:57 +0100)
board/samsung/coreprimevelte/coreprimevelte.c

index db66cf21a10d4c94bef9ad5f719583871f78e6bd..7a8fe71effcc865b6e3ab78db01f8bc74a4b70ad 100644 (file)
@@ -2,18 +2,15 @@
 #include <fdtdec.h>
 #include <asm/io.h>
 
-void lowlevel_init(void)
+int timer_init(void)
 {
-#ifdef CONFIG_DEBUG_UART
-       printascii("Reached lowlevel_init()\n");
-#endif /* CONFIG_DEBUG_UART */
-
        u32 tmp = readl(0xd4015064);
        if ((tmp >> 16) != 0x319)
-               return;
+               return -1;
 
        writel(tmp | 1, 0xd4015064);
        writel(3, 0xd4101000);
+       return 0;
 }
 
 int board_init(void)