summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 12:56:49 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 12:56:49 +1000
commitee2f68f658c1aadb1812d8a54aa24f19870ff4b0 (patch)
tree4bd91aa1b2463ac689462fe21680e94ec8595497
parent0ef53cddd198853808bc2fe1ee2fe90142b2881d (diff)
downloadcf-fsi-ee2f68f658c1aadb1812d8a54aa24f19870ff4b0.tar.gz
cf-fsi-ee2f68f658c1aadb1812d8a54aa24f19870ff4b0.zip
Export CF boot time config
For diagnostics purposes Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--cf-code/cf-fsi-fw.S4
-rw-r--r--cf-fsi-fw.h4
2 files changed, 8 insertions, 0 deletions
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)
*/
OpenPOWER on IntegriCloud