[coreboot-gerrit] Change in coreboot[master]: mainboard/intel/galileo: Add SD controller configuration
Lee Leahy (Code Review)
gerrit at coreboot.org
Fri Apr 7 21:42:21 CEST 2017
Lee Leahy has uploaded a new change for review. ( https://review.coreboot.org/19212 )
Change subject: mainboard/intel/galileo: Add SD controller configuration
......................................................................
mainboard/intel/galileo: Add SD controller configuration
Configure the SD controller to handle the SD card slot.
TEST=Build and run on Galileo Gen2
Change-Id: Iaf4faa40fe01eca98abffa2681f61fd8e059f0c4
Signed-off-by: Lee Leahy <Leroy.P.Leahy at intel.com>
---
M src/mainboard/intel/galileo/Makefile.inc
A src/mainboard/intel/galileo/sd.c
2 files changed, 32 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/19212/1
diff --git a/src/mainboard/intel/galileo/Makefile.inc b/src/mainboard/intel/galileo/Makefile.inc
index f2fda31..5c9bb20 100644
--- a/src/mainboard/intel/galileo/Makefile.inc
+++ b/src/mainboard/intel/galileo/Makefile.inc
@@ -19,17 +19,22 @@
bootblock-y += gpio.c
bootblock-y += reg_access.c
+bootblock-y += sd.c
verstage-y += gpio.c
verstage-y += reg_access.c
+verstage-y += sd.c
verstage-$(CONFIG_VBOOT) += vboot.c
romstage-y += gpio.c
romstage-y += reg_access.c
+romstage-y += sd.c
romstage-$(CONFIG_VBOOT) += vboot.c
postcar-y += gpio.c
postcar-y += reg_access.c
+postcar-y += sd.c
ramstage-y += gpio.c
ramstage-y += reg_access.c
+ramstage-y += sd.c
diff --git a/src/mainboard/intel/galileo/sd.c b/src/mainboard/intel/galileo/sd.c
new file mode 100644
index 0000000..41c3e62
--- /dev/null
+++ b/src/mainboard/intel/galileo/sd.c
@@ -0,0 +1,27 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyrigit 2017 Intel Corporation
+ *
+ * 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; version 2 of the License.
+ *
+ * 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.
+ */
+
+#include <console/console.h>
+#include <device/sdhci.h>
+#include <device/storage.h>
+
+void soc_sd_mmc_controller_quirks(struct sd_mmc_ctrlr *ctrlr)
+{
+ /* Display things before they change */
+ printk(BIOS_DEBUG, "0x%08x: ctrlr->caps\n", ctrlr->caps);
+
+ /* Specify the additional driver support */
+ ctrlr->caps |= DRVR_CAP_REMOVABLE;
+}
--
To view, visit https://review.coreboot.org/19212
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf4faa40fe01eca98abffa2681f61fd8e059f0c4
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Lee Leahy <leroy.p.leahy at intel.com>
More information about the coreboot-gerrit
mailing list