2 * Copyright (c) 2016 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0
9 #include <asm/pch_common.h>
11 u32 pch_common_sir_read(struct udevice *dev, int idx)
15 dm_pci_write_config32(dev, SATA_SIRI, idx);
16 dm_pci_read_config32(dev, SATA_SIRD, &data);
21 void pch_common_sir_write(struct udevice *dev, int idx, u32 value)
23 dm_pci_write_config32(dev, SATA_SIRI, idx);
24 dm_pci_write_config32(dev, SATA_SIRD, value);