Commit graph

62,395 commits

Author SHA1 Message Date
Keith Hui
d46776f741 mb/asus/p8x7x-series: Drop unused MRC devicetree setting
Drop MRC setting usb3.hs_port_switch_mask that since commit ee12634872
("nb/sandybridge,sb/bd82x6x: Configure USB from southbridge devicetree")
mirrors xhci_switchable_ports and is no longer used separately.

Change-Id: Ic1937461ab45f74f29521a8692629290bfd3c560
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85821
Reviewed-by: Nicholas Chin <nic.c3.14@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 20:36:21 +00:00
Keith Hui
9b1ac49a49 mb/asus/p8x7x-series: Streamline devicetree configs
Drop PCI(e) devices from devicetree that remain off or unchanged from
chipset defaults.

TEST=Timeless binaries did not change across entire family.

Change-Id: I4feb88a78f72952bed049505073aed00d2120df3
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85797
Reviewed-by: Nicholas Chin <nic.c3.14@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 20:36:14 +00:00
Riku Viitanen
06ff3381a5 util/autoport/bd82x6x: Output the correct PCH version comment
TEST=Tested with logs from 6-series and 7-series boards.

Change-Id: I5cd99be965b41b49845a9a1072868ba43b445a79
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85823
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Chin <nic.c3.14@gmail.com>
2025-01-22 20:35:30 +00:00
Riku Viitanen
66cd477bd7 util/autoport/{bd82x6x,sandybridge}: Don't generate redundant comments
Since the aliases are used and already contain the device name,
there's reason to generate these in the first place.

TEST=Ran autoport with logs from ASRock Z77 Extreme4.

Change-Id: I3378801f5a997a802da61f2b7c4e820f39064019
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85822
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 20:35:11 +00:00
Riku Viitanen
cc10bbb21c mb/asrock/h77pro4-m/dt: Remove superfluous comments
Change-Id: Ie8d8d5287af8f3084f23c9d882202aa6ac8d4c5f
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85761
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
2025-01-22 20:33:53 +00:00
Riku Viitanen
870f39a8dd mb/asrock/h77pro4-m: Add SMBIOS slot descriptions
Based mostly on the comments in the file. Physical slot lengths
checked from manufacturer's specs online.

TEST: It still builds

Change-Id: I706910dd192ca3415082955a7611d17702d3cfba
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85760
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
2025-01-22 20:33:24 +00:00
Tim Crawford
dcf3918f75 mb/system76/mtl: Enable NPU
Customers have asked that the NPU device be available.

Test: Verified the device shows up in lspci.

Change-Id: I2b5c3030c6378c0998a2ac792126c15d2e17bbf9
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85721
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 20:32:43 +00:00
Riku Viitanen
a2aeba3181 Documentation: Fix snb/ivb nri frequency table
2*8*133 = 2133

Change-Id: Ic5e6120aaa9fe7db2a3c1651d2ea9443a24e7c4d
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85757
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nicholas Chin <nic.c3.14@gmail.com>
2025-01-22 20:32:13 +00:00
Tyler Wang
469f752ce0 mb/google/rex/var/kanix: Enable CNVI WLAN based on fw_config
BUG=b:377377766
TEST=emerge-rex coreboot pass

Change-Id: Ibdf01e16267aa64bcf376001e108e2eaa677aaa6
Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85534
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2025-01-22 20:31:27 +00:00
Sowmya Aralguppe
7c76021276 soc/intel/pantherlake: Adding device id for Crashlog and Telemetry
This patch adds device id for Crashlog and Telemetry. CPU crashlog
record is stored in punit SRAM.
Source: EDS 815002

BUG=None
TEST=Build fatcat and boot with Panther Lake SoC with added
device id.

