summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--common/main.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/README b/README
index c03731c032..1efc6a730c 100644
--- a/README
+++ b/README
@@ -60,3 +60,8 @@ Build Options
enabled an ASSERT() which fails will produce message in the form:
ASSERTION FAILURE '<expr>' in function() at file:line
+
+- CONFIG_CONFIGURE_BOARD_LATE
+
+ Define this to call configure_board_late() after initial system init
+ is complete (and after GPIOs are set up).
diff --git a/common/main.c b/common/main.c
index 22906cb7be..b38b862f91 100644
--- a/common/main.c
+++ b/common/main.c
@@ -37,6 +37,9 @@ int main(void)
jtag_pre_init();
gpio_pre_init();
+#ifdef CONFIG_CONFIGURE_BOARD_LATE
+ configure_board_late();
+#endif
/*
* Initialize interrupts, but don't enable any of them. Note that
* task scheduling is not enabled until task_start() below.