Sakari Ailus has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36723 )
Change subject: mb/google/poppy: Rework OV5670 power on sequence
......................................................................
mb/google/poppy: Rework OV5670 power on sequence
In particular:
- Enable regulators *after* configuring the voltage
- Allow 1 ms for the voltages to settle
- Enable clock after powering on regulators
- Remove extra delays between enabling things. The sensor requires 8192
clock cycles after the reset is lifted before I²C access, so 1 ms is
enough.
- Make the delay after lifting xshutdown 10 ms. This guarantees that
streaming will only start once the sensor has had enough time to settle
after lifting the reset.
Signed-off-by: Sakari Ailus <sakari.ailus(a)linux.intel.com>
Tested-by: Jacopo Mondi <jacopo(a)jmondi.org>
Change-Id: I4589a7d7ec324f4520572a406cc11ad3feec8b21
---
M src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
1 file changed, 22 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/36723/1
diff --git a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
index 12c3c22..355b255 100644
--- a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
+++ b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
@@ -526,30 +526,39 @@
daisy chain */
DOVD(1)
- VAX2 = 1 /* Enable VAUX2 */
-
if (LNotEqual (AX2V, 52)) {
/* Set VAUX2 as
1.8006 V */
AX2V = 52
}
+ VAX2 = 1 /* Enable VAUX2 */
+
+ \_SB.PCI0.I2C2.PMIC.CGP4(1)
+
+ /*
+ * Wait for DOVDD and AVDD
+ * to settle.
+ */
+ Sleep(1)
+
+ if (LNotEqual (AX1V, 19)) {
+ /* Set VAUX1 as 1.2132V */
+ AX1V = 19
+ }
+ VAX1 = 1 /* Enable VAUX1 */
+
+ /* Wait for VDD to settle. */
Sleep(1)
\_SB.PCI0.I2C2.PMIC.CLKE()
CLE1 = 1
- VAX1 = 1 /* Enable VAUX1 */
- if (LNotEqual (AX1V, 19)) {
- /* Set VAUX1 as 1.2132V */
- AX1V = 19
- }
- Sleep(3)
-
- \_SB.PCI0.I2C2.PMIC.CGP4(1)
- Sleep(3)
-
\_SB.PCI0.I2C2.PMIC.CGP5(1)
- Sleep(3)
+ /*
+ * Ensure 10 ms between
+ * power-up and streamon.
+ */
+ Sleep(10)
STA = 1
}
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/36723
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4589a7d7ec324f4520572a406cc11ad3feec8b21
Gerrit-Change-Number: 36723
Gerrit-PatchSet: 1
Gerrit-Owner: Sakari Ailus <sakari.ailus+coreboot.org(a)linux.intel.com>
Gerrit-MessageType: newchange
Sakari Ailus has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36722 )
Change subject: mb/google/poppy: Power on PMIC before accessing its opregion
......................................................................
mb/google/poppy: Power on PMIC before accessing its opregion
The PMIC opregion is used to change the direction of two GPIOs for I²C
daisy chain operation. Do this after the PMIC is powered on, not before.
Reported-by: Laurent Pinchart <laurent.pinchart(a)ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus(a)linux.intel.com>
Tested-by: Jacopo Mondi <jacopo(a)jmondi.org>
Change-Id: I923987ef21a971df9e32ca03f2da4dccdac07843
---
M src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/36722/1
diff --git a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
index d3fafe9..12c3c22 100644
--- a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
+++ b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
@@ -458,16 +458,16 @@
/* TODO: Read Voltage and Sleep values from Sensor Obj */
If (LEqual (AVBL, 1)) {
If (LEqual (STA, 0)) {
+ /* Enable VSIO regulator +
+ daisy chain */
+ DOVD(1)
+
If (LEqual (C0GP, 0)) {
\_SB.PCI0.I2C2.PMIC.CGP1()
\_SB.PCI0.I2C2.PMIC.CGP2()
C0GP = 1
}
- /* Enable VSIO regulator +
- daisy chain */
- DOVD(1)
-
VACT = 1
if (LNotEqual (ACVA, 109)) {
/* Set ANA at 2.8152V */
--
To view, visit https://review.coreboot.org/c/coreboot/+/36722
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I923987ef21a971df9e32ca03f2da4dccdac07843
Gerrit-Change-Number: 36722
Gerrit-PatchSet: 1
Gerrit-Owner: Sakari Ailus <sakari.ailus+coreboot.org(a)linux.intel.com>
Gerrit-MessageType: newchange
Maulik V Vaghela has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37376 )
Change subject: soc/intel/tigerlake: Change compilation based on TIGERLAKE_BASE
......................................................................
soc/intel/tigerlake: Change compilation based on TIGERLAKE_BASE
since we support JSL and TGL soc under tigerlake folder, we need to make
sure all soc related files get compiled based on
CONFIG_SOC_INTEL_TIGERLAKE_BASE and not only for Tigerlake.
We can control soc specific file compilation through Kconfig of
individual soc.
Change-Id: I1a663555d0bdf7588c4e12363375e7c90629f7d9
Signed-off-by: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
---
M src/soc/intel/tigerlake/Makefile.inc
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/37376/1
diff --git a/src/soc/intel/tigerlake/Makefile.inc b/src/soc/intel/tigerlake/Makefile.inc
index b402fa0..0d5aecb 100644
--- a/src/soc/intel/tigerlake/Makefile.inc
+++ b/src/soc/intel/tigerlake/Makefile.inc
@@ -1,4 +1,4 @@
-ifeq ($(CONFIG_SOC_INTEL_TIGERLAKE),y)
+ifeq ($(CONFIG_SOC_INTEL_TIGERLAKE_BASE),y)
subdirs-y += romstage
subdirs-y += ../../../cpu/intel/microcode
--
To view, visit https://review.coreboot.org/c/coreboot/+/37376
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1a663555d0bdf7588c4e12363375e7c90629f7d9
Gerrit-Change-Number: 37376
Gerrit-PatchSet: 1
Gerrit-Owner: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-MessageType: newchange
Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37312 )
Change subject: mb/google/poppy/rammus: add libgfxinit support
......................................................................
mb/google/poppy/rammus: add libgfxinit support
Add libgfxinit support for rammus. Use panel init values from VBT.
Test: build/boot rammus with libgfxinit and Tianocore payload
Change-Id: I4775a36d83bd67a0064a162effaf96649e9c186d
Signed-off-by: Matt DeVillier <matt.devillier(a)gmail.com>
---
M src/mainboard/google/poppy/Kconfig
M src/mainboard/google/poppy/Makefile.inc
A src/mainboard/google/poppy/gma-mainboard.ads
M src/mainboard/google/poppy/variants/rammus/devicetree.cb
4 files changed, 40 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/37312/1
diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index 9fafef7..e71c020 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -201,6 +201,7 @@
select DRIVERS_USB_ACPI
select INCLUDE_NHLT_BLOBS_RAMMUS if USE_BLOBS
select INTEL_GMA_HAVE_VBT
+ select MAINBOARD_HAS_LIBGFXINIT
select MAINBOARD_HAS_SPI_TPM_CR50
config VARIANT_SPECIFIC_OPTIONS_SORAKA
diff --git a/src/mainboard/google/poppy/Makefile.inc b/src/mainboard/google/poppy/Makefile.inc
index 030cf1d..9d26430 100644
--- a/src/mainboard/google/poppy/Makefile.inc
+++ b/src/mainboard/google/poppy/Makefile.inc
@@ -24,6 +24,7 @@
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
ramstage-y += mainboard.c
ramstage-y += ramstage.c
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
smm-y += smihandler.c
smm-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
diff --git a/src/mainboard/google/poppy/gma-mainboard.ads b/src/mainboard/google/poppy/gma-mainboard.ads
new file mode 100644
index 0000000..87cdb5e
--- /dev/null
+++ b/src/mainboard/google/poppy/gma-mainboard.ads
@@ -0,0 +1,31 @@
+--
+-- This file is part of the coreboot project.
+--
+-- 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.
+--
+
+with HW.GFX.GMA;
+with HW.GFX.GMA.Display_Probing;
+
+use HW.GFX.GMA;
+use HW.GFX.GMA.Display_Probing;
+
+private package GMA.Mainboard is
+
+ ports : constant Port_List :=
+ (Internal,
+ DP1,
+ DP2,
+ HDMI1,
+ HDMI2,
+ others => Disabled);
+
+end GMA.Mainboard;
diff --git a/src/mainboard/google/poppy/variants/rammus/devicetree.cb b/src/mainboard/google/poppy/variants/rammus/devicetree.cb
index 70a4667..f44f9ce 100644
--- a/src/mainboard/google/poppy/variants/rammus/devicetree.cb
+++ b/src/mainboard/google/poppy/variants/rammus/devicetree.cb
@@ -1,5 +1,12 @@
chip soc/intel/skylake
+ register "gpu_pp_up_delay_ms" = "200"
+ register "gpu_pp_down_delay_ms" = "500"
+ register "gpu_pp_cycle_delay_ms" = "600"
+ register "gpu_pp_backlight_on_delay_ms" = " 1"
+ register "gpu_pp_backlight_off_delay_ms" = "200"
+ register "gpu_pch_backlight_pwm_hz" = "1000"
+
# Deep Sx states
register "deep_s3_enable_ac" = "0"
register "deep_s3_enable_dc" = "0"
--
To view, visit https://review.coreboot.org/c/coreboot/+/37312
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4775a36d83bd67a0064a162effaf96649e9c186d
Gerrit-Change-Number: 37312
Gerrit-PatchSet: 1
Gerrit-Owner: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange