Canyonlands SATA harddisk driver
PATCH 1/1 Canyonlands SATA harddisk driver
Hello Stefan,
I re-send the patch source.
The following three points were corrected.
1."---" was adjusted to add git history.
2.The following lines of /drivers/block/Makefile were matched to sorting.
COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o
3.The point of canyonlands.h was corrected.
Quoted 1 line
You enable SATA commands on Canyonlands here which is ok. But...
<snip>
Quoted 2 lines
... you enable the DWC SATA driver for all 460 board variants here, including Glacier and Arches.
And, I made the patch from the source obtained with git in May 12. Please review the patch again.
---
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
[patch]
drivers/block/Makefile +1 -0
@@ -31,6 +31,7 @@ COBJS-$(CONFIG_FSL_SATA) += fsl_sata.o COBJS-$(CONFIG_IDE_SIL680) += sil680.o COBJS-$(CONFIG_LIBATA) += libata.o COBJS-$(CONFIG_PATA_BFIN) += pata_bfin.o +COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o COBJS-$(CONFIG_SATA_SIL3114) += sata_sil3114.o COBJS-$(CONFIG_SCSI_AHCI) += ahci.o COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
drivers/block/sata_dwc.c +2110 -0
2,110 lines not on this page · raw message
drivers/block/sata_dwc.h +463 -0
463 lines not on this page · raw message
include/configs/canyonlands.h +14 -0
@@ -454,6 +454,7 @@#define CONFIG_CMD_SDRAM #define CONFIG_CMD_SNTP #define CONFIG_CMD_USB +#define CONFIG_CMD_SATA #elif defined(CONFIG_GLACIER )#define CONFIG_CMD_DATE #define CONFIG_CMD_DTT
@@ -516,6 +517,19 @@#endif /* CONFIG_ARCHES */ #endif /* CONFIG_460GT */ +/* +* S-ATA 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 +/*----------------------------------------------------------------------- * External Bus Controller (EBC) Setup *----------------------------------------------------------------------*/
Regards,
Kazuaki Ichinohe.
PATCH 1/1 Canyonlands SATA harddisk driver
Dear Kazuaki Ichinohe,
Quoted 6 lines · In message <[email protected]> you wrote:
I re-send the patch source.
The following three points were corrected.1."---" was adjusted to add git history.
2.The following lines of /drivers/block/Makefile were matched to sorting.
You really don't get it. All such comments like the lines above must go *BELOW* the "---" line. Only the commit message, and nothing elase, is allowed above the "---".
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Minds are like parachutes - they only function when open.