Signed-off-by: Sowmya Aralguppe <sowmya.aralguppe@intel.com>
Change-Id: I2959623986108a2c5e3dce16e892913a42d71755
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85372
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Jamie Ryu <jamie.m.ryu@intel.com>
2025-01-22 20:30:44 +00:00
Nicholas Sudsgaard
b5704497fa ec/acpi/ec.c: Promote timeout messages to errors
A timeout when attempting to read/write to an EC should be treated as
an error, as it could potentially cause unwanted or unexpected behavior
from the device.

Change-Id: I60be6191dcd8ff576fa525f08720b6ea2d0a7454
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85229
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-01-22 20:20:44 +00:00
Simon Yang
997f7dedf3 elogtool: Correct invalid strings for wake source
elogtool output invalid strings for below two ids:

ELOG_WAKE_SOURCE_PME_TCSS_XDCI    0x2f
ELOG_WAKE_SOURCE_PME_TCSS_DMA     0x30

BUG=None
TEST=None

Change-Id: Ib68434fd675d3d32241b54161297dba66e5ea548
Signed-off-by: Simon Yang <simon1.yang@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85155
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 20:19:50 +00:00
Keith Hui
8da3a048a8 mb/*: Drop xhci_overcurrent_mapping for the easy ones
This is now copied from USBOCM1 built with main USB port config.

Boards patched here have matching EHCI and xHCI overcurrent mappings.

Change-Id: I36944e2f2ed265ee492019b75b7dd8b95ca26dbb
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85923
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-01-22 20:18:46 +00:00
Jarried Lin
48aaf5d305 mb/google/rauru: Enable vcore DVFS in romstage
TEST=Build pass.
BUG=b:343878736

Change-Id: Idcd9754c1974f1d6fdb26d7c6af1e2863cb724f7
Signed-off-by: Kunlong Wang <kunlong.wang@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86071
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2025-01-22 15:43:13 +00:00
Jarried Lin
097376c150 soc/mediatek/mt8196: Add vcore DVFS settings
Add vcore settings, so that other tinysys (such as mcupm, spm, etc.)
will reference these value during initialization.

BUG=b:343878736
TEST=Build pass, boot successful. Check log with:
[INFO]	Vcore DVFS settings done

Change-Id: I0d3e1d6ea648af938d41a5c9461cdd2972371177
Signed-off-by: Kunlong Wang <kunlong.wang@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86070
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-01-22 15:43:02 +00:00
Jarried Lin
df73e3008d mb/google/rauru: Add DVFS support in romstage
BUG=b:317009620
TEST=Build passed, boot successful. Verified that the available CPU
frequency ranges are correct using the command:
cat /sys/devices/system/cpu/cpufreq/policy*/scaling_available_frequencies

Change-Id: I6f290946365b4c5a650651ebea30ffc76583d2b2
Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86042
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2025-01-22 15:42:47 +00:00
Nancy Lin
d30f08e295 mb/google/rauru: Configure firmware display for eDP panel
Add eDP panel power-on sequences and initialize the display in the
ramstage. The mt6373_set_vcn33_3_voltage function sets the voltage
required to power on the eDP panel.

TEST=Build pass, the firmware screen displays correctly.
BUG=b:343351631, b:353464237

Signed-off-by: Nancy Lin <nancy.lin@mediatek.corp-partner.google.com>
Change-Id: Ic928b2478c41ccd03223fd2b73d9e81d303a2036
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85952
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-01-22 13:24:37 +00:00
Bincai Liu
5a4469300e mb/google/rauru: Add panel driver in mainboard
Add panel driver in mainboard for rauru project and support OLED eDP
panel.

TEST=check edp training pass and show log:
EQ training pass
BUG=b:343351631

Signed-off-by: Bincai Liu <bincai.liu@mediatek.corp-partner.google.com>
Change-Id: Iea610c97351beb94a49cc1044701a523b7c85a6e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85951
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2025-01-22 13:24:28 +00:00
Sean Rhodes
4cb2692195 ec/starlabs/merlin/acpi: Move Q Events under EC device
For the Q events to be used, they need to sit under the EC device
in ACPI. Move them accordingly.

