upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
483 B
24 lines
483 B
// 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);
|
|
}
|
|
|