From: Vignesh R <vigneshr@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 08/11] spi: ti_qspi: Use DMA to read from qspi flash
Date: Mon, 6 Jul 2015 11:04:48 +0530 [thread overview]
Message-ID: <559A1378.3020807@ti.com> (raw)
In-Reply-To: <5597D730.1080301@ti.com>
On Saturday 04 July 2015 06:23 PM, R, Vignesh wrote:
>
>
> On 7/3/2015 5:12 PM, Tom Rini wrote:
>> On Fri, Jul 03, 2015 at 04:46:10PM +0530, Vignesh R wrote:
>>
>>> ti_qspi uses memory map mode for faster read. Enabling DMA will increase
>>> read speed by 3x @48MHz on DRA74 EVM.
>>>
>>> Signed-off-by: Vignesh R <vigneshr@ti.com>
>>
>> This ignores the feedback from
>> http://lists.denx.de/pipermail/u-boot/2014-July/183715.html where we
>> need to model the DMA changes on how it's done for mxs_spi.c
>>
>
> Sorry.. I didn't look into that before.
> mxs_spi uses peripheral DMA to read/write flash. But ti_qspi can use DMA
> to read from flash in mmap mode only. In current u-boot, defining
> CONFIG_TI_SPI_MMAP will make memory map address available
> (spi_flash->memory_map) to sf layer and spi_flash_cmd_read_ops() (in
> sf_ops.c) directly calls memcpy() to read data from flash into buffer.
> There is no spi_xfer() call to the ti_qspi driver at all.
>
> In order to implement mxs_spi like approach for ti_qspi.c, I can delete
> mmap handling in sf_ops.c( I don't think any other spi driver uses this
> part of code), so that spi_xfer() is always called. And then, in
> spi_xfer() implementation of ti_qspi, I can do DMA transfer similar to
> mxs_spi.c. Is this approach ok?
>
I think I misinterpreted the thread previously. The suggestion is to
move DMA initialization related code from to ti-edma3.c and use
spi_flash_copy_mmap() just to pass addresses to ti-edma3 apis. Am I correct?
--
Regards
Vignesh
next prev parent reply other threads:[~2015-07-06 5:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 11:16 [U-Boot] [PATCH 00/11] Enable edma support for ti-qspi Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 01/11] sf: allocate cache aligned buffers to copy from flash Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 02/11] env: use cache line aligned memory for flash read Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 03/11] ARM: AM43xx: Add support for disabling clocks in uboot Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 04/11] ARM: OMAP5: " Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 05/11] ARM: OMAP5: Add functions to enable and disable EDMA3 clocks Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 06/11] ARM: AM43XX: " Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 07/11] sf: ops: Add spi_flash_copy_mmap function Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 08/11] spi: ti_qspi: Use DMA to read from qspi flash Vignesh R
2015-07-03 11:42 ` Tom Rini
2015-07-04 12:53 ` R, Vignesh
2015-07-06 5:34 ` Vignesh R [this message]
2015-07-09 6:40 ` Vignesh R
2015-07-14 19:02 ` Tom Rini
2015-07-21 12:41 ` R, Vignesh
2015-07-03 11:16 ` [U-Boot] [PATCH 09/11] dma: ti-edma3: Add BIT(x) macro definition Vignesh R
2015-07-03 13:57 ` Andy Pont
2015-07-04 12:53 ` R, Vignesh
2015-07-04 15:35 ` Jagan Teki
2015-07-03 11:16 ` [U-Boot] [PATCH 10/11] ARM: dra7xx_evm: Enable EDMA3 in SPL to support DMA on qspi Vignesh R
2015-07-03 11:16 ` [U-Boot] [PATCH 11/11] ARM: am43xx_evm: Enable EDMA3 " Vignesh R
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=559A1378.3020807@ti.com \
--to=vigneshr@ti.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox