diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-07-30 20:34:04 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2014-07-31 07:45:45 -0400 |
| commit | 9f2c2bb31258e11b1ebaf73bdf2a88f8afaa2dd2 (patch) | |
| tree | 79ee6e9d5fda4f30474c09d87a2d83e9c5a7fe2d /drivers/dma/sh | |
| parent | 4fbd804e009ae9dff29dcb1fbfa0aaffd3992880 (diff) | |
dmaengine: sh: Rework Kconfig and Makefile
Separate helpers and drivers in the Kconfig and Makefile to improve
readability and move the CONFIG_OF dependency from the Makefile to
Kconfig.
[pebolle@tiscali.nl: reported need to rename SHDMA_R8A73A4 instances]
Reported-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[horms+renesas@verge.net.au: squashed rename of SHDMA_R8A73A4 instances]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh')
| -rw-r--r-- | drivers/dma/sh/Kconfig | 24 | ||||
| -rw-r--r-- | drivers/dma/sh/Makefile | 16 | ||||
| -rw-r--r-- | drivers/dma/sh/shdma.h | 2 |
3 files changed, 32 insertions, 10 deletions
diff --git a/drivers/dma/sh/Kconfig b/drivers/dma/sh/Kconfig index 0f719816c91b..0349125a2e20 100644 --- a/drivers/dma/sh/Kconfig +++ b/drivers/dma/sh/Kconfig | |||
| @@ -2,21 +2,39 @@ | |||
| 2 | # DMA engine configuration for sh | 2 | # DMA engine configuration for sh |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | # | ||
| 6 | # DMA Engine Helpers | ||
| 7 | # | ||
| 8 | |||
| 5 | config SH_DMAE_BASE | 9 | config SH_DMAE_BASE |
| 6 | bool "Renesas SuperH DMA Engine support" | 10 | bool "Renesas SuperH DMA Engine support" |
| 7 | depends on (SUPERH && SH_DMA) || ARCH_SHMOBILE || COMPILE_TEST | 11 | depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST |
| 12 | depends on !SUPERH || SH_DMA | ||
| 8 | depends on !SH_DMA_API | 13 | depends on !SH_DMA_API |
| 9 | default y | 14 | default y |
| 10 | select DMA_ENGINE | 15 | select DMA_ENGINE |
| 11 | help | 16 | help |
| 12 | Enable support for the Renesas SuperH DMA controllers. | 17 | Enable support for the Renesas SuperH DMA controllers. |
| 13 | 18 | ||
| 19 | # | ||
| 20 | # DMA Controllers | ||
| 21 | # | ||
| 22 | |||
| 14 | config SH_DMAE | 23 | config SH_DMAE |
| 15 | tristate "Renesas SuperH DMAC support" | 24 | tristate "Renesas SuperH DMAC support" |
| 16 | depends on SH_DMAE_BASE | 25 | depends on SH_DMAE_BASE |
| 17 | help | 26 | help |
| 18 | Enable support for the Renesas SuperH DMA controllers. | 27 | Enable support for the Renesas SuperH DMA controllers. |
| 19 | 28 | ||
| 29 | if SH_DMAE | ||
| 30 | |||
| 31 | config SH_DMAE_R8A73A4 | ||
| 32 | def_bool y | ||
| 33 | depends on ARCH_R8A73A4 | ||
| 34 | depends on OF | ||
| 35 | |||
| 36 | endif | ||
| 37 | |||
| 20 | config SUDMAC | 38 | config SUDMAC |
| 21 | tristate "Renesas SUDMAC support" | 39 | tristate "Renesas SUDMAC support" |
| 22 | depends on SH_DMAE_BASE | 40 | depends on SH_DMAE_BASE |
| @@ -34,7 +52,3 @@ config RCAR_AUDMAC_PP | |||
| 34 | depends on SH_DMAE_BASE | 52 | depends on SH_DMAE_BASE |
| 35 | help | 53 | help |
| 36 | Enable support for the Renesas R-Car Audio DMAC Peripheral Peripheral controllers. | 54 | Enable support for the Renesas R-Car Audio DMAC Peripheral Peripheral controllers. |
| 37 | |||
| 38 | config SHDMA_R8A73A4 | ||
| 39 | def_bool y | ||
| 40 | depends on ARCH_R8A73A4 && SH_DMAE != n | ||
diff --git a/drivers/dma/sh/Makefile b/drivers/dma/sh/Makefile index 1ce88b28cfc6..0a5cfdb76e45 100644 --- a/drivers/dma/sh/Makefile +++ b/drivers/dma/sh/Makefile | |||
| @@ -1,10 +1,18 @@ | |||
| 1 | # | ||
| 2 | # DMA Engine Helpers | ||
| 3 | # | ||
| 4 | |||
| 1 | obj-$(CONFIG_SH_DMAE_BASE) += shdma-base.o shdma-of.o | 5 | obj-$(CONFIG_SH_DMAE_BASE) += shdma-base.o shdma-of.o |
| 2 | obj-$(CONFIG_SH_DMAE) += shdma.o | 6 | |
| 7 | # | ||
| 8 | # DMA Controllers | ||
| 9 | # | ||
| 10 | |||
| 3 | shdma-y := shdmac.o | 11 | shdma-y := shdmac.o |
| 4 | ifeq ($(CONFIG_OF),y) | 12 | shdma-$(CONFIG_SH_DMAE_R8A73A4) += shdma-r8a73a4.o |
| 5 | shdma-$(CONFIG_SHDMA_R8A73A4) += shdma-r8a73a4.o | ||
| 6 | endif | ||
| 7 | shdma-objs := $(shdma-y) | 13 | shdma-objs := $(shdma-y) |
| 14 | obj-$(CONFIG_SH_DMAE) += shdma.o | ||
| 15 | |||
| 8 | obj-$(CONFIG_SUDMAC) += sudmac.o | 16 | obj-$(CONFIG_SUDMAC) += sudmac.o |
| 9 | obj-$(CONFIG_RCAR_HPB_DMAE) += rcar-hpbdma.o | 17 | obj-$(CONFIG_RCAR_HPB_DMAE) += rcar-hpbdma.o |
| 10 | obj-$(CONFIG_RCAR_AUDMAC_PP) += rcar-audmapp.o | 18 | obj-$(CONFIG_RCAR_AUDMAC_PP) += rcar-audmapp.o |
diff --git a/drivers/dma/sh/shdma.h b/drivers/dma/sh/shdma.h index 758a57b51875..2c0a969adc9f 100644 --- a/drivers/dma/sh/shdma.h +++ b/drivers/dma/sh/shdma.h | |||
| @@ -62,7 +62,7 @@ struct sh_dmae_desc { | |||
| 62 | #define to_sh_dev(chan) container_of(chan->shdma_chan.dma_chan.device,\ | 62 | #define to_sh_dev(chan) container_of(chan->shdma_chan.dma_chan.device,\ |
| 63 | struct sh_dmae_device, shdma_dev.dma_dev) | 63 | struct sh_dmae_device, shdma_dev.dma_dev) |
| 64 | 64 | ||
| 65 | #ifdef CONFIG_SHDMA_R8A73A4 | 65 | #ifdef CONFIG_SH_DMAE_R8A73A4 |
| 66 | extern const struct sh_dmae_pdata r8a73a4_dma_pdata; | 66 | extern const struct sh_dmae_pdata r8a73a4_dma_pdata; |
| 67 | #define r8a73a4_shdma_devid (&r8a73a4_dma_pdata) | 67 | #define r8a73a4_shdma_devid (&r8a73a4_dma_pdata) |
| 68 | #else | 68 | #else |
