Sakari Ailus has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36744 )
Change subject: mb/google/poppy: Rework OV13858 power on sequence
......................................................................
mb/google/poppy: Rework OV13858 power on sequence
In particular:
- Set voltage before enabling regulators
- Enable regulators and the clock without any sleeping in between. There's
no need to wait there.
- Sleep 1 ms in order to wait for regulator voltages settling before
lifting xshutdown.
Signed-off-by: Sakari Ailus <sakari.ailus(a)linux.intel.com>
Tested-by: Jacopo Mondi <jacopo(a)jmondi.org>
Change-Id: I0f8857ae369d5038f293a0e2c48c681df535ad86
---
M src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
1 file changed, 17 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/36744/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 355b255..fc23d06 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
@@ -468,23 +468,33 @@
C0GP = 1
}
- VACT = 1
if (LNotEqual (ACVA, 109)) {
/* Set ANA at 2.8152V */
ACVA = 109
}
- Sleep(3)
+ VACT = 1
- \_SB.PCI0.I2C2.PMIC.CLKE()
- CLE0 = 1
-
- VDCT = 1
if (LNotEqual (DCVA, 12)) {
/* Set CORE at 1.2V */
DCVA = 12
}
- Sleep(3)
+ VDCT = 1
+
+ \_SB.PCI0.I2C2.PMIC.CLKE()
+ CLE0 = 1
+
+ /*
+ * Wait for all regulator
+ * outputs to settle.
+ */
+ Sleep(1)
+
\_SB.PCI0.I2C2.PMIC.CRST(1)
+
+ /*
+ * 5 ms needed before
+ * streaming on.
+ */
Sleep(5)
STA = 1
--
To view, visit https://review.coreboot.org/c/coreboot/+/36744
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0f8857ae369d5038f293a0e2c48c681df535ad86
Gerrit-Change-Number: 36744
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/+/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
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37390 )
Change subject: superio/aspeed: Remove unused aspeed include path
......................................................................
superio/aspeed: Remove unused aspeed include path
Working on some other code, I noticed that superio/aspeed was added as
an include path even though I wasn't using it. I investigated and found
that NOTHING is using it. The files in the aspeed directory all
reference files in their own directory.
The supermicro x11-lga1151-series boards are the only ones using this
SIO.
TEST=util/abuild/abuild -t supermicro/x11-lga1151-series
Signed-off-by: Martin Roth <martin(a)coreboot.org>
Change-Id: I377066451a50452c17c9bfaa0f815f69e039984e
---
M src/superio/aspeed/Makefile.inc
1 file changed, 0 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/37390/1
diff --git a/src/superio/aspeed/Makefile.inc b/src/superio/aspeed/Makefile.inc
index 6d0cc26..b9494fa 100644
--- a/src/superio/aspeed/Makefile.inc
+++ b/src/superio/aspeed/Makefile.inc
@@ -20,5 +20,3 @@
subdirs-y += ast2400
subdirs-y += common
-
-CPPFLAGS_common += -Isrc/superio/aspeed
--
To view, visit https://review.coreboot.org/c/coreboot/+/37390
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I377066451a50452c17c9bfaa0f815f69e039984e
Gerrit-Change-Number: 37390
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange