diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-03 20:15:14 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-03 20:15:14 +1000 |
commit | 362b07685bc7d3c529db12370e550543a6e9c4ae (patch) | |
tree | 000fd5c8c4228dd2b00d154c73188935f1b3886e /cf-code | |
parent | fdff87f432c8be208323bd3ab8826b6468e15eda (diff) | |
download | cf-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')
-rw-r--r-- | cf-code/cf-fsi-fw.S | 5 | ||||
-rw-r--r-- | cf-code/cf-fsi-romulus.h | 1 | ||||
-rw-r--r-- | cf-code/cf-fsi-witherspoon.h | 2 |
3 files changed, 8 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 */ diff --git a/cf-code/cf-fsi-romulus.h b/cf-code/cf-fsi-romulus.h index 3edcb54..fc534b4 100644 --- a/cf-code/cf-fsi-romulus.h +++ b/cf-code/cf-fsi-romulus.h @@ -5,3 +5,4 @@ #define TRANS_GPIO_REG 0x080 #define TRANS_GPIO_BIT 10 +#define SYS_SIG 0x526d /* 'Rm' */ diff --git a/cf-code/cf-fsi-witherspoon.h b/cf-code/cf-fsi-witherspoon.h index aa435fb..c5b4084 100644 --- a/cf-code/cf-fsi-witherspoon.h +++ b/cf-code/cf-fsi-witherspoon.h @@ -4,3 +4,5 @@ #define DATA_GPIO_BIT 0 #define TRANS_GPIO_REG 0x080 #define TRANS_GPIO_BIT 10 + +#define SYS_SIG 0x5773 /* 'Ws' */ |