From ee2f68f658c1aadb1812d8a54aa24f19870ff4b0 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 12 Jun 2018 12:56:49 +1000 Subject: Export CF boot time config For diagnostics purposes Signed-off-by: Benjamin Herrenschmidt --- cf-code/cf-fsi-fw.S | 4 ++++ cf-fsi-fw.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S index 7bcc8c8..9ac91ee 100644 --- a/cf-code/cf-fsi-fw.S +++ b/cf-code/cf-fsi-fw.S @@ -198,6 +198,10 @@ _start: add.l #DATA_GPIO_VREG,%a4 movea.l #CVIC_BASE,%a2 + /* Store some diagnostic stuff */ + move.l %d0,%a1@(CF_RESET_D0) + move.l %d1,%a1@(CF_RESET_D1) + /* Cache clock bit number */ moveq.l #CLOCK_GPIO_BIT,%d5 diff --git a/cf-fsi-fw.h b/cf-fsi-fw.h index 5f6cffd..3df60e6 100644 --- a/cf-fsi-fw.h +++ b/cf-fsi-fw.h @@ -110,6 +110,10 @@ #define ARB_ARM_REQ 0x01 #define ARB_ARM_ACK 0x02 +/* Misc2 */ +#define CF_RESET_D0 0x50 +#define CF_RESET_D1 0x54 + /* * SRAM layout: Trace buffer (debug builds only) */ -- cgit v1.2.1