From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] BLOCK: Add freescale IMX51 PATA driver
Date: Thu, 13 Jan 2011 09:55:05 +0100 [thread overview]
Message-ID: <4D2EBDE9.2090909@denx.de> (raw)
In-Reply-To: <1294872411-11250-1-git-send-email-marek.vasut@gmail.com>
On 01/12/2011 11:46 PM, Marek Vasut wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> ---
> drivers/block/Makefile | 1 +
> drivers/block/mxc_ata.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 150 insertions(+), 0 deletions(-)
> create mode 100644 drivers/block/mxc_ata.c
Hi Marek,
> +
> +/* PIO timing table */
> +#define NR_PIO_SPECS 5
> +uint16_t pio_t0[NR_PIO_SPECS] = { 600, 383, 240, 180, 120 };
> +uint16_t pio_t1[NR_PIO_SPECS] = { 70, 50, 30, 30, 25 };
> +uint16_t pio_t2_8[NR_PIO_SPECS] = { 290, 290, 290, 80, 70 };
> +uint16_t pio_t2_16[NR_PIO_SPECS] = { 165, 125, 100, 80, 70 };
> +uint16_t pio_t2i[NR_PIO_SPECS] = { 40, 0, 0, 0, 0 };
> +uint16_t pio_t4[NR_PIO_SPECS] = { 30, 20, 15, 10, 10 };
> +uint16_t pio_t9[NR_PIO_SPECS] = { 20, 15, 10, 10, 10 };
> +uint16_t pio_tA[NR_PIO_SPECS] = { 50, 50, 50, 50, 50 };
As these array are only used here, they should be static.
> +
> + /* Write TIME_2R/AX/RDX/4 */
> + val = (((pio_t2_8[mode] + T) / T) << REG2OFF(&ata_cfg_regs->time_2r)) |
Line too long, please fix globally.
> + (((pio_tA[mode] + T) / T + 2) << REG2OFF(&ata_cfg_regs->time_ax)) |
Ditto.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2011-01-13 8:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 22:46 [U-Boot] [PATCH 1/2] BLOCK: Add freescale IMX51 PATA driver Marek Vasut
2011-01-12 22:46 ` [U-Boot] [PATCH 2/2] iMX5: EfikaMX: Work-in-progress board support Marek Vasut
2011-01-13 9:37 ` Stefano Babic
2011-01-13 17:15 ` Marek Vasut
2011-01-13 17:46 ` Stefano Babic
2011-01-18 19:31 ` Marek Vasut
2011-01-13 8:55 ` Stefano Babic [this message]
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=4D2EBDE9.2090909@denx.de \
--to=sbabic@denx.de \
--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