soc/intel/braswell: Clean up
Tested with BUILD_TIMELESS=1, Facebook FBG1701 remains unaffected. Change-Id: I784a5ddc1a8dcbfb960ce970b28b850244a47773 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39663 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
140a4ae7bf
commit
aee7ab2f6e
@@ -25,23 +25,21 @@
|
||||
#include <soc/ramstage.h>
|
||||
#include "chip.h"
|
||||
|
||||
#define CAP_OVERRIDE_LOW 0xa0
|
||||
#define CAP_OVERRIDE_HIGH 0xa4
|
||||
# define USE_CAP_OVERRIDES (1 << 31)
|
||||
#define CAP_OVERRIDE_LOW 0xa0
|
||||
#define CAP_OVERRIDE_HIGH 0xa4
|
||||
#define USE_CAP_OVERRIDES (1 << 31)
|
||||
|
||||
static void sd_init(struct device *dev)
|
||||
{
|
||||
struct soc_intel_braswell_config *config = config_of(dev);
|
||||
|
||||
printk(BIOS_SPEW, "%s/%s (%s)\n",
|
||||
__FILE__, __func__, dev_name(dev));
|
||||
printk(BIOS_SPEW, "%s/%s (%s)\n", __FILE__, __func__, dev_name(dev));
|
||||
|
||||
if (config->sdcard_cap_low != 0 || config->sdcard_cap_high != 0) {
|
||||
printk(BIOS_DEBUG, "Overriding SD Card controller caps.\n");
|
||||
pci_write_config32(dev, CAP_OVERRIDE_LOW,
|
||||
config->sdcard_cap_low);
|
||||
pci_write_config32(dev, CAP_OVERRIDE_HIGH,
|
||||
config->sdcard_cap_high | USE_CAP_OVERRIDES);
|
||||
pci_write_config32(dev, CAP_OVERRIDE_LOW, config->sdcard_cap_low);
|
||||
pci_write_config32(dev, CAP_OVERRIDE_HIGH, config->sdcard_cap_high |
|
||||
USE_CAP_OVERRIDES);
|
||||
}
|
||||
|
||||
if (config->sd_acpi_mode)
|
||||
|
Reference in New Issue
Block a user