Change-Id: I58a41ae660ec466a08d4c290ff820b713b866f4f
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86087
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:54 +00:00
Sean Rhodes
50e0fdf975 mb/starlabs/starbook/adl_n: Remove switch property from back USB port
The back USB port is a data-only port without switching, so
update the ACPI configuration accordingly.

Change-Id: Ic6b77f44a2d2607d201a2b097cea41aa361ebbee
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86086
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:50 +00:00
Sean Rhodes
d1e0681e5f mb/starlabs/starbook/adl_n: Fix PLD Group
The group number was incorrect.

Change-Id: I87928f190af2ed7fd00cb08283036aede7fd6383
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86083
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:44 +00:00
Sean Rhodes
bf2d75cf37 mb/starlabs/starbook/adl_n: Fix inconsistant PLD Name
Correct the position of the word "Back" so it's the same each
interface of the port.

Change-Id: I10285c081838b358f8708a69317ba6bf3b551eb2
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86082
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 08:20:40 +00:00
Sean Rhodes
6c520bc585 mb/starlabs/starbook/adl_n: Correct the DRAM Sleep GPIO config
This is NF2, not NF1.

Change-Id: Ie99903b0947165a70d260f383889421500f10b4c
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86077
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:36 +00:00
Sean Rhodes
e7343fd018 mb/starlabs/starbook/adl_n: Set TCP0 HPD GPIO to DEEP
Set the pad to DEEP, instead of PLTRST as this is more reliable
when resuming from S3.

Change-Id: Ida3713bbbce1eb9c6793fec2172005b4dfd54e86
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86076
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:32 +00:00
Sean Rhodes
6beea08b31 mb/starlabs/starbook/adl_n: Disconnect unused GPIOs
These GPIO's are not used, so disconnect them or set the outputs
low accordingly.

Change-Id: I5e5f7587b59da0b91e7c247b4813c5e78d2c1313
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86075
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:27 +00:00
Sean Rhodes
b3718dee9c mb/starlabs/starbook/adl_n: Remove SSD detect delay
This was copied from `starbook/adl` and is not needed.

Change-Id: I9a234d8653c026b09411aa5b63ecba477aef325f
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86074
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:21 +00:00
Sean Rhodes
1280ffbacd mb/starlabs/starlite_adl: Enable DRAM sleep GPIO
Change-Id: Ic07cace736ce9d97bf7352b17951fe706b57ecf3
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86067
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:17 +00:00
Sean Rhodes
dcd50d45dc mb/starlabs/starlite_adl: Enable TLS Confidentiality GPIO
This board does not have a 20K Pull Down resistor fitted here,
meaning this will not change anything. However, it unifies the
the configuration with the other Star Labs boards.

Change-Id: Iee0adea21c124e0a421a1506310944cc883a73fb
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86066
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:20:12 +00:00
Sean Rhodes
d7c093978f mb/starlabs/starlite_adl: Disconnect unused GPIOs
These GPIO's are not used, so disconnect them.

Change-Id: I68e0c8c840c811de733775e7a6f79d9d9e91bb8c
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86065
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 08:20:06 +00:00
Sean Rhodes
70aa7c1e11 mb/starlabs/starlite_adl: Select more appropriate macros for USB ports
Add the trace lengths as comments, and update the macros used for the
USB ports accordingly.

Like other boards, avoid the `USB2_PORT_TYPE_C` macro, as it makes
ports behave inconsistantly.

Change-Id: Id193b3ed86c58aedc7d5a1f384f2829a2bf18671
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85974
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 08:20:03 +00:00
Sean Rhodes
163dc842b1 mb/starlabs/starlite_adl: Correct USB port configuration for cameras
Both cameras share the same USB 2.0 interface, rather than using their
own port. Update the configuration to match this.

