Skip to content

85xx/86xx dma updates

Peter Tyser u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11fsl: Create common fsl_dma.h for 85xx and 86xx cpuscpu/mpc85xx/cpu.c cpu/mpc86xx/cpu.c include/asm-ppc/fsl_dma.h +2 more+89 -1721 reply
2/1185xx, 86xx: Sync up DMA codecpu/mpc85xx/cpu.c cpu/mpc86xx/cpu.c include/asm-ppc/immap_86xx.h+14 -101 reply
3/1185xx, 86xx: Break out DMA code to a common filecpu/mpc85xx/cpu.c cpu/mpc86xx/cpu.c drivers/dma/Makefile +3 more+95 -1021 reply
4/11fsl_dma: Add bitfield definitions for common registersdrivers/dma/fsl_dma.c include/asm-ppc/fsl_dma.h+52 -60 replies
5/11fsl_dma: Update to use proper I/O accessor functionsdrivers/dma/fsl_dma.c+18 -140 replies
6/11fsl_dma: Add support for arbitrarily large transfersdrivers/dma/fsl_dma.c+30 -120 replies
7/11fsl_dma: Fix Channel Start bug in dma_check()drivers/dma/fsl_dma.c+1 -10 replies
8/118xxx: Rename dma_xfer() to dmacpy()board/mpc8540eval/mpc8540eval.c board/sbc8560/sbc8560.c cpu/mpc83xx/cpu.c +3 more+54 -541 reply
8/118xxx: Rename dma_xfer() to dmacpy()+0 -00 replies
9/11fsl_dma: Move dma function prototypes to common header filecpu/mpc85xx/ddr-gen1.c include/asm-ppc/fsl_dma.h+5 -41 reply
9/11fsl_dma: Move dma function prototypes to common header file+0 -01 reply
9/11fsl_dma: Move dma function prototypes to common header file+0 -00 replies
10/1185xx, 86xx: Move dma_init() call to common codeboard/mpc8540eval/mpc8540eval.c board/sbc8560/sbc8560.c cpu/mpc85xx/cpu_init.c +2 more+8 -50 replies
11/11fsl_dma: Break out common memory initialization functionboard/mpc8540eval/mpc8540eval.c board/sbc8560/sbc8560.c cpu/mpc85xx/ddr-gen1.c +2 more+38 -900 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/11] 85xx/86xx dma updates

This patch series attempts to clean up the DMA implementation for the 85xx and 86xx architectures. The changes include:
- consolidate 85xx and 86xx structures and code
- add defines for bitfields
- use proper IO accessors
- add support for arbitrarily large transfer sizes
- rename dma_xfer() to dmacpy() and make dmacpy's prototype similar to memcpy()

The patches are based on the mainline "next" branch.

I've tested the code on MPC8572 and MPC8640-based boards.

I'm not initimately familar with the 83xx platform, but at a glance it looked like the fsl_dma driver could be extended to support it with some ifdeffery.

Peter Tyser (11):
fsl: Create common fsl_dma.h for 85xx and 86xx cpus 85xx, 86xx: Sync up DMA code
85xx, 86xx: Break out DMA code to a common file
fsl_dma: Add bitfield definitions for common registers
fsl_dma: Update to use proper I/O accessor functions
fsl_dma: Add support for arbitrarily large transfers
fsl_dma: Fix Channel Start bug in dma_check() 8xxx: Rename dma_xfer() dmacpy()
fsl_dma: Move dma function prototypes to common header file 85xx, 86xx: Move dma_init() call to common code
fsl_dma: Break out common memory initialization function

 board/mpc8540eval/mpc8540eval.c |   35 +---------
 board/sbc8560/sbc8560.c         |   33 +---------
 cpu/mpc83xx/cpu.c               |    4 +-
 cpu/mpc83xx/spd_sdram.c         |   24 +++---
 cpu/mpc85xx/cpu.c               |   44 ------------
 cpu/mpc85xx/cpu_init.c          |    4 +-
 cpu/mpc85xx/ddr-gen1.c          |   33 +---------
 cpu/mpc86xx/cpu.c               |   50 -------------
 cpu/mpc86xx/cpu_init.c          |    3 +
 drivers/dma/Makefile            |    1 +
 drivers/dma/fsl_dma.c           |  146 +++++++++++++++++++++++++++++++++++++++
 include/asm-ppc/fsl_dma.h       |  105 ++++++++++++++++++++++++++++
 include/asm-ppc/immap_85xx.h    |   76 +-------------------
 include/asm-ppc/immap_86xx.h    |   78 ++-------------------
 include/configs/PM854.h         |    1 +
 include/configs/PM856.h         |    1 +
 16 files changed, 286 insertions(+), 352 deletions(-)
 create mode 100644 drivers/dma/fsl_dma.c
 create mode 100644 include/asm-ppc/fsl_dma.h