
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
25 lines
483 B
C
25 lines
483 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2016 Google, Inc
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <asm/pch_common.h>
|
|
|
|
u32 pch_common_sir_read(struct udevice *dev, int idx)
|
|
{
|
|
u32 data;
|
|
|
|
dm_pci_write_config32(dev, SATA_SIRI, idx);
|
|
dm_pci_read_config32(dev, SATA_SIRD, &data);
|
|
|
|
return data;
|
|
}
|
|
|
|
void pch_common_sir_write(struct udevice *dev, int idx, u32 value)
|
|
{
|
|
dm_pci_write_config32(dev, SATA_SIRI, idx);
|
|
dm_pci_write_config32(dev, SATA_SIRD, value);
|
|
}
|