Change-Id: Ia2d8698394de69af53489e3a08c7fe7b4f2fbc07
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86064
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 08:19:58 +00:00
Sean Rhodes
7f18a346b6 mb/starlabs/starlite_adl: Correct USB Port comments
The comments are the wrong way round.

Change-Id: Ifd46cd7e633f37e57213fffee4f70a7262894100
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86063
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-01-22 08:19:53 +00:00
Nicholas Chin
8dda86c3e1 util/cbfstool: Remove existing file for add-int command
Since add-int is intended for manipulating options stored as integers in
CBFS (such as SeaBIOS runtime config options), removing the file so that
it can be re-added with a new value is a common action. Attempt to
remove the existing integer automatically if it already exists to remove
the need for the extra step.

Change-Id: I5a0ac409fc9b91a4f7c0c35650875d6211ac2b25
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86009
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 06:41:31 +00:00
Yu-Ping Wu
7b6bbb7ef5 soc/mediatek: Fix register access for EINT
We should be writing to the address of reg[i], instead of the address
whose value is reg[i].

Change-Id: I4fb78f974155725a91aad3a5450733d24b57af15
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86073
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-01-22 04:01:27 +00:00
Kenneth Chan
72630183a1 mb/google/rex/var/kanix: Update LAN settings for EVT
According to the EVT's circuit design changes, update the following LAN
settings:
1. set root port to 7
2. set clock source/request to 2

BUG=b:386025819
BRANCH=firmware-rex-15709.B

Change-Id: Ia8be74c601a536f1aa932dd6c14ae3f5068d0a7f
Signed-off-by: Kenneth Chan <kenneth.chan@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86072
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-22 03:33:42 +00:00
Nicholas Chin
368f721f71 drivers/option: Add CBFS file based option backend
Add a new option backend that uses values stored in CBFS files, similar
to the SeaBIOS runtime config options stored in files with the etc/
prefix. Options should be stored in CBFS with the option/ prefix. Values
can be set using `cbfstool coreboot.rom add-int -n option/<option-name>
-i <value>`. For simplicity, options should be stored in the COREBOOT
(RO) FMAP region, which is the default for cbfstool. This backend is not
available in SMM due to CBFS dependencies on vboot functions which are
not added to SMM, and thus the fallback will be returned by calls to
get_uint_option() in SMM.

Tested with QEMU Q35 by setting various options for "sata_mode" and
observing the console output for the SATA controller mode during
i82801ix_sata initialization.

Change-Id: Ifc0439ee42f13f49ae54d4855d1d9333c39b01f5
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85905
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
2025-01-22 03:25:40 +00:00
Jian Tong
403f5f49bc mb/google/brox/var/lotso: Update gpio setting
For edge trigger,the default is "rising edge"(invert=0),
and it needs to "invert" (invert=1) for falling edge.

BUG=b:359437265
TEST=emerge-brox coreboot chromeos-bootimage
     oscilloscope measurement interrupt is triggered by falling edge

Change-Id: I132b43fd552d2babfbcd497bc6a017f354c69e10
Signed-off-by: Jian Tong <tongjian@huaqin.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85966
Reviewed-by: Bob Moragues <moragues@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marx Wang <marx.wang@intel.corp-partner.google.com>
2025-01-22 00:43:38 +00:00
Kapil Porwal
f4bb16d5c2 commonlib/dt: Fix recursive call for _dt_find_node
Correctly call _dt_find_node recursively to avoid incorrect
re-initialization of addrcp and sizecp.

BUG=none
TEST=Test coverage can pass.

Change-Id: Icad075485f0a8a22138f1a0e1885405749ae5253
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86029
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2025-01-22 00:34:39 +00:00
Jon Murphy
2f808d0ab6 util/crossgcc: Update DESTDIR variable use
Update DESTDIR variable use to prevent unintended separation and
globbing.

BUG=None
TEST=./util/crossgcc/buildgcc

