Local: ARM: shmobile: r8a7791: Remove duplicate audio DMA initialization

Commit f8f00c5a3de0076ef62549fcff1e386f325c3e8c ("Local: ARM: shmobile:
r8a7791: enable DMA for DT") added audio DMA initialization calls to
r8a7791_add_dt_devices(), but forgot to remove them from
r8a7791_add_standard_devices().

As r8a7791_add_standard_devices() calls r8a7791_add_dt_devices(), they're
now executed twice, causing the following warnings on koelsch-legacy:

WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0x80/0xa0()
sysfs: cannot create duplicate filename '/devices/platform/sh-dma-engine.0'
WARNING: at lib/kobject.c:196 kobject_add_internal+0x178/0x1d8()
kobject_add_internal failed for sh-dma-engine.0 with -EEXIST, don't try to register things with the same name in the same directory.
WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0x80/0xa0()
sysfs: cannot create duplicate filename '/devices/platform/sh-dma-engine.1'
WARNING: at lib/kobject.c:196 kobject_add_internal+0x178/0x1d8()
kobject_add_internal failed for sh-dma-engine.1 with -EEXIST, don't try to register things with the same name in the same directory.
WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0x80/0xa0()
sysfs: cannot create duplicate filename '/devices/platform/rcar-audmapp-engine'
WARNING: at lib/kobject.c:196 kobject_add_internal+0x178/0x1d8()
kobject_add_internal failed for rcar-audmapp-engine with -EEXIST, don't try to register things with the same name in the same directory.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7790: Remove duplicate audio DMA initialization

Commit 556090d ("Local: ARM: shmobile: r8a7790: enable DMA for DT")
added audio DMA initialization calls to r8a7790_add_dt_devices(),
but forgot to remove them from r8a7790_add_standard_devices().

As r8a7790_add_standard_devices() calls r8a7790_add_dt_devices(), they're
now executed twice.

Based on a similar change for the r8a7790 by
Geert Uytterhoeven.

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7791: add Audio DMAC clock support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7790: add SYS-DMAC clock support

This patch enables SYS-DMAC0 (= Low), it doesn't support
SYS-DMAC1 (= HI) today.
Because, SYS-DMAC HI/Low interrupt mapping is not
good match to SH-DMAC driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7791: add SYS-DMAC clock support

This patch enables SYS-DMAC0 (= Low), it doesn't support
SYS-DMAC1 (= HI) today.
Because, SYS-DMAC HI/Low interrupt mapping is not
good match to SH-DMAC driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7790: add SYS-DMAC support

This patch enables SYS-DMAC0 (= Low), it doesn't support
SYS-DMAC1 (= HI) today.
Because, SYS-DMAC HI/Low interrupt mapping is not
good match to SH-DMAC driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[horms+renesas@verge.net.au: Do not call r8a7790_register_sys_dmac()
 in r8a7790_add_standard_devices() as it is already called via
 r8a7790_add_dt_devices()]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: r8a7791: add SYS-DMAC support

This patch enables SYS-DMAC0 (= Low), it doesn't support
SYS-DMAC1 (= HI) today.
Because, SYS-DMAC HI/Low interrupt mapping is not
good match to SH-DMAC driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[horms+renesas@verge.net.au: Do not call r8a7791_register_sys_dmac()
 in r8a7791_add_standard_devices() as it is already called via
 r8a7791_add_dt_devices()]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: lager: Enable SDHI0/2 in C

DMAEngine DT is not supported yet,
but SDHI is required to use it.
Thus, This patch enables SDHI via C base,
and disables SDHI via DTS

Then, normal SDHI requests Fixed/GPIO regulator as Vcc/VccQ.
But GPIO and GPIO regulator are probed via DT,
and SDHI is probed via C base.
This means (C base) SDHI can't use (DT base) GPIO regulator.
Now, SDHI doesn't request regulator.

Additionally, the Vcc/VccQ will be controlled by (DT base) GPIO
regulator without SDHI driver if DTS enables it.
It should be removed from DTS file

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[horms+renesas@verge.net.au Resolved conflicts]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

Conflicts:
	arch/arm/mach-shmobile/board-lager-reference.c
Local: ARM: shmobile: koelsch: Enable SDHI0/2 in C

DMAEngine DT is not supported yet,
but SDHI is required to use it.
Thus, This patch enables SDHI via C base,
and disables SDHI via DTS

Then, normal SDHI requests Fixed/GPIO regulator as Vcc/VccQ.
But GPIO and GPIO regulator are probed via DT,
and SDHI is probed via C base.
This means (C base) SDHI can't use (DT base) GPIO regulator.
Now, SDHI doesn't request regulator.

Additionally, the Vcc/VccQ will be controlled by (DT base) GPIO
regulator without SDHI driver if DTS enables it.
It should be removed from DTS file

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

Conflicts:
	arch/arm/mach-shmobile/board-koelsch-reference.c
Local: ARM: shmobile: lager: enable DMA transfer for SDHI

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: ARM: shmobile: koelsch: enable DMA transfer for SDHI

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: serial: sh-sci: Use DMA_SUCCESS instead of DMA_COMPLETE

Because DMA_COMPLETE is not defined, sh-sci becomes build error.
This replaced DMA_SUCCESS with the same meaning instead of DMA_COMPLETE.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: arm: shmobile: r8a7791: Add support clock of HSCIF

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: arm: shmobile: r8a7791: Add support HSCIF

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: arm: shmobile: koelsch: Add support HSCIF

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
[horms+renesas@verge.net.au resolved conflicts]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

Conflicts:
	arch/arm/boot/dts/r8a7791-koelsch.dts
local: arm: shmobile: r8a7791: Enable DMA transfer for HSCIF

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: arm: shmobile: r8a7790: Enable DMA transfer for HSCIF

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Local: sd: tmio: Quick-Hack of DMA receive address

The DMA "receive" address of R-Car SDHI
is not same as "transfer".

** NOTE **

THIS IS QUICK HACK !!

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
local: sh-pfc: r8a7791: Add HSCIF pin support

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
local: serial: sh-sci: Add support DMA of HSCIF

This supports DMA of HSCIF with handling of timeout for receiving DMA data.
Timeout for receiving DMA data of HSCIF use timer interrupt. And timer
interrupt is set in DMA receive callback function. Since the DMA receive
callback function is not called until the data accumulated in buffer,
data will not be sent immediately.
In order to address this issue for HSCIF, this patch increase to receive
buffer. Then, first buffer is used to call the DMA receive callback function
immediately.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>