]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/common.h
dm: Add a new CPU init function which can use driver model
[karo-tx-uboot.git] / include / common.h
index 10f55e7a8864e10d7ef1dd9b2ea474421253dbf7..ae5351081f4183db10f49204394b697e8607a161 100644 (file)
@@ -252,6 +252,17 @@ static inline int print_cpuinfo(void)
 int update_flash_size(int flash_size);
 int arch_early_init_r(void);
 
+/**
+ * arch_cpu_init_dm() - init CPU after driver model is available
+ *
+ * This is called immediately after driver model is available before
+ * relocation. This is similar to arch_cpu_init() but is able to reference
+ * devices
+ *
+ * @return 0 if OK, -ve on error
+ */
+int arch_cpu_init_dm(void);
+
 /**
  * Reserve all necessary stacks
  *