From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 27 Sep 2007 07:31:00 +0200 Subject: [U-Boot-Users] [PATCH] 85xx io out functions need sync after write. In-Reply-To: <11908425541324-git-send-email-Ed.Swarthout@freescale.com> References: <11908425541324-git-send-email-Ed.Swarthout@freescale.com> Message-ID: <200709270731.01164.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 26 September 2007, Ed Swarthout wrote: > This fixes the mc146818 rtc_read/write functions for 85xx. > > Signed-off-by: Ed Swarthout > --- > > cpu/mpc85xx/start.S | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/cpu/mpc85xx/start.S b/cpu/mpc85xx/start.S > index 2c98c2a..5d65190 100644 > --- a/cpu/mpc85xx/start.S > +++ b/cpu/mpc85xx/start.S > @@ -701,6 +701,7 @@ in8: > .globl out8 > out8: > stb r4,0x0000(r3) > + sync Another way would be to use the out_be32() and friends functions defined in asm-ppc/io.h. They already have the sync/barrier included and are recommened for accessing peripheral devices. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================