Change-Id: I9eb833b11f20b72db88e4094a3297a1d8891bac2
Signed-off-by: Jon Murphy <jpmurphy@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85718
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-21 20:24:13 +00:00
Sean Rhodes
10fbdbf56c soc/intel/alderlake: Change the maximum C state to C8
Change the maximum C state allowed when S0ix isn't used to C8
from C7S to solve the following error:
    MWAIT C-state 0x33 not supported by HW (0x1010)

This is a result of copy-pasta from older SOCs, as C7 is not
supported on Alder Lake.

Tested on `starbook_adl` with Ubuntu 24.04 by booting, and
performing multiple S3 cycles.

Change-Id: Idb3e4d34361c8ac25ef144c0d1cda9f801ed0c54
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84622
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
2025-01-21 14:59:39 +00:00
Jarried Lin
905684a945 soc/mediatek/mt8196: Fix issue with incomplete modem disable
If the modem is not completely disabled, it will cause issues with
suspend to RAM. Update the condition check in MD1_PWR_STA and increased
the MAX_RETRY_COUNT from 200 to 4000 to make sure that the modem has
sufficient time to completely disable before proceeding.

TEST=Measure the power and ensure that the DRAM enters self-refresh
mode.
BUG=b:377628718

Change-Id: I6e915d26e5b3caee36f4726bc2fc1c53cfc17bfc
Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86069
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2025-01-21 14:18:48 +00:00
Nancy Lin
fb2655d06a soc/mediatek/mt8196: Add DDP driver
Add DDP (display data pipe) driver that supports main path to eDP panel.

TEST=build pass and firmware display ok
BUG=b:343351631
Signed-off-by: Nancy Lin <nancy.lin@mediatek.corp-partner.google.com>
Change-Id: I006911e83d940c1eec7135a6a0c36fbfa2aad466
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85950
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-01-21 14:16:25 +00:00
Jarried Lin
f825971a56 soc/mediatek/mt8196: Add eDP driver
Add eDP driver to adjust training flow and turn off PHY power before PHY
configuration to prevent potential link training failures.

DISP_DVO is a highly advanced variant of DP_INTF block for eDP or HDMI
or simply digital video output. DISP represents “display”, while DVO is
the abbreviation of “digital video output”. This version of DISP_DVO is
mainly designed for eDP1.5 protocol.

TEST=check edp training pass and show log:
EQ training pass
BUG=b:343351631

Change-Id: Iccba53f6c6181ca84624c216f9641a2ae9041671
Signed-off-by: Bincai Liu <bincai.liu@mediatek.corp-partner.google.com>
Signed-off-by: Yidi Lin <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85949
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-21 14:16:17 +00:00
Jarried Lin
93b6b2e463 soc/mediatek/mt8196: Add DVFS driver
Add the initialization code for CPU Dynamic Voltage and Frequency
Scaling (DVFS) for MCUPM.

TEST=Build pass.
BUG=b:317009620

Change-Id: I92b7c57ad8c3d9e9954f02a08954939f45c5e2c2
Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86041
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-21 14:15:38 +00:00
Jarried Lin
2cc086f929 mb/google/rauru: Add thermal init flow in romstage
BUG=b:317009620
TEST=build pass, thermal init log:
[INFO ]  [LVTS] reset_cpu_lvts
[INFO ]  [Thermal]===== lvts_thermal_init begin ====
[INFO ]  [Thermal]thermal_init: thermal initialized

Change-Id: I518ffd92684a222f25d642a51e73a0faa453a8b1
Signed-off-by: Zhaoqing Jiu <zhaoqing.jiu@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86018
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-21 09:09:47 +00:00
Jarried Lin
c0f0be625b soc/mediatek/mt8196: Add thermal driver
Add thermal driver to support LVTS (Low Voltage Thermal Sensor).

