soc/amd/stoneyridge: Clean up sata.c

Clean up ahci_ptr declaration. Remove incorrect PCI device IDs.

BUG=b:62200375

Change-Id: I9058d9102fc8ea0bd03ea089ba98da4590dd3533
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/21973
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Richard Spiegel 2017-10-11 16:48:03 -07:00 committed by Martin Roth
parent c0d1e31617
commit 63300f7292
1 changed files with 2 additions and 4 deletions

View File

@ -35,8 +35,8 @@ static void sata_init(struct device *dev)
#define SATA_CAPABILITIES_REG 0xfc #define SATA_CAPABILITIES_REG 0xfc
#define CFG_CAP_SPM (1<<12) #define CFG_CAP_SPM (1<<12)
volatile u32 *ahci_ptr = (u32 *)(pci_read_config32(dev, u32 *ahci_ptr = (void *)(uintptr_t)ALIGN_DOWN(
AHCI_BASE_ADDRESS_REG) & 0xffffff00); pci_read_config32(dev, AHCI_BASE_ADDRESS_REG), 256);
u32 temp; u32 temp;
/* unlock the write-protect */ /* unlock the write-protect */
@ -68,8 +68,6 @@ static struct device_operations sata_ops = {
}; };
static const unsigned short pci_device_ids[] = { static const unsigned short pci_device_ids[] = {
PCI_DEVICE_ID_AMD_SB900_SATA,
PCI_DEVICE_ID_AMD_SB900_SATA_AHCI,
PCI_DEVICE_ID_AMD_CZ_SATA, PCI_DEVICE_ID_AMD_CZ_SATA,
PCI_DEVICE_ID_AMD_CZ_SATA_AHCI, PCI_DEVICE_ID_AMD_CZ_SATA_AHCI,
0 0