From: Daniel Mack <daniel@zonque.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] mtd: OMAP: Enable GPMC prefetch mode
Date: Fri, 19 Dec 2014 17:31:34 +0100 [thread overview]
Message-ID: <549452E6.3010803@zonque.org> (raw)
In-Reply-To: <20141219162757.GA23740@fox>
Hi Guido,
thanks for your feedback!
On 12/19/2014 05:27 PM, Guido Mart?nez wrote:
>> +/**
>> + * omap_prefetch_enable - configures and starts prefetch transfer
>> + * @fifo_th: fifo threshold to be used for read/ write
>> + * @count: number of bytes to be transferred
>> + * @is_write: prefetch read(0) or write post(1) mode
>> + */
>> +static int omap_prefetch_enable(int fifo_th, unsigned int count, int is_write)
>> +{
>> + uint32_t val;
>> +
>> + if (fifo_th > PREFETCH_FIFOTHRESHOLD_MAX)
>> + return -EINVAL;
>> +
>> + if (readl(&gpmc_cfg->prefetch_control))
>> + return -EBUSY;
>> +
>> + /* Set the amount of bytes to be prefetched */
>> + writel(count, &gpmc_cfg->prefetch_config2);
>> +
>> + val = (cs << PREFETCH_CONFIG1_CS_SHIFT) | (is_write & 1) |
> On a current U-boot "cs" doesn't exist. I think you might want to pass a
> "struct omap_nand_info *" and use info->cs.
>
> I fixed this last bit, and tested it. It results in 2.5x speed
> improvements on a Micron NAND. So, thanks :) !
>
> If you resend, you have my Reviewed-by and Tested-by.
That's great to hear. However, I'm not currently working on this
project, so I don't have a chance to respin the patch. In case any of
the maintainers is interested, I guess that's easy enough to tweak on
the fly when merging the patch :)
Thanks,
Daniel
next prev parent reply other threads:[~2014-12-19 16:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 12:43 [U-Boot] [PATCH v2 0/2] OMAP/GPMC: speed up NAND read access Daniel Mack
2014-06-25 12:43 ` [U-Boot] [PATCH v2 1/2] mtd: OMAP: Enable GPMC prefetch mode Daniel Mack
2014-12-19 16:27 ` Guido Martínez
2014-12-19 16:31 ` Daniel Mack [this message]
2015-01-13 21:50 ` [U-Boot] [U-Boot,v2,1/2] " Tom Rini
2014-06-25 12:43 ` [U-Boot] [PATCH v2 2/2] ARM: omap-common: gpmp: decrease memory region size to 16MiB Daniel Mack
2014-06-25 13:00 ` [U-Boot] [PATCH v2 0/2] OMAP/GPMC: speed up NAND read access Tom Rini
2014-06-25 13:06 ` Daniel Mack
2014-06-26 6:08 ` Gupta, Pekon
2014-06-26 7:19 ` Daniel Mack
2014-07-25 10:31 ` Gupta, Pekon
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=549452E6.3010803@zonque.org \
--to=daniel@zonque.org \
--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