arch/arm64: Add PCI config support in romstage
Change-Id: I9cc3dc51764f24b986434080f480932dceb8d133 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31307 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
26905f70b7
commit
b92853ed56
|
@ -16,16 +16,6 @@
|
||||||
#ifndef ARCH_ARM64_PCI_OPS_H
|
#ifndef ARCH_ARM64_PCI_OPS_H
|
||||||
#define ARCH_ARM64_PCI_OPS_H
|
#define ARCH_ARM64_PCI_OPS_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <device/pci_mmio_cfg.h>
|
||||||
#include <device/pci_type.h>
|
|
||||||
|
|
||||||
#ifdef __SIMPLE_DEVICE__
|
|
||||||
u8 pci_read_config8(pci_devfn_t dev, unsigned int where);
|
|
||||||
u16 pci_read_config16(pci_devfn_t dev, unsigned int where);
|
|
||||||
u32 pci_read_config32(pci_devfn_t dev, unsigned int where);
|
|
||||||
void pci_write_config8(pci_devfn_t dev, unsigned int where, u8 val);
|
|
||||||
void pci_write_config16(pci_devfn_t dev, unsigned int where, u16 val);
|
|
||||||
void pci_write_config32(pci_devfn_t dev, unsigned int where, u32 val);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -266,11 +266,9 @@
|
||||||
* For ramstage individual source file may define __SIMPLE_DEVICE__
|
* For ramstage individual source file may define __SIMPLE_DEVICE__
|
||||||
* before including any header files to force that particular source
|
* before including any header files to force that particular source
|
||||||
* be built with simple device model.
|
* be built with simple device model.
|
||||||
*
|
|
||||||
* For now only x86 is supported.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if ENV_X86 && (defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR)
|
#if (defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR)
|
||||||
#define __SIMPLE_DEVICE__
|
#define __SIMPLE_DEVICE__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue