summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cf-code/cf-fsi-fw.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 8beeac9..cbf381c 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -144,7 +144,10 @@
bra 99f
98: bclr.l #DATA_GPIO_BIT,%DDAT
trace #TR_CLKOBIT0
-99: move.l %DDAT,%a4@(0)
+99:
+#if DATA_GPIO_REG != CLOCK_GPIO_REG
+ move.l %DDAT,%a4@(0)
+#endif
clock_toggle
.endm
@@ -153,7 +156,9 @@
trace #TR_CLKZ
trace \reg
bset.l #DATA_GPIO_BIT,%DDAT
+#if DATA_GPIO_REG != CLOCK_GPIO_REG
move.l %DDAT,%a4@(0)
+#endif
99: clock_toggle
subq.l #1,\reg
bne 99b
OpenPOWER on IntegriCloud