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 <[EMAIL PROTECTED]>
> ---
>  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".


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to