From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Tue, 15 Jul 2008 13:00:12 +0200 Subject: [U-Boot-Users] [PATCH] mpc85xx: make the MxMR register in upmconfig as a parameter In-Reply-To: <20080714105432.GA18158@www.tglx.de> References: <20080714105432.GA18158@www.tglx.de> Message-ID: <487C833C.3090603@grandegger.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Sebastian Siewior wrote: > The default value for the MxMR register is not always the right one. > This patch adds the value of MxMR register as an additional > parameter (plus a few defines instead of hex coded values). > > Signed-off-by: Sebastian Siewior > --- > cpu/mpc85xx/cpu.c | 17 +++++++++++------ > include/common.h | 4 ++++ > 2 files changed, 15 insertions(+), 6 deletions(-) > > diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c > index 2373b4a..081e804 100644 > --- a/cpu/mpc85xx/cpu.c > +++ b/cpu/mpc85xx/cpu.c > @@ -314,16 +314,21 @@ int dma_xfer(void *dest, uint count, void *src) { > return dma_check(); > } > #endif > + > +#define MXMR_OP_NORMAL (0x00000000) > +#define MXMR_OP_WRITE (0x10000000) > +#define MXMR_OP_READ (0x20000000) > +#define MXMR_OP_RUN (0x30000000) Please use the the corresponding definitions from "include/asm-ppc/fsl_lbc.h".