summaryrefslogtreecommitdiffstats
path: root/cf-code/cf-fsi-fw.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 23:29:54 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 23:29:54 +1000
commitde2c276d1329777b95f7a1d6dec6a0f7b111a991 (patch)
treeaf3bbc87feeaea3cab559dae0c1e776c2bbc5515 /cf-code/cf-fsi-fw.S
parentb30e78bd005b6f08e15ea75517eb2e2b293c7b4a (diff)
downloadcf-fsi-de2c276d1329777b95f7a1d6dec6a0f7b111a991.tar.gz
cf-fsi-de2c276d1329777b95f7a1d6dec6a0f7b111a991.zip
Cleanup starting up, add trace flags to API version
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code/cf-fsi-fw.S')
-rw-r--r--cf-code/cf-fsi-fw.S14
1 files changed, 11 insertions, 3 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 533cf39..abfea09 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -195,13 +195,21 @@ _start:
/* Configure GPIOs to output */
bsr config_gpio_out
+ /* Clear arbitration register */
+ move.b #0,%a1@(ARB_REG)
+
/* Populate version & signature */
move.w #SYS_SIG,%a1@(SYS_SIG_REG)
move.b #FW_VERSION,%a1@(FW_VERS_REG)
- move.b #API_VERSION,%a1@(API_VERS_REG)
- /* Clear arbitration register */
- move.b #0,%a1@(ARB_REG)
+ /* This must happen last as it's the signal to the host
+ * that we are ready
+ */
+#ifdef ENABLE_TRACE
+ move.b #(API_VERSION + API_VERSION_TRACE_EN),%a1@(API_VERS_REG)
+#else
+ move.b #API_VERSION,%a1@(API_VERS_REG)
+#endif
/*
* Main command loop
OpenPOWER on IntegriCloud