avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
25
u-boot/arch/x86/cpu/intel_common/pch.c
Normal file
25
u-boot/arch/x86/cpu/intel_common/pch.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Google, Inc
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user