From 362b07685bc7d3c529db12370e550543a6e9c4ae Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 3 Jun 2018 20:15:14 +1000 Subject: Add API version, FW version and system signature registers Signed-off-by: Benjamin Herrenschmidt --- cf-code/cf-fsi-fw.S | 5 +++++ cf-code/cf-fsi-romulus.h | 1 + cf-code/cf-fsi-witherspoon.h | 2 ++ 3 files changed, 8 insertions(+) (limited to 'cf-code') 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' */ -- cgit v1.2.1