summaryrefslogtreecommitdiff
path: root/include/api.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 10:43:16 +0200
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:12 -0500
commitce41e735231f350722221b10bb81408f88235d1d (patch)
tree10212ab9eacb8cd42bc97e0213de412999d2065c /include/api.h
parent0154858039fd6d184528ed6a294153bd7f4cd3e0 (diff)
common: board_r: Drop initr_api wrapper
Add a return value to api_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/api.h')
-rw-r--r--include/api.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/api.h b/include/api.h
index 84d81dc817..83412a7c87 100644
--- a/include/api.h
+++ b/include/api.h
@@ -7,6 +7,14 @@
#ifndef __API_H
#define __API_H
-void api_init(void);
+/**
+ * api_init() - Initialize API for external applications
+ *
+ * Initialize API for external (standalone) applications running on top of
+ * U-Boot. It is called during the generic post-relocation init sequence.
+ *
+ * Return: 0 if OK
+ */
+int api_init(void);
#endif