From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Canyonlands SATA harddisk driver
Date: Thu, 14 May 2009 11:45:47 +0200 [thread overview]
Message-ID: <200905141145.47698.sr@denx.de> (raw)
In-Reply-To: <4A0A8B20.2050402@fsi.co.jp>
On Wednesday 13 May 2009 10:56:00 Kazuaki Ichinohe wrote:
> This patch adds a SATA harddisk driver for the canyonlands.
> This patch is kernel driver's porting.
> This pach corresponded to not cmd_scsi but cmd_sata.
>
> [environment variable, boot script]
> setenv bootargs root=/dev/sda7 rw
> setenv bootargs ${bootargs} console=ttyS0,115200
> ext2load sata 0:2 0x400000 /canyonlands/uImage
> ext2load sata 0:2 0x800000 /canyonlands/canyonlands.dtb
> fdt addr 0x800000 0x4000
> bootm 0x400000 - 0x800000
>
> If you drive SATA-2 disk on Canyonlands, you must change parts from
> PI2PCIE212 to PI2PCIE2212 on U25. We confirmed to boot by using following
> disk.
>
> 1.Vender: Fujitsu Type: MHW2040BS
> 2.Vender: Fujitsu Type: MHW2060BK
> 3.Vendor: HAGIWARA SYS-COM:HFD25S-032GT
> 4.Vender: WesternDigital Type: WD3200BJKT (CONFIG_LBA48 required)
> 5.Vender: WesternDigital Type: WD3200BEVT (CONFIG_LBA48 required)
> 6.Vender: hitachi Type: HTS543232L9A300 (CONFIG_LBA48 required)
> 7.Vender: Seagate Type: ST31000333AS (CONFIG_LBA48 required)
> 8.Vender: Transcend Type: TS32GSSD25S-M
> 9.Vender: MTRON Type: MSD-SATA1525-016
>
> Signed-off-by: Kazuaki Ichinohe <kazuichi@fsi.co.jp>
This finally looks good. :)
Some comments below.
> +++ u-boot-sata/drivers/block/sata_dwc.c 2009-05-07 09:37:53.000000000
> +0900 @@ -0,0 +1,2110 @@
> +/*
> + * sata_dwc.c
<snip>
> + if ((nsect == 0x55) && (lbal == 0xaa)) {
> + printf("we found a device\n");
printf("Device found\n");
> + } else {
> + printf("Not found a device.\n");
printf("No device found\n");
> + dev_state = SATA_NODEVICE;
> + return FALSE;
> + }
> +
> + tmp = ATA_DEVICE_OBS;
> + writeb(tmp,ioaddr->device_addr);
Add a space after the ",".
> + writeb(ap->ctl,ioaddr->ctl_addr);
Here again...
> +
> + udelay(200);
> +
> + writeb(ap->ctl | ATA_SRST, ioaddr->ctl_addr);
> +
> + udelay(200);
> + writeb(ap->ctl,ioaddr->ctl_addr);
And here again. I won't mention this again. Please check the whole source for
such missing spaces.
<snip>
> +int scan_sata (int dev)
Please remove the space before "(". Use a consistent coding style in this
file. So check for other occurrences too.
> +{
> + int i;
> + int rc;
> + u8 status;
> + const u16 *id;
> + struct ata_device *ata_dev = &ata_device;
> + unsigned long pio_mask, mwdma_mask, udma_mask;
> + unsigned long xfer_mask;
> + char revbuf[7];
> + u16 iobuf[ATA_SECTOR_WORDS];
> +
> + memset ( iobuf, 0, sizeof(iobuf));
memset(iobuf, 0, sizeof(iobuf));
> +
> + if (dev_state == SATA_NODEVICE)
> + return 1;
> +
> + printf("waitng for device ready.");
printf("Waiting for device...");
There are two places where "waiting" is misspelled. Please fix both.
Thanks.
Best regards,
Stefan
=====================================================================
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
=====================================================================
next prev parent reply other threads:[~2009-05-14 9:45 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 8:56 [U-Boot] [PATCH] Canyonlands SATA harddisk driver Kazuaki Ichinohe
2009-05-14 9:45 ` Stefan Roese [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-12 9:50 Kazuaki Ichinohe
2009-06-12 9:10 Kazuaki Ichinohe
2009-07-19 9:24 ` Wolfgang Denk
2009-05-15 9:32 Kazuaki Ichinohe
2009-05-20 12:47 ` Stefan Roese
2009-05-20 21:08 ` Shinya Kuribayashi
2009-05-28 19:22 ` Wolfgang Denk
2009-05-29 7:36 ` Kazuaki Ichinohe
2009-05-29 9:07 ` Shinya Kuribayashi
2009-06-02 0:28 ` Kazuaki Ichinohe
2009-06-02 0:44 ` Shinya Kuribayashi
2009-06-04 5:00 ` Kazuaki Ichinohe
2009-06-04 6:30 ` Shinya Kuribayashi
2009-06-04 6:57 ` Stefan Roese
2009-06-04 8:40 ` Wolfgang Denk
2009-06-02 0:41 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-14 8:28 Kazuaki Ichinohe
2009-05-14 8:57 ` Stefan Roese
2009-05-12 9:56 Kazuaki Ichinohe
2009-05-12 18:42 ` Wolfgang Denk
2009-05-08 6:27 Kazuaki Ichinohe
2009-05-11 2:13 ` Kazuaki Ichinohe
2009-05-11 13:01 ` Stefan Roese
2009-05-12 9:29 ` Kazuaki Ichinohe
2009-05-12 9:43 ` Kazuaki Ichinohe
2009-03-17 13:08 [U-Boot] About PCI of U-BOOT of CANYONLANDS Kazuaki Ichinohe
2009-03-24 5:22 ` [U-Boot] [PATCH] Canyonlands SATA harddisk driver Kazuaki Ichinohe
2009-03-24 16:22 ` Stefan Roese
2009-03-25 11:32 ` Kazuaki Ichinohe
2009-03-25 16:04 ` Stefan Roese
2009-03-26 10:56 ` Kazuaki Ichinohe
2009-03-27 16:11 ` Stefan Roese
2009-03-27 16:31 ` Wolfgang Denk
2009-03-30 8:27 ` Kazuaki Ichinohe
2009-04-17 7:31 ` Kazuaki Ichinohe
2009-04-27 1:53 ` Kazuaki Ichinohe
2009-04-27 7:42 ` Stefan Roese
2009-04-29 6:58 ` Stefan Roese
2009-05-07 6:23 ` Kazuaki Ichinohe
2009-05-07 7:38 ` Wolfgang Denk
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=200905141145.47698.sr@denx.de \
--to=sr@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 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.