BUG=b:317009620
TEST=Check temperatures read from each sensors.
[INFO ]  [LVTS_MSR] ts0 msr_all=14104, msr_temp=16644, temp=35694
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 0 ts_name 0 temp 35694 rg_temp 35697(36554)
[INFO ]  [LVTS_MSR] ts1 msr_all=14116, msr_temp=16662, temp=36088
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 1 ts_name 1 temp 36088 rg_temp 36091(36958)
[INFO ]  [LVTS_MSR] ts2 msr_all=140f6, msr_temp=16630, temp=35387
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 2 ts_name 2 temp 35387 rg_temp 35390(36240)
[INFO ]  [LVTS_MSR] ts3 msr_all=14105, msr_temp=16645, temp=35716
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 3 ts_name 3 temp 35716 rg_temp 35718(36576)
[INFO ]  [LVTS_MSR] ts4 msr_all=14129, msr_temp=16681, temp=36504
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 0 ts_name 4 temp 36504 rg_temp 36507(37384)
[INFO ]  [LVTS_MSR] ts5 msr_all=1412d, msr_temp=16685, temp=36592
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 1 ts_name 5 temp 36592 rg_temp 36595(37474)
[INFO ]  [LVTS_MSR] ts6 msr_all=140eb, msr_temp=16619, temp=35146
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 2 ts_name 6 temp 35146 rg_temp 35149(35993)
[INFO ]  [LVTS_MSR] ts7 msr_all=14126, msr_temp=16678, temp=36438
[INFO ]  lvts_tscpu_thermal_read_tc_temp order 3 ts_name 7 temp 36438 rg_temp 36442(37317)

Signed-off-by: Zhaoqing Jiu <zhaoqing.jiu@mediatek.corp-partner.google.com>
Change-Id: Ieef94a6909e4da82461351bcb9292e9d01db3362
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86017
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-01-21 09:09:34 +00:00
Sean Rhodes
38f6a68d2d soc/intel/alderlake: Remove superfluous preprocessor argument
The if statement is repeated so merge it into one block.

Change-Id: I92f6d1b0a7fed4730f11e572b076f5dfdb91d96f
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84621
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jayvik Desai <jayvik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-01-21 08:38:13 +00:00
Kapil Porwal
a2bc41c2cf MAINTAINERS: Add Kapil Porwal for mb/google/fatcat
Change-Id: I6a11746d018465d3f89e718714622355eb6e7461
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85504
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Pranava Y N <pranavayn@google.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
2025-01-21 07:32:32 +00:00
Keith Hui
a006abd67d mb/lenovo/x131e: Clean up USB configurations
As of commit a911b75848 ("mb/*: Remove old USB configurations from
SNB/bd82x6x boards") USB configurations are drawn exclusively from
devicetree. The old copy carried by early_init.c should have been
removed back then. Since it has nothing else, drop the whole file.

Remove xhci_overcurrent_mapping as it is now derived from
usb_port_config.

According to schematics only the first two ports are wired for xHCI
and both goes to OC0#. Remove OC pin assignment from disabled third
port so the (former) xhci_overcurrent_mapping can be derived
correctly. Also adjust xhci_switchable_ports and
superspeed_capable_ports to match.

Thanks to Patrick Rudolph for the information.

Change-Id: I6bdc9a188b2baa2207aaccb46821b58f97ff7da6
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85944
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-01-21 05:02:17 +00:00
Keith Hui
b97eda4d23 mb/lenovo/t530: Remove old USB configurations
As of commit a911b75848 ("mb/*: Remove old USB configurations from
SNB/bd82x6x boards") USB configurations are drawn exclusively from
devicetree. These stuff should have been removed then.

Drop romstage.c from both variants that only carries the old USB
configurations and xhci_overcurrent_mapping devicetree setting that is
now derived from usb_port_config (they match).

Change-Id: I1a5d57ae9e3788e0c7788013c6fe387ec83efcf2
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85943
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
2025-01-21 05:01:42 +00:00