summaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/sd.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-03-19 00:31:58 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-23 09:42:39 +0000
commitaee7ab2f6e69b70414f8225cb7a83c3e4cb62d9a (patch)
tree73a8668b87d5e495041b67f5f799e40386230bab /src/soc/intel/braswell/sd.c
parent140a4ae7bf2960ac7d095ba94847093f4755bf04 (diff)
downloadcoreboot-aee7ab2f6e69b70414f8225cb7a83c3e4cb62d9a.tar.xz
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>
Diffstat (limited to 'src/soc/intel/braswell/sd.c')
-rw-r--r--src/soc/intel/braswell/sd.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/soc/intel/braswell/sd.c b/src/soc/intel/braswell/sd.c
index 1295ffaddd..97983f7494 100644
--- a/src/soc/intel/braswell/sd.c
+++ b/src/soc/intel/braswell/sd.c
@@ -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)