summaryrefslogtreecommitdiffstats
path: root/cf-code
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-13 17:09:37 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-13 17:09:37 +1000
commit2a5e7f567e562b2ea21a55ea4e1b529e2db0b88c (patch)
tree0c326bc3815791af91e15a58dd898e440943b71b /cf-code
parenteb0753b070242499f74c3ce1b2930d6285e941a6 (diff)
downloadcf-fsi-2a5e7f567e562b2ea21a55ea4e1b529e2db0b88c.tar.gz
cf-fsi-2a5e7f567e562b2ea21a55ea4e1b529e2db0b88c.zip
Add dummy extra dummy read machine option
It seems to be necessary on the AST2400 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code')
-rw-r--r--cf-code/cf-fsi-fw.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 2bb1712..f76627e 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -124,6 +124,9 @@
.macro clock_in_bit reg:req tmp:req tmp2:req
bclr.l %d5,%DCLK /* clock low */
move.l %DCLK,%a5@(0)
+#ifdef EXTRA_DUMMY_READ
+ move.l %a4@(0),\tmp /* dummy read */
+#endif
move.l %a4@(0),\tmp /* dummy read */
move.l %a4@(0),\tmp /* actual read */
bset.l %d5,%DCLK /* clock high */
OpenPOWER on IntegriCloud