From: Shawn Lin <shawn.lin@rock-chips.com>
To: Jaehoon Chung <jh80.chung@samsung.com>,
Doug Anderson <dianders@chromium.org>
Cc: shawn.lin@rock-chips.com, Ulf Hansson <ulf.hansson@linaro.org>,
Seungwon Jeon <tgih.jun@samsung.com>,
linux-mips@linux-mips.org, Arnd Bergmann <arnd@arndb.de>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Alexey Brodkin <abrodkin@synopsys.com>,
Stefan Agner <stefan@agner.ch>,
Zhou Wang <wangzhou.bry@gmail.com>,
Kumar Gala <galak@codeaurora.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Wang Long <long.wanglong@huawei.com>,
Rob Herring <robh+dt@kernel.org>,
Chaotian Jing <chaotian.jing@mediatek.com>,
Lukasz Majewski <l.majewski@samsung.com>,
Jun Nie <jun.nie@linaro.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Kevin Hao <haokexin@gmail.com>, Olof Johansson <olof@lixom.net>,
Ray Jui <rjui@broadcom.com>,
Govindraj Raja <govindraj.raja@imgtec.com>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Vineet Gupta <vgupta@synopsys.com>,
Scott Branden <sbranden@broadcom.com>,
Anand Moon <linux.amoon@gmail.com>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Tushar Behera <trblinux@gmail.com>,
Pawel Moll <pawel.moll@arm.com>,
Will Deacon <will.deacon@arm.com>,
Mischa Jonker <mjonker@synopsys.com>,
Ralf Baechle <ralf@linux-mips.org>,
Vincent Yang <vincent.yang.fujitsu@gmail.com>,
Stephen Warren <swarren@nvidia.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Kukjin Kim <kgene@kernel.org>,
Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Russell King <linux@arm.linux.org.uk>,
Joachim Eastwood <manabian@gmail.com>,
Sjoerd Simons <sjoerd.simons@collabora.co.uk>,
Weijun Yang <Weijun.Yang@csr.com>,
Peter Griffin <peter.griffin@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
addy ke <addy.ke@rock-chips.com>,
Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>,
Kevin Hilman <khilman@linaro.org>,
Andrew Bresticker <abrestic@chromium.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Zhangfei Gao <zhangfei.gao@linaro.org>,
Wei Xu <xuwei5@hisilicon.com>, Andreas Faerber <afaerber@suse.de>,
Mark Rutland <mark.rutland@arm.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
CPGS <cpgs@samsung.com>
Subject: Re: [RFC PATCH v3 2/5] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac
Date: Thu, 6 Aug 2015 11:13:55 +0800 [thread overview]
Message-ID: <55C2D0F3.8000300@rock-chips.com> (raw)
In-Reply-To: <55C2C453.3000005@samsung.com>
在 2015/8/6 10:20, Jaehoon Chung 写道:
> On 08/06/2015 11:16 AM, Doug Anderson wrote:
>> Shawn,
>>
>> On Wed, Aug 5, 2015 at 1:17 AM, Shawn Lin <shawn.lin@rock-chips.com> wrote:
>>> synopsys-dw-mshc supports three types of transfer mode. We add bindings
>>> and description for how to use them at runtime. Without idmac and edmac
>>> property, pio is the default transfer mode. Make sure that Idmac and emdac
>>> should not be used simultaneously.
>> Can't you just read the HCON register?
>>
>> [17:16]: DMA_INTERFACE
>> 00: none
>> 01: DW_DMA
>> 10: GENERIC_DMA
>> 11: NON-DW-DMA
> If read it and get the exactly information. I think we can use that information.
It's helpful really, but the description is ambiguous. :(
So I make a big big mistake when I read it for the firest time .
I was just wondering the "mismatch" value from HCON and my databook.
Here I get details from our ASIC team guy :
// Name: DMA_INTERFACE
// Default: None
// Values: None (0), DW-DMA (1), Generic-DMA (2), NON-DW-DMA (3)
// Enabled: INTERNAL_DMAC==0
//
// Configures the type for DMA interface. In addition to AMBA host
interface,
// the data FIFO can be accesses by the optional DMA interface. The DMA
type
// could be either DW-DMA, which provides hand shake signals to
DW_ahb_dmac
// controller, or a generic DMA interface which provides a simpler
// request/acknowledgement protocol and dedicated DMA data-bus, or
// no DMA interface.
`define DMA_INTERFACE 1
if we use idmac, DMA_INTERFACE should be "0", and we get 2b'00 from
HCON[17:16]
if we use edmac, DMA_INTERFACE should be "1", "2" and we get 2b'01 ,2b'10
from HCON[17:16] respectively .
But if only support PIO mode, DMA_INTERFACE should be "3", and we
get 2b'11 from
HCON[17:16].
So, "none" means IDMAC, "DW_DMA"/"GENERIC_DMA" refer to two types of
external dma and "NON-DW-DMA" means pio from databook . It's a little
difficult to understand it.
This makes my work easy!
Thanks, Doug and Jeahoon.
> Best Regards,
> Jaehoon Chung
>
>
>
>
--
Shawn Lin
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Lin <shawn.lin@rock-chips.com>
To: Jaehoon Chung <jh80.chung@samsung.com>,
Doug Anderson <dianders@chromium.org>
Cc: shawn.lin@rock-chips.com, Ulf Hansson <ulf.hansson@linaro.org>,
Seungwon Jeon <tgih.jun@samsung.com>,
linux-mips@linux-mips.org, Arnd Bergmann <arnd@arndb.de>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Alexey Brodkin <abrodkin@synopsys.com>,
Stefan Agner <stefan@agner.ch>,
Zhou Wang <wangzhou.bry@gmail.com>,
Kumar Gala <galak@codeaurora.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Wang Long <long.wanglong@huawei.com>,
Rob Herring <robh+dt@kernel.org>,
Chaotian Jing <chaotian.jing@mediatek.com>,
Lukasz Majewski <l.majewski@samsung.com>,
Jun Nie <jun.nie@linaro.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Kevin Hao <haokexin@gmail.com>, Olof Johansson <olof@lixom.net>,
Ray Jui <rjui@broa>
Subject: Re: [RFC PATCH v3 2/5] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac
Date: Thu, 6 Aug 2015 11:13:55 +0800 [thread overview]
Message-ID: <55C2D0F3.8000300@rock-chips.com> (raw)
In-Reply-To: <55C2C453.3000005@samsung.com>
在 2015/8/6 10:20, Jaehoon Chung 写道:
> On 08/06/2015 11:16 AM, Doug Anderson wrote:
>> Shawn,
>>
>> On Wed, Aug 5, 2015 at 1:17 AM, Shawn Lin <shawn.lin@rock-chips.com> wrote:
>>> synopsys-dw-mshc supports three types of transfer mode. We add bindings
>>> and description for how to use them at runtime. Without idmac and edmac
>>> property, pio is the default transfer mode. Make sure that Idmac and emdac
>>> should not be used simultaneously.
>> Can't you just read the HCON register?
>>
>> [17:16]: DMA_INTERFACE
>> 00: none
>> 01: DW_DMA
>> 10: GENERIC_DMA
>> 11: NON-DW-DMA
> If read it and get the exactly information. I think we can use that information.
It's helpful really, but the description is ambiguous. :(
So I make a big big mistake when I read it for the firest time .
I was just wondering the "mismatch" value from HCON and my databook.
Here I get details from our ASIC team guy :
// Name: DMA_INTERFACE
// Default: None
// Values: None (0), DW-DMA (1), Generic-DMA (2), NON-DW-DMA (3)
// Enabled: INTERNAL_DMAC==0
//
// Configures the type for DMA interface. In addition to AMBA host
interface,
// the data FIFO can be accesses by the optional DMA interface. The DMA
type
// could be either DW-DMA, which provides hand shake signals to
DW_ahb_dmac
// controller, or a generic DMA interface which provides a simpler
// request/acknowledgement protocol and dedicated DMA data-bus, or
// no DMA interface.
`define DMA_INTERFACE 1
if we use idmac, DMA_INTERFACE should be "0", and we get 2b'00 from
HCON[17:16]
if we use edmac, DMA_INTERFACE should be "1", "2" and we get 2b'01 ,2b'10
from HCON[17:16] respectively .
But if only support PIO mode, DMA_INTERFACE should be "3", and we
get 2b'11 from
HCON[17:16].
So, "none" means IDMAC, "DW_DMA"/"GENERIC_DMA" refer to two types of
external dma and "NON-DW-DMA" means pio from databook . It's a little
difficult to understand it.
This makes my work easy!
Thanks, Doug and Jeahoon.
> Best Regards,
> Jaehoon Chung
>
>
>
>
--
Shawn Lin
next prev parent reply other threads:[~2015-08-06 3:16 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 8:16 [RFC PATCH v3 0/5] Shawn Lin
2015-08-05 8:16 ` Shawn Lin
2015-08-05 8:17 ` [RFC PATCH v3 1/5] mmc: dw_mmc: Add external dma interface support Shawn Lin
2015-08-05 8:17 ` Shawn Lin
2015-08-05 8:49 ` Heiko Stübner
2015-08-05 8:49 ` Heiko Stübner
2015-08-05 9:11 ` Shawn Lin
2015-08-05 9:11 ` Shawn Lin
2015-08-06 2:27 ` Jaehoon Chung
2015-08-06 2:27 ` Jaehoon Chung
2015-08-06 3:35 ` Shawn Lin
2015-08-06 3:35 ` Shawn Lin
2015-08-05 8:17 ` [RFC PATCH v3 2/5] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac Shawn Lin
2015-08-05 8:17 ` Shawn Lin
2015-08-05 8:27 ` Krzysztof Kozlowski
2015-08-05 8:27 ` Krzysztof Kozlowski
2015-08-05 8:43 ` Shawn Lin
2015-08-05 8:43 ` Shawn Lin
2015-08-05 8:45 ` Heiko Stübner
2015-08-05 8:45 ` Heiko Stübner
2015-08-05 8:56 ` Shawn Lin
2015-08-05 8:56 ` Shawn Lin
2015-08-06 2:16 ` Doug Anderson
2015-08-06 2:16 ` Doug Anderson
2015-08-06 2:20 ` Jaehoon Chung
2015-08-06 2:20 ` Jaehoon Chung
2015-08-06 3:13 ` Shawn Lin [this message]
2015-08-06 3:13 ` Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 3/5] arm: configs: remove CONFIG_MMC_DW_IDMAC Shawn Lin
2015-08-05 8:18 ` Shawn Lin
2015-08-05 8:34 ` Vineet Gupta
2015-08-05 8:34 ` Vineet Gupta
2015-08-05 8:34 ` Vineet Gupta
2015-08-05 8:48 ` Shawn Lin
2015-08-05 8:48 ` Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 4/5] mips: " Shawn Lin
2015-08-05 8:18 ` Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 5/5] ARM: dts: add supports-idmac property Shawn Lin
2015-08-05 8:18 ` Shawn Lin
2015-08-05 8:52 ` Alexey Brodkin
2015-08-05 8:52 ` Alexey Brodkin
2015-08-05 8:52 ` Alexey Brodkin
2015-08-05 9:25 ` Shawn Lin
2015-08-05 9:25 ` Shawn Lin
2015-08-05 23:45 ` [RFC PATCH v3 0/5] Krzysztof Kozlowski
2015-08-05 23:45 ` Krzysztof Kozlowski
2015-08-06 0:45 ` Shawn Lin
2015-08-06 0:45 ` Shawn Lin
2015-08-06 1:47 ` Jaehoon Chung
2015-08-06 1:47 ` Jaehoon Chung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C2D0F3.8000300@rock-chips.com \
--to=shawn.lin@rock-chips.com \
--cc=Weijun.Yang@csr.com \
--cc=abrestic@chromium.org \
--cc=abrodkin@synopsys.com \
--cc=addy.ke@rock-chips.com \
--cc=afaerber@suse.de \
--cc=alexandre.belloni@free-electrons.com \
--cc=alim.akhtar@samsung.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=chaotian.jing@mediatek.com \
--cc=cpgs@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=galak@codeaurora.org \
--cc=geert+renesas@glider.be \
--cc=govindraj.raja@imgtec.com \
--cc=haokexin@gmail.com \
--cc=heiko@sntech.de \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jh80.chung@samsung.com \
--cc=jun.nie@linaro.org \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=khilman@linaro.org \
--cc=l.majewski@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux.amoon@gmail.com \
--cc=linux@arm.linux.org.uk \
--cc=long.wanglong@huawei.com \
--cc=manabian@gmail.com \
--cc=mark.rutland@arm.com \
--cc=mjonker@synopsys.com \
--cc=olof@lixom.net \
--cc=pawel.moll@arm.com \
--cc=peter.griffin@linaro.org \
--cc=rafael.j.wysocki@intel.com \
--cc=ralf@linux-mips.org \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=sbranden@broadcom.com \
--cc=sjoerd.simons@collabora.co.uk \
--cc=srinivas.kandagatla@linaro.org \
--cc=stefan@agner.ch \
--cc=swarren@nvidia.com \
--cc=tgih.jun@samsung.com \
--cc=tomeu.vizoso@collabora.com \
--cc=trblinux@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=ulf.hansson@linaro.org \
--cc=vgupta@synopsys.com \
--cc=vincent.yang.fujitsu@gmail.com \
--cc=wangzhou.bry@gmail.com \
--cc=will.deacon@arm.com \
--cc=xuwei5@hisilicon.com \
--cc=zhangfei.gao@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.