From 2a5e7f567e562b2ea21a55ea4e1b529e2db0b88c Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 13 Jun 2018 17:09:37 +1000 Subject: Add dummy extra dummy read machine option It seems to be necessary on the AST2400 Signed-off-by: Benjamin Herrenschmidt --- cf-code/cf-fsi-fw.S | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.1