sata_mv.c (b406c7a6655da7a2fcd9f72e41262f93ff707748) | sata_mv.c (0388a8c0d54aa039758a8eca68d82325a563f8db) |
---|---|
1/* 2 * sata_mv.c - Marvell SATA support 3 * 4 * Copyright 2008: Marvell Corporation, all rights reserved. 5 * Copyright 2005: EMC Corporation, all rights reserved. 6 * Copyright 2005 Red Hat, Inc. All rights reserved. 7 * 8 * Please ALWAYS copy linux-ide@vger.kernel.org on emails. --- 58 unchanged lines hidden (view full) --- 67#include <linux/mbus.h> 68#include <linux/bitops.h> 69#include <scsi/scsi_host.h> 70#include <scsi/scsi_cmnd.h> 71#include <scsi/scsi_device.h> 72#include <linux/libata.h> 73 74#define DRV_NAME "sata_mv" | 1/* 2 * sata_mv.c - Marvell SATA support 3 * 4 * Copyright 2008: Marvell Corporation, all rights reserved. 5 * Copyright 2005: EMC Corporation, all rights reserved. 6 * Copyright 2005 Red Hat, Inc. All rights reserved. 7 * 8 * Please ALWAYS copy linux-ide@vger.kernel.org on emails. --- 58 unchanged lines hidden (view full) --- 67#include <linux/mbus.h> 68#include <linux/bitops.h> 69#include <scsi/scsi_host.h> 70#include <scsi/scsi_cmnd.h> 71#include <scsi/scsi_device.h> 72#include <linux/libata.h> 73 74#define DRV_NAME "sata_mv" |
75#define DRV_VERSION "1.23" | 75#define DRV_VERSION "1.24" |
76 77enum { 78 /* BAR's are enumerated in terms of pci_resource_start() terms */ 79 MV_PRIMARY_BAR = 0, /* offset 0x10: memory space */ 80 MV_IO_BAR = 2, /* offset 0x18: IO space */ 81 MV_MISC_BAR = 3, /* offset 0x1c: FLASH, NVRAM, SRAM */ 82 83 MV_MAJOR_REG_AREA_SZ = 0x10000, /* 64KB */ --- 2469 unchanged lines hidden (view full) --- 2553 2554 /* 2555 * Gen-II/IIe PHY_MODE3 errata RM#2: 2556 * Achieves better receiver noise performance than the h/w default: 2557 */ 2558 m3 = readl(port_mmio + PHY_MODE3); 2559 m3 = (m3 & 0x1f) | (0x5555601 << 5); 2560 | 76 77enum { 78 /* BAR's are enumerated in terms of pci_resource_start() terms */ 79 MV_PRIMARY_BAR = 0, /* offset 0x10: memory space */ 80 MV_IO_BAR = 2, /* offset 0x18: IO space */ 81 MV_MISC_BAR = 3, /* offset 0x1c: FLASH, NVRAM, SRAM */ 82 83 MV_MAJOR_REG_AREA_SZ = 0x10000, /* 64KB */ --- 2469 unchanged lines hidden (view full) --- 2553 2554 /* 2555 * Gen-II/IIe PHY_MODE3 errata RM#2: 2556 * Achieves better receiver noise performance than the h/w default: 2557 */ 2558 m3 = readl(port_mmio + PHY_MODE3); 2559 m3 = (m3 & 0x1f) | (0x5555601 << 5); 2560 |
2561 /* Guideline 88F5182 (GL# SATA-S11) */ 2562 if (IS_SOC(hpriv)) 2563 m3 &= ~0x1c; 2564 |
|
2561 if (fix_phy_mode4) { 2562 u32 m4; 2563 2564 m4 = readl(port_mmio + PHY_MODE4); 2565 2566 /* workaround for errata FEr SATA#10 (part 1) */ 2567 m4 = (m4 & ~(1 << 1)) | (1 << 0); 2568 --- 904 unchanged lines hidden --- | 2565 if (fix_phy_mode4) { 2566 u32 m4; 2567 2568 m4 = readl(port_mmio + PHY_MODE4); 2569 2570 /* workaround for errata FEr SATA#10 (part 1) */ 2571 m4 = (m4 & ~(1 << 1)) | (1 << 0); 2572 --- 904 unchanged lines hidden --- |