2015-08-19 07:16:59 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Damien Zammit <damien@zamaudio.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2019-03-01 12:43:02 +01:00
|
|
|
#include <device/pci_ops.h>
|
2019-11-11 21:56:37 +01:00
|
|
|
#include <cpu/intel/car/bootblock.h>
|
|
|
|
#include "x4x.h"
|
2016-01-06 03:40:41 +01:00
|
|
|
#include "iomap.h"
|
2019-09-27 13:32:20 +02:00
|
|
|
|
2019-11-11 21:56:37 +01:00
|
|
|
void bootblock_early_northbridge_init(void)
|
2015-08-19 07:16:59 +02:00
|
|
|
{
|
|
|
|
uint32_t reg32;
|
|
|
|
|
|
|
|
/* Disable LaGrande Technology (LT) */
|
|
|
|
reg32 = TPM32(0);
|
|
|
|
|
|
|
|
reg32 = CONFIG_MMCONF_BASE_ADDRESS | 16 | 1;
|
2017-03-09 01:58:24 +01:00
|
|
|
pci_io_write_config32(PCI_DEV(0, 0, 0), D0F0_PCIEXBAR_LO, reg32);
|
2015-08-19 07:16:59 +02:00
|
|
|
}
|