summaryrefslogtreecommitdiffstats
path: root/cf-code/cf-fsi-fw.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 20:15:14 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 20:15:14 +1000
commit362b07685bc7d3c529db12370e550543a6e9c4ae (patch)
tree000fd5c8c4228dd2b00d154c73188935f1b3886e /cf-code/cf-fsi-fw.S
parentfdff87f432c8be208323bd3ab8826b6468e15eda (diff)
downloadcf-fsi-362b07685bc7d3c529db12370e550543a6e9c4ae.tar.gz
cf-fsi-362b07685bc7d3c529db12370e550543a6e9c4ae.zip
Add API version, FW version and system signature registers
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.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 67368f9..a68ce68 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -195,6 +195,11 @@ _start:
/* Configure GPIOs to output */
bsr config_gpio_out
+ /* 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)
+
/*
* Main command loop
*/
OpenPOWER on IntegriCloud