public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Time Base register definitions inccorrect in asm-ppc/processor.h
@ 2005-11-05 17:43 Mike Wellington
  2005-11-07  9:00 ` Stefan Roese
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Wellington @ 2005-11-05 17:43 UTC (permalink / raw)
  To: u-boot

In include/asm-ppc/processor.h the definitions for the
Time Base Upper and Lower registers are incorrect for the
PPC440GX.


#define SPRN_TBRL	0x10D	/* Time Base Read Lower Register */
#define SPRN_TBRU	0x10C	/* Time Base Read Upper Register */
#define SPRN_TBWL	0x11D	/* Time Base Write Lower Register */
#define SPRN_TBWU	0x11C	/* Time Base Write Upper Register */

i fixed this in my own code by adding the following ifdef:

#ifdef CONFIG_440GX
#define	SPRN_TBRL	0x10C	/* Time Base Read Lower Register */
#define	SPRN_TBRU	0x10D	/* Time Base Read Upper Register */
#define	SPRN_TBWL	0x11C	/* Time Base Write Lower Register */
#define	SPRN_TBWU	0x11D	/* Time Base Write Upper Register */
#else
#define	SPRN_TBRL	0x10D	/* Time Base Read Lower Register */
#define	SPRN_TBRU	0x10C	/* Time Base Read Upper Register */
#define	SPRN_TBWL	0x11D	/* Time Base Write Lower Register */
#define	SPRN_TBWU	0x11C	/* Time Base Write Upper Register */
#endif




-mike wellington

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-25  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-05 17:43 [U-Boot-Users] Time Base register definitions inccorrect in asm-ppc/processor.h Mike Wellington
2005-11-07  9:00 ` Stefan Roese
2005-11-07 14:43   ` Dan Malek
2005-11-25  3:22     ` Mike Wellington
2005-11-25  8:16       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox