summaryrefslogtreecommitdiffstats
path: root/cf-code
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 18:02:09 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 18:06:52 +1000
commit02dff37bfab8390393dd22371549cdfd9c93c546 (patch)
tree817d7779b203ab119eb0eb0404138500ab35a52d /cf-code
parentba79a6a620e1a3b8afcb00fb5c8292a49f1c86e2 (diff)
downloadcf-fsi-02dff37bfab8390393dd22371549cdfd9c93c546.tar.gz
cf-fsi-02dff37bfab8390393dd22371549cdfd9c93c546.zip
Don't write GPIO data right before clocking if using same reg
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code')
-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