diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-03 18:02:09 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-03 18:06:52 +1000 |
commit | 02dff37bfab8390393dd22371549cdfd9c93c546 (patch) | |
tree | 817d7779b203ab119eb0eb0404138500ab35a52d | |
parent | ba79a6a620e1a3b8afcb00fb5c8292a49f1c86e2 (diff) | |
download | cf-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>
-rw-r--r-- | cf-code/cf-fsi-fw.S | 7 |
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 |