
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 bigeasy@linutronix.de
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".