Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45125 )
Change subject: mb/*: devicetree: drop now unneeded USBx_PORT_EMPTY
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/45125
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I899349c49fa7de1c1acdca24994ebe65c01d80c6
Gerrit-Change-Number: 45125
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Piotr Król <piotr.krol(a)3mdeb.com>
Gerrit-Reviewer: Wim Vervoorn <wvervoorn(a)eltan.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sun, 06 Sep 2020 14:33:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45126 )
Change subject: mb/system76/lemp9: enable eDP in Fsp
......................................................................
Set Ready For Review
--
To view, visit https://review.coreboot.org/c/coreboot/+/45126
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ice5f55e07ea9e028a0b6a904511eb59830351738
Gerrit-Change-Number: 45126
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Sun, 06 Sep 2020 14:31:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Hello Felix Singer, build bot (Jenkins), Nico Huber, Michał Żygowski, Frans Hendriks, Paul Menzel, Angel Pons, Wim Vervoorn, Piotr Król,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45125
to look at the new patch set (#2).
Change subject: mb/*: devicetree: drop now unneeded USBx_PORT_EMPTY
......................................................................
mb/*: devicetree: drop now unneeded USBx_PORT_EMPTY
Setting USBx_PORT_EMPTY is not a requirement anymore, since unset
devicetree settings default to 0 and the OC pin now only gets set when
the USB port is enabled (see CB:45112).
Thus, drop the setting from all devicetrees.
Change-Id: I899349c49fa7de1c1acdca24994ebe65c01d80c6
Signed-off-by: Michael Niewöhner <foss(a)mniewoehner.de>
---
M src/mainboard/facebook/monolith/devicetree.cb
M src/mainboard/google/dedede/variants/baseboard/devicetree.cb
M src/mainboard/google/dedede/variants/madoo/overridetree.cb
M src/mainboard/google/deltaur/variants/baseboard/devicetree.cb
M src/mainboard/google/drallion/variants/drallion/devicetree.cb
M src/mainboard/google/eve/devicetree.cb
M src/mainboard/google/fizz/variants/baseboard/devicetree.cb
M src/mainboard/google/fizz/variants/endeavour/overridetree.cb
M src/mainboard/google/glados/variants/caroline/overridetree.cb
M src/mainboard/google/glados/variants/cave/overridetree.cb
M src/mainboard/google/hatch/variants/akemi/overridetree.cb
M src/mainboard/google/hatch/variants/baseboard/devicetree.cb
M src/mainboard/google/hatch/variants/duffy/overridetree.cb
M src/mainboard/google/hatch/variants/faffy/overridetree.cb
M src/mainboard/google/hatch/variants/kaisa/overridetree.cb
M src/mainboard/google/hatch/variants/kohaku/overridetree.cb
M src/mainboard/google/hatch/variants/nightfury/overridetree.cb
M src/mainboard/google/hatch/variants/noibat/overridetree.cb
M src/mainboard/google/hatch/variants/puff/overridetree.cb
M src/mainboard/google/hatch/variants/stryke/overridetree.cb
M src/mainboard/google/hatch/variants/wyvern/overridetree.cb
M src/mainboard/google/poppy/variants/atlas/devicetree.cb
M src/mainboard/google/poppy/variants/baseboard/devicetree.cb
M src/mainboard/google/poppy/variants/nocturne/devicetree.cb
M src/mainboard/google/poppy/variants/rammus/devicetree.cb
M src/mainboard/google/poppy/variants/soraka/devicetree.cb
M src/mainboard/google/sarien/variants/arcada/devicetree.cb
M src/mainboard/google/sarien/variants/sarien/devicetree.cb
M src/mainboard/google/volteer/variants/baseboard/devicetree.cb
M src/mainboard/google/volteer/variants/halvor/overridetree.cb
M src/mainboard/google/volteer/variants/lindar/overridetree.cb
M src/mainboard/google/volteer/variants/malefor/overridetree.cb
M src/mainboard/google/volteer/variants/terrador/overridetree.cb
M src/mainboard/google/volteer/variants/todor/overridetree.cb
M src/mainboard/intel/cannonlake_rvp/variants/cnl_y/devicetree.cb
M src/mainboard/intel/coffeelake_rvp/variants/cfl_s/overridetree.cb
M src/mainboard/intel/kblrvp/variants/rvp3/overridetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up3/devicetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up4/devicetree.cb
M src/mainboard/prodrive/hermes/variants/baseboard/overridetree.cb
M src/mainboard/protectli/vault_kbl/devicetree.cb
M src/mainboard/purism/librem_whl/devicetree.cb
M src/mainboard/supermicro/x11-lga1151-series/devicetree.cb
43 files changed, 0 insertions(+), 211 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/45125/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/45125
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I899349c49fa7de1c1acdca24994ebe65c01d80c6
Gerrit-Change-Number: 45125
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Piotr Król <piotr.krol(a)3mdeb.com>
Gerrit-Reviewer: Wim Vervoorn <wvervoorn(a)eltan.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello Felix Singer, build bot (Jenkins), Nico Huber, Patrick Georgi, Jeremy Soller, Christian Walter, Paul Menzel, Angel Pons, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/45112
to look at the new patch set (#6).
Change subject: soc/intel: skl,cnl,icl,jsl,tgl: disable usb over-current pin by default
......................................................................
soc/intel: skl,cnl,icl,jsl,tgl: disable usb over-current pin by default
Fsp configures the USB over-current pin and overrides the according pad
configuration to NF1, regardless of the port being configured as disabled.
Thus, set the OC pin to 0xff ("disabled") in this case to prevent this.
This allows us to skip setting USBx_PORT_EMPTY in the devicetree for
disabled USB ports.
Change-Id: Ib8ea2ea26c0623d4db910e487b37255e907b299d
Signed-off-by: Michael Niewöhner <foss(a)mniewoehner.de>
---
M src/soc/intel/cannonlake/fsp_params.c
M src/soc/intel/icelake/fsp_params.c
M src/soc/intel/jasperlake/fsp_params.c
M src/soc/intel/skylake/chip.c
M src/soc/intel/tigerlake/fsp_params.c
5 files changed, 50 insertions(+), 30 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/45112/6
--
To view, visit https://review.coreboot.org/c/coreboot/+/45112
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib8ea2ea26c0623d4db910e487b37255e907b299d
Gerrit-Change-Number: 45112
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/libgfxinit/+/42359 )
Change subject: gma baytrail: Add connectors support
......................................................................
Patch Set 53:
(1 comment)
https://review.coreboot.org/c/libgfxinit/+/42359/50/common/valleyview/hw-gf…
File common/valleyview/hw-gfx-gma-connectors.adb:
https://review.coreboot.org/c/libgfxinit/+/42359/50/common/valleyview/hw-gf…
PS50, Line 98: end Post_On;
> I'm still not sure if I should change this. For DVI and HDMI, Wait_Port_Ready works as intended.
It's also what the PRM suggests. And it's definitely something to try if DP
isn't working.
Generally, if there is something that might work either way, it's better
to do it the way that seems more likely to be the correct one. If you have
to change it later because of a corner case that doesn't work, all the
testing until then was for naught.
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/42359
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: If81b1268c69b64fa30384f629f1eb43bda15ef52
Gerrit-Change-Number: 42359
Gerrit-PatchSet: 53
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-CC: Name of user not set #1002789
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Sun, 06 Sep 2020 11:41:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/libgfxinit/+/44796 )
Change subject: baytrail: Add power and clocks support
......................................................................
baytrail: Add power and clocks support
Change-Id: I1e359882b78ed7436ec90f2ac8c4276f70eca1b0
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M common/valleyview/Makefile.inc
A common/valleyview/hw-gfx-gma-power_and_clocks.adb
A common/valleyview/hw-gfx-gma-power_and_clocks.ads
3 files changed, 189 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/96/44796/1
diff --git a/common/valleyview/Makefile.inc b/common/valleyview/Makefile.inc
index 39241c2..12d31d1 100644
--- a/common/valleyview/Makefile.inc
+++ b/common/valleyview/Makefile.inc
@@ -9,8 +9,6 @@
gfxinit-y += ../g45/hw-gfx-gma-gmch-vga.ads
gfxinit-y += ../g45/hw-gfx-gma-port_detect.adb
gfxinit-y += ../g45/hw-gfx-gma-gmch.ads
-gfxinit-y += ../g45/hw-gfx-gma-power_and_clocks.ads
-gfxinit-y += ../g45/hw-gfx-gma-power_and_clocks.adb
gfxinit-y += hw-gfx-gma-dpio.adb
gfxinit-y += hw-gfx-gma-dpio.ads
@@ -18,3 +16,5 @@
gfxinit-y += hw-gfx-gma-iosf.ads
gfxinit-y += hw-gfx-gma-plls.adb
gfxinit-y += hw-gfx-gma-plls.ads
+gfxinit-y += hw-gfx-gma-power_and_clocks.ads
+gfxinit-y += hw-gfx-gma-power_and_clocks.adb
diff --git a/common/valleyview/hw-gfx-gma-power_and_clocks.adb b/common/valleyview/hw-gfx-gma-power_and_clocks.adb
new file mode 100644
index 0000000..f77aef1
--- /dev/null
+++ b/common/valleyview/hw-gfx-gma-power_and_clocks.adb
@@ -0,0 +1,144 @@
+--
+-- Copyright (C) 2020 Angel Pons <th3fanbus(a)gmail.com>
+--
+-- 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.Time;
+with HW.GFX.GMA.Config;
+with HW.GFX.GMA.DPIO;
+with HW.GFX.GMA.IOSF;
+with HW.GFX.GMA.PLLs;
+with HW.GFX.GMA.Registers;
+
+with HW.Debug;
+with GNAT.Source_Info;
+
+package body HW.GFX.GMA.Power_And_Clocks is
+
+ CCK_FUSE_REG : constant := 16#0008#;
+ CCK_DISPLAY_CLOCK_CONTROL : constant := 16#006b#;
+ CCK_DISPLAY_REF_CLOCK_CONTROL : constant := 16#006c#;
+
+ CCK_FREQUENCY_VALUES : constant := 16#001f#;
+ CCK_FREQUENCY_STATUS : constant := 16#1f00#;
+
+ PUNIT_PWRGT_CONTROL : constant := 16#0060#;
+ PUNIT_PWRGT_STATUS : constant := 16#0061#;
+
+ PUNIT_PWRGT_DPIO_MSK : constant := 3 * 2 ** 6;
+
+ DPIO_CTL_CMNRST : constant := 1 * 2 ** 0;
+
+ -- intel_display.c: vlv_get_hpll_vco()
+ function Vlv_Get_HPLL_Vco return Int64
+ is
+ Vco_Freq : constant array (0 .. 3) of Int64 := (800, 1600, 2000, 2400);
+ Hpll_Sel : Word32;
+ begin
+ -- Obtain SKU information
+ IOSF.Vlv_Cck_Read (CCK_FUSE_REG, Hpll_Sel);
+
+ return 1_000_000 * Vco_Freq (Natural (Hpll_Sel and 3));
+ end Vlv_Get_HPLL_Vco;
+
+ -- intel_display.c: vlv_get_cck_clock()
+ function Vlv_Get_Cck_Clock
+ (Register : in Word32;
+ Ref_Freq : in Int64) return Int64
+ is
+ Value : Word32;
+ Divider : Word32;
+ begin
+ IOSF.Vlv_Cck_Read (Register, Value);
+ Divider := Value and CCK_FREQUENCY_VALUES;
+
+ if Divider * 2 ** 8 /= (Value and CCK_FREQUENCY_STATUS) then
+ pragma Debug (Debug.Put (GNAT.Source_Info.Enclosing_Entity));
+ pragma Debug (Debug.Put_Line (" WARNING: Clock change in progress!"));
+ end if;
+
+ return (Ref_Freq + Ref_Freq) / Int64 (Divider + 1);
+ end Vlv_Get_Cck_Clock;
+
+ procedure Initialize
+ is
+ Hpll_Vco : Int64;
+ Value : Word32;
+ begin
+ pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
+
+ -- Power Gate Status: This register indicates the status of the voltage
+ -- islands for the various blocks that the PUNIT controls. This register
+ -- is updated by the firmware after servicing a request from the driver
+ -- to power up/down of the various islands. The requests are done through
+ -- an analogous Power Gate Control register with the same bit layout.
+ --
+ -- Each island is controlled by a 2-bit field:
+ -- 00 -- no clock nor power gating
+ -- 01 -- clock gating
+ -- 10 -- reset
+ -- 11 -- power gating
+ IOSF.Vlv_Punit_Read (PUNIT_PWRGT_STATUS, Value);
+
+ -- Check if we need to ungate the Gunit
+ if (Value and PUNIT_PWRGT_DPIO_MSK) /= 0 then
+ pragma Debug (Debug.Put_Line ("Gunit is not ungated! Ungating..."));
+
+ IOSF.Vlv_Punit_Write (PUNIT_PWRGT_CONTROL, PUNIT_PWRGT_DPIO_MSK);
+ Time.M_Delay (2);
+ IOSF.Vlv_Punit_Write (PUNIT_PWRGT_CONTROL, 0);
+ Time.M_Delay (2);
+ IOSF.Vlv_Punit_Read (PUNIT_PWRGT_STATUS, Value);
+ end if;
+
+ -- De-assert DPIO common reset
+ Registers.Set_Mask (Registers.VLV_DPIO_CTL, DPIO_CTL_CMNRST);
+
+ -- Before we start anything on Display pipeline, let's ask the CCU to
+ -- give us Spread Spectrum + Bend for the display clocks.
+ IOSF.Vlv_Ccu_Read (16#0114#, Value);
+ IOSF.Vlv_Ccu_Write (16#0114#, Value or 16#0003_0003#);
+
+ Hpll_Vco := Vlv_Get_HPLL_Vco;
+
+ -- intel_cdclk.c: vlv_get_cdclk()
+ Config.CDClk := Vlv_Get_Cck_Clock (CCK_DISPLAY_CLOCK_CONTROL, Hpll_Vco);
+ Config.Max_CDClk := 400_000_000;
+
+ -- intel_cdclk.c: vlv_hrawclk()
+ Config.Raw_Clock := Vlv_Get_Cck_Clock (CCK_DISPLAY_REF_CLOCK_CONTROL, Hpll_Vco);
+
+ end Initialize;
+
+ procedure Limit_Dotclocks
+ (Configs : in out Pipe_Configs;
+ CDClk_Switch : out Boolean)
+ is
+ begin
+ Config_Helpers.Limit_Dotclocks (Configs, Config.CDClk * 90 / 100);
+ CDClk_Switch := False;
+ end Limit_Dotclocks;
+
+ procedure Post_All_Off is
+ begin
+ pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
+
+ -- Clear latency values to prevent flickering display without activity
+ Registers.Write (Registers.VLV_DDL1, 0);
+ Registers.Write (Registers.VLV_DDL2, 0);
+
+ -- Assert DPIO common reset, clear SFR bypass and modesel bits
+ Registers.Write (Registers.VLV_DPIO_CTL, 0);
+
+ end Post_All_Off;
+
+end HW.GFX.GMA.Power_And_Clocks;
diff --git a/common/valleyview/hw-gfx-gma-power_and_clocks.ads b/common/valleyview/hw-gfx-gma-power_and_clocks.ads
new file mode 100644
index 0000000..9997644
--- /dev/null
+++ b/common/valleyview/hw-gfx-gma-power_and_clocks.ads
@@ -0,0 +1,43 @@
+--
+-- Copyright (C) 2020 Angel Pons <th3fanbus(a)gmail.com>
+--
+-- 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.Config_Helpers;
+
+private package HW.GFX.GMA.Power_And_Clocks is
+
+ procedure Initialize;
+
+ procedure Limit_Dotclocks
+ (Configs : in out Pipe_Configs;
+ CDClk_Switch : out Boolean)
+ with
+ Post =>
+ not CDClk_Switch and
+ Config_Helpers.Stable_FB (Configs'Old, Configs);
+
+ procedure Update_CDClk (Configs : in out Pipe_Configs) is null;
+
+ procedure Enable_CDClk is null;
+
+ procedure Pre_All_Off is null;
+
+ procedure Post_All_Off;
+
+ procedure Power_Set_To (Configs : Pipe_Configs) is null;
+
+ procedure Power_Up (Old_Configs, New_Configs : Pipe_Configs) is null;
+
+ procedure Power_Down (Old_Configs, Tmp_Configs, New_Configs : Pipe_Configs) is null;
+
+end HW.GFX.GMA.Power_And_Clocks;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/44796
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: I1e359882b78ed7436ec90f2ac8c4276f70eca1b0
Gerrit-Change-Number: 44796
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange