Skip to content

RFC OMAP: DMA: HWMOD and convert into platform driver

Manjunatha GK linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10OMAP2420: DMA: HWMOD: Add hwmod data structuresarch/arm/mach-omap2/omap_hwmod_2420_data.c+93 -20 replies
2/10OMAP2430: DMA: HWMOD: Add hwmod data structuresarch/arm/mach-omap2/omap_hwmod_2430_data.c+92 -10 replies
3/10OMAP3: DMA: HWMOD: Add hwmod data structuresarch/arm/mach-omap2/omap_hwmod_3xxx_data.c+90 -00 replies
4/10OMAP4: DMA: HWMOD: update OMAP4 data basearch/arm/mach-omap2/omap_hwmod_44xx_data.c+16 -50 replies
5/10OMAP1: DMA: Introduce DMA driver as platform driverarch/arm/mach-omap1/dma.c arch/arm/mach-omap1/include/mach/dma.h arch/arm/plat-omap/include/plat/dma.h+469 -00 replies
6/10OMAP2/3/4: DMA: HWMOD: Device registrationarch/arm/mach-omap2/dma.c arch/arm/mach-omap2/include/mach/dma.h+276 -00 replies
7/10OMAP2/3/4: DMA: Move chain API's to mach-omap2arch/arm/mach-omap2/dma.c arch/arm/mach-omap2/include/mach/dma.h+690 -00 replies
8/10OMAP: DMA: Move IRQ handlers to mach-omaparch/arm/mach-omap1/dma.c arch/arm/mach-omap2/dma.c+182 -00 replies
9/10OMAP: DMA: API's Clean uparch/arm/mach-omap1/dma.c arch/arm/mach-omap2/dma.c+548 -10 replies
10/10OMAP: DMA: Cleanup DMA library and enable DMA platform driverarch/arm/mach-omap1/Makefile arch/arm/mach-omap2/Makefile arch/arm/plat-omap/dma.c +1 more+465 -18270 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 00/10] OMAP: DMA: HWMOD and convert into platform driver

This patch series is to convert existing OMAP DMA library into platform driver for all the OMAP1 and OMAP2 plus processors as per alignment with Benoit, Paul and Kevin.

The platform device model for OMAP2 plus will makes use of hwmod data base and it is based on the reference branch:

git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git
Branch: pm-wip/hwmods-omap4
commit f1c79ab452ed9cf7b5ff6488335c1ddf15d5c92a
Author: Benoit Cousson <[email protected]>
OMAP4: hwmod: Enable omap_hwmod build for OMAP4

The proposal is to:
1. Convert DMA library into platform driver in hwmod way
2. Clean up API's to remove cpu_is_xxxx checks.
3. Make use of DMA engine(See Documentation/crypto/async-tx-api.txt)

This series is going to cover 1 & 2 and 3 will be taken up once these changes becomes stable and thoroughly tested on all omap boards.

The API's are cleaned up to remove cpu_is_xxxx checks and code is moved to corresponding respective mach-omap folders.

Basic tests are performed with this patch series on OMAP3630(Zoom3) board. All other major defconfigs are build tested. OMAP4 boot seems to be broken on above branch for both MMC and ethernet.

List of TODO's:
1. To perform more tests on OMAP4 once the branch is bootable.
2. OMAP2 boot and basic dma tests

It will be helpful is some one tests and provides feedback on OMAP1 and OMAP2 boards since I don't have OMAP1 board.

Manjunatha GK (10):
OMAP2420: DMA: HWMOD: Add hwmod data structures
OMAP2430: DMA: HWMOD: Add hwmod data structures
OMAP3: DMA: HWMOD: Add hwmod data structures
OMAP4: DMA: HWMOD: update OMAP4 data base
OMAP1: DMA: Introduce DMA driver as platform driver OMAP2/3/4: DMA: HWMOD: Device registration OMAP2/3/4: DMA: Move chain API's to mach-omap2
OMAP: DMA: Move IRQ handlers to mach-omap
OMAP: DMA: API's Clean up
OMAP: DMA: Cleanup DMA library and enable DMA platform driver

 arch/arm/mach-omap1/Makefile               |    2 +-
 arch/arm/mach-omap1/dma.c                  |  595 +++++++++
 arch/arm/mach-omap1/include/mach/dma.h     |   80 ++
 arch/arm/mach-omap2/Makefile               |    2 +-
 arch/arm/mach-omap2/dma.c                  | 1268 ++++++++++++++++++
 arch/arm/mach-omap2/include/mach/dma.h     |  103 ++
 arch/arm/mach-omap2/omap_hwmod_2420_data.c |   95 ++-
 arch/arm/mach-omap2/omap_hwmod_2430_data.c |   93 ++-
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   90 ++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c |   21 +-
 arch/arm/plat-omap/dma.c                   | 1968 ++++++----------------------
 arch/arm/plat-omap/include/plat/dma.h      |  438 +++----
 12 files changed, 2920 insertions(+), 1835 deletions(-)
 create mode 100644 arch/arm/mach-omap1/dma.c
 create mode 100644 arch/arm/mach-omap1/include/mach/dma.h
 create mode 100644 arch/arm/mach-omap2/dma.c
 create mode 100644 arch/arm/mach-omap2/include/mach/dma.h
Cc Benoit Cousson <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Santosh Shilimkar <[email protected]>
Cc Rajendra Nayak <[email protected]>