riscv: Add SBI v0.2 extension definitions
[oweals/u-boot.git] / include / init.h
index f6105de66609dac6344de071513d8f8b4eea13ed..2a33a3fd1e41c54f35b973e9b0a0974b274198ce 100644 (file)
@@ -16,6 +16,13 @@ struct global_data;
 
 #ifndef __ASSEMBLY__           /* put C only stuff in this section */
 
+/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */
+#ifdef CONFIG_EFI_STUB
+#define ll_boot_init() false
+#else
+#define ll_boot_init() true
+#endif
+
 /*
  * Function Prototypes
  */
@@ -99,6 +106,11 @@ int dram_init(void);
  */
 int dram_init_banksize(void);
 
+long get_ram_size(long *base, long size);
+phys_size_t get_effective_memsize(void);
+
+int testdram(void);
+
 /**
  * arch_reserve_stacks() - Reserve all necessary stacks
  *