From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Canyonlands SATA harddisk driver
Date: Mon, 11 May 2009 15:01:30 +0200 [thread overview]
Message-ID: <200905111501.31022.sr@denx.de> (raw)
In-Reply-To: <4A03D0CF.1040901@fsi.co.jp>
Hi Kazuaki Ichinohe,
first the good news. This patch version now applies clean. Thanks.
But please find still a few comments below.
On Friday 08 May 2009 08:27:27 Kazuaki Ichinohe wrote:
> Hello Denk, Stefan,
>
> The confirmed patch is sent again.
> Please review this patch.
>
Move the lines above below the "---" line below. This way those lines will not
be added to the git history.
> 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>
> ---
>
> [patch]
> diff -uprN u-boot-0507/drivers/block/Makefile
> u-boot-sata/drivers/block/Makefile ---
> u-boot-0507/drivers/block/Makefile 2009-05-07 09:25:48.000000000 +0900 +++
> u-boot-sata/drivers/block/Makefile 2009-05-07 09:43:56.000000000 +0900 @@
> -35,6 +35,7 @@ COBJS-$(CONFIG_SATA_SIL3114) += sata_sil
> COBJS-$(CONFIG_SCSI_AHCI) += ahci.o
> COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
> COBJS-$(CONFIG_SYSTEMACE) += systemace.o
> +COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o
Please keep the list sorted.
<snip>
> diff -uprN u-boot-0507/include/configs/canyonlands.h
> u-boot-sata/include/configs/canyonlands.h ---
> u-boot-0507/include/configs/canyonlands.h 2009-05-07 09:25:50.000000000
> +0900 +++ u-boot-sata/include/configs/canyonlands.h 2009-05-07
> 09:49:10.000000000 +0900 @@ -454,6 +454,7 @@
> #define CONFIG_CMD_SDRAM
> #define CONFIG_CMD_SNTP
> #define CONFIG_CMD_USB
> +#define CONFIG_CMD_SATA
You enable SATA commands on Canyonlands here which is ok. But...
> #elif defined(CONFIG_GLACIER)
> #define CONFIG_CMD_DATE
> #define CONFIG_CMD_DTT
> @@ -517,6 +518,21 @@
> #endif /* CONFIG_460GT */
>
> /*-----------------------------------------------------------------------
> + * S-ATA driver setup
> + *----------------------------------------------------------------------*/
> +#define CONFIG_SATA_DWC
... you enable the DWC SATA driver for all 460 board variants here, including
Glacier and Arches.
> +#ifdef CONFIG_SATA_DWC
> +#define CONFIG_LIBATA
> +
> +#define SATA_BASE_ADDR 0xe20d1000 /* PPC460EX SATA Base
Address */
> +#define SATA_DMA_REG_ADDR 0xe20d0800 /* PPC460EX SATA Base Address */
> +#define CONFIG_SYS_SATA_MAX_DEVICE 1 /* SATA MAX DEVICE */
> +/* Convert sectorsize to wordsize */
> +#define ATA_SECTOR_WORDS (ATA_SECT_SIZE/2)
#define ATA_SECTOR_WORDS (ATA_SECT_SIZE / 2)
> +#endif
I suggest to do it this way:
/*
* SATA driver setup
*/
#ifdef CONFIG_CMD_SATA
#define CONFIG_SATA_DWC
#define CONFIG_LIBATA
#define SATA_BASE_ADDR 0xe20d1000 /* PPC460EX SATA Base Address */
#define SATA_DMA_REG_ADDR 0xe20d0800 /* PPC460EX SATA Base Address */
#define CONFIG_SYS_SATA_MAX_DEVICE 1 /* SATA MAX DEVICE */
/* Convert sectorsize to wordsize */
#define ATA_SECTOR_WORDS (ATA_SECT_SIZE / 2)
#endif /* CONFIG_CMD_SATA */
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-11 13:01 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-08 6:27 [U-Boot] [PATCH] Canyonlands SATA harddisk driver Kazuaki Ichinohe
2009-05-11 2:13 ` Kazuaki Ichinohe
2009-05-11 13:01 ` Stefan Roese [this message]
2009-05-12 9:29 ` Kazuaki Ichinohe
2009-05-12 9:43 ` Kazuaki Ichinohe
-- 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-13 8:56 Kazuaki Ichinohe
2009-05-14 9:45 ` Stefan Roese
2009-05-12 9:56 Kazuaki Ichinohe
2009-05-12 18:42 ` Wolfgang Denk
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=200905111501.31022.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.