summaryrefslogtreecommitdiff
path: root/src/mainboard/opencellular
diff options
context:
space:
mode:
authorPhilipp Deppenwiese <zaolin@das-labor.org>2018-07-28 18:55:40 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-07-28 18:18:00 +0000
commit660dd0007953916d82ff66c238dc30e610f45c08 (patch)
tree26678423e59bf0a5648f1323d52f6a552209c5b6 /src/mainboard/opencellular
parent48b24252f647f96d7c127a3e00658fb47c41474a (diff)
downloadcoreboot-660dd0007953916d82ff66c238dc30e610f45c08.tar.xz
mainboard/opencellular/rotundu: Add supabrck EMMC support
Change-Id: Icf9feaf6f74cfe33a817bb2f1ecd3d49aa5e9a43 Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/27684 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/opencellular')
-rw-r--r--src/mainboard/opencellular/rotundu/variants/supabrckv1/devicetree.cb4
-rw-r--r--src/mainboard/opencellular/rotundu/variants/supabrckv1/gpio.c25
2 files changed, 16 insertions, 13 deletions
diff --git a/src/mainboard/opencellular/rotundu/variants/supabrckv1/devicetree.cb b/src/mainboard/opencellular/rotundu/variants/supabrckv1/devicetree.cb
index a31a001657..df089229f4 100644
--- a/src/mainboard/opencellular/rotundu/variants/supabrckv1/devicetree.cb
+++ b/src/mainboard/opencellular/rotundu/variants/supabrckv1/devicetree.cb
@@ -26,7 +26,7 @@ chip soc/intel/fsp_baytrail
register "PcdMrcInitSPDAddr1" = "0xa0"
register "PcdMrcInitSPDAddr2" = "0xa2"
register "PcdMrcInitMmioSize" = "MMIO_SIZE_DEFAULT"
- register "PcdeMMCBootMode" = "EMMC_DISABLED"
+ register "PcdeMMCBootMode" = "EMMC_FOLLOWS_DEVICETREE"
register "PcdIgdDvmt50PreAlloc" = "IGD_MEMSIZE_DEFAULT"
register "PcdApertureSize" = "APERTURE_SIZE_DEFAULT"
register "PcdGttSize" = "GTT_SIZE_DEFAULT"
@@ -53,7 +53,7 @@ chip soc/intel/fsp_baytrail
device pci 14.0 on end # 8086 0F35 - USB XHCI - Only 1 USB controller at a time
device pci 15.0 off end # 8086 0F28 - LP Engine Audio
device pci 16.0 off end # 8086 0F37 - OTG controller
- device pci 17.0 off end # 8086 0F50 - EMMC 4.5 Port (MMC1 pins) - Only 1 EMMC port at a time
+ device pci 17.0 on end # 8086 0F50 - EMMC 4.5 Port (MMC1 pins) - Only 1 EMMC port at a time
device pci 18.0 on end # 8086 0F40 - SIO - DMA
device pci 18.1 on end # 8086 0F41 - I2C Port 1
device pci 18.2 off end # 8086 0F42 - I2C Port 2
diff --git a/src/mainboard/opencellular/rotundu/variants/supabrckv1/gpio.c b/src/mainboard/opencellular/rotundu/variants/supabrckv1/gpio.c
index 78d1ad6ae2..c9d54268f7 100644
--- a/src/mainboard/opencellular/rotundu/variants/supabrckv1/gpio.c
+++ b/src/mainboard/opencellular/rotundu/variants/supabrckv1/gpio.c
@@ -19,6 +19,9 @@
#include <soc/gpio.h>
#include "../../irqroute.h"
+#define GPIO_FUNC3_PULL_UP_20K GPIO_FUNC(3, PULL_UP, 20K)
+#define GPIO_FUNC3_PULL_DOWN_20K GPIO_FUNC(3, PULL_DOWN, 20K)
+
/* NCORE GPIOs */
static const struct soc_gpio_map gpncore_gpio_map[] = {
@@ -85,27 +88,27 @@ static const struct soc_gpio_map gpscore_gpio_map[] = {
/* GPIO_S0_SC[014] I2S1_DATAOUT RESERVED*/
GPIO_DEFAULT,
/* GPIO_S0_SC[015] I2S1_DATAIN RESERVED*/
- GPIO_NC,
+ GPIO_FUNC3_PULL_DOWN_20K,
/* GPIO_S0_SC[016] MMC1_CLK MMC1_45_CLK */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[017] MMC1_D[0] MMC1_45_D[0] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[018] MMC1_D[1] MMC1_45_D[1] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[019] MMC1_D[2] MMC1_45_D[2] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[020] MMC1_D[3] MMC1_45_D[3] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[021] MMC1_D[4] MMC1_45_D[4] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[022] MMC1_D[5] MMC1_45_D[5] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[023] MMC1_D[6] MMC1_45_D[6] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[024] MMC1_D[7] MMC1_45_D[7] */
- GPIO_NC,
+ GPIO_FUNC3_PULL_UP_20K,
/* GPIO_S0_SC[025] MMC1_CMD MMC1_45_CMD */
- GPIO_NC,
+ GPIO_FUNC3_PULL_DOWN_20K,
/* GPIO_S0_SC[026] MMC1_RST# SATA_DEVSLP[0] MMC1_45_RST# */
GPIO_NC,
/* GPIO_S0_SC[027] SD2_CLK */