soc/intel: Change file to __SIMPLE_DEVICE__
All the PCI accesses in the file are now accessed without SA_DEV_ROOT expanding to function call. Change-Id: I30d331e9c18a486ea971e8397a6e20a0f82d5f84 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34410 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
committed by
Martin Roth
parent
e1559eb84f
commit
6046eb405a
@@ -13,6 +13,8 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define __SIMPLE_DEVICE__
|
||||||
|
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
@@ -24,7 +26,6 @@
|
|||||||
|
|
||||||
#include "systemagent_def.h"
|
#include "systemagent_def.h"
|
||||||
|
|
||||||
#if ENV_BOOTBLOCK
|
|
||||||
void bootblock_systemagent_early_init(void)
|
void bootblock_systemagent_early_init(void)
|
||||||
{
|
{
|
||||||
uint32_t reg;
|
uint32_t reg;
|
||||||
@@ -63,7 +64,6 @@ void bootblock_systemagent_early_init(void)
|
|||||||
*/
|
*/
|
||||||
pci_write_config32(SA_DEV_ROOT, TSEG, 0);
|
pci_write_config32(SA_DEV_ROOT, TSEG, 0);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void sa_set_pci_bar(const struct sa_mmio_descriptor *fixed_set_resources,
|
void sa_set_pci_bar(const struct sa_mmio_descriptor *fixed_set_resources,
|
||||||
size_t count)
|
size_t count)
|
||||||
|
Reference in New Issue
Block a user