Compare commits

...

103 Commits

Author SHA1 Message Date
Sravan Balaji
760d1bc758 Update coreboot submodule 2024-11-10 19:59:19 -05:00
Sravan Balaji
860dcb1039 Personal Submodule Forks and Docker Build
- Modify ec, coreboot, and edk submodules to point to personal
  forks using relative URL path
- Add image and script to build firmware in docker container
- Move firmware update build steps from flash.sh to build.sh
  so it can be built inside docker container
2024-11-10 19:59:19 -05:00
Tim Crawford
7265ca3579 bonw15-b: Increase hotplug memory
Table 4-6 states that BIOS should reserve:

- 96 MiB non-prefetchable memory
- 2x16 GiB prefetchable memory

So increase to 96 MiB and 16 GiB.

Ref: Barlow Ridge BIOS Implementation Guide (#782921)
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-11-04 10:12:53 -07:00
Tim Crawford
da25c9d28d bonw15-b: Update CSME
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-11-04 10:12:53 -07:00
Tim Crawford
ee6ca9030f bonw15-b: Add variant for new Bonobo
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-11-04 10:12:53 -07:00
Tim Crawford
6a578ee1cf Update coreboot to 24.08
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-09-17 11:26:16 -06:00
Tim Crawford
351d80dda2 ec: Replace fan interpolation/smoothing with fixed step
This change is made separately from the previous commit as it is a
significant change in behavior that affects all laptops. Copying the
message from the EC commit:

> Fan noise is one of the top complaints reported. The existing
> interpolation and smoothing logic has not sufficiently addressed the
> issues with fans changing speeds too quickly in response to rapid
> changes in thermals (particularly from PECI).
>
> This behavior can be observed by with very basic tasks, such as:
>
> - Powering on a system and logging into GNOME
> - Starting a GUI application such as Firefox
>
> Replace them with a fixed step update per event interval. Fans now have
> a maximum amount they change change over time (3.9%/sec) as they move
> towards a target duty.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-09-11 11:16:30 -06:00
Tim Crawford
d38dd19438 Updates for darp10, bonw15-b
The primary changes are:

- darp10: Fix USB3 detection in Type-C ports
- bonw15-b: Add new board

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-09-11 11:16:30 -06:00
Tim Crawford
72c6b1f950 cfl: Update CSME to 12.0.94.2380v9
Update CSME to the version from CFL-S/H IPU 24.1 (Kit 792171).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-08-30 13:13:34 -06:00
Tim Crawford
e4d1edb608 whl-u: Update CSME to 12.0.95.2489v2
Update CSME to the version from WHL-U IPU 24.3 (Kit 813614).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-30 18:29:41 +02:00
Tim Crawford
51f639a6b9 Add support for second fan without a dGPU
Decouple the fan logic from the dGPU logic. Firmware now supports a
second fan on systems without a dGPU, such as darp10.

Behavioral changes:

- ectool: Fans are now indexed from 1 instead of 0
- Linux: darp10 now reports details about the second fan

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-25 11:38:18 -06:00
Tim Crawford
fa07aeb91c Update Rust toolchain config
Remove rust-src as it is not required. Use a minimal profile with
clippy and rustfmt installed, instead of the default profile, as
rust-docs is not needed.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-17 11:06:20 -06:00
Tim Crawford
926f73d114 firmware-setup: Revert unlock prompt change
The EC will already be set to unlocked at this point, so the prompt
must be run even when in the "Unlock" state. This is fine, as the
prompt is for physical presence detection.

Only lemp13-b has a release affected by this change.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-08 12:50:36 -06:00
Tim Crawford
9772eaadeb cml-u: Update CSME to 14.1.74.2355v6
Update CSME to the version from CML-U IPU 24.3 (Kit 813939).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-02 16:07:06 -06:00
Tim Crawford
88a0834880 cml-h: Update CSME to 14.1.74.2355v6
Update CSME to the version from CML-S/H BKC IPU 2024.3 (Kit 817210).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-02 16:07:06 -06:00
Tim Crawford
54c3ef88b7 coreboot: lemp13: Add support for 5600 MT/s soldered RAM
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-01 07:23:23 -06:00
Tim Crawford
f9b96ddb9d apps: Update firmware-setup and firmware-update
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-07-01 07:23:23 -06:00
Tim Crawford
2ac41d8ef3 tgl: Update CSME to 15.0.49.2573
Update CSME to the version in the IPU 2024.3 kits.

- TGL-H: Kit 817417
- TGL-U: Kit 817408

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-06-28 10:10:08 -06:00
Tim Crawford
9e418a22ff ec: Fix touchpad in PS/2 mode
Clear PS/2 status to prevent data for writes being detected on reads,
which was causing drivers to stop working.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-06-26 11:54:53 -06:00
Tim Crawford
9c111c2c9e jenkins: Add lemp13-b
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-06-14 06:58:50 -06:00
Tim Crawford
b652dda776 adl/rpl: Fix USB 3.0 hubs in Type-C ports
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-06-13 19:06:27 -06:00
Tim Crawford
7eeff75a5f Update MTL FSP to 4122.12
Upgrade FSP from D.0.97.10 to D.0.A8.20.

- Meteor Lake RVP Binaries and FSP
  - Kit: 646966
  - ID: 790907

This is the version Google validated for coreboot integration.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-06-10 10:01:54 -06:00
Tim Crawford
b4bee5765e Update Rust toolchain to nightly-2024-05-11
Update toolchain to match the version used in Redox.

firmware-setup is still stuck on nightly-2023-01-21.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-28 15:58:23 -06:00
Tim Crawford
5002c9ad95 coreboot: Update VBTs for TGL systems
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-28 11:28:53 -06:00
Tim Crawford
1cc79f251a tgl: Update VBT to version 250
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-28 11:28:53 -06:00
Tim Crawford
a50ccb32cc tgl: Update Intel GOP driver to 17.0.1077
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-28 11:28:53 -06:00
Tim Crawford
a9e791c905 scripts: Allow flashing EC only
As somewhat of a hack, allow flashing only the EC by deleting the
`firmware.rom` file before running `flash.sh`.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-20 07:54:21 -06:00
Tim Crawford
67e7019cf1 docs: Update info about flashing
`flash.sh` was changed from internally flashing to using the UEFI
application (firmware-update). The option `--without-ec` was removed as
part of this.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-20 07:54:21 -06:00
Jeremy Soller
8f6d22b801
Add lemp13-b 2024-05-17 08:36:29 -06:00
Tim Crawford
3de6462f61 changelog: Add darp10, darp10-b
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Jeremy Soller
1cfc7f4744 Add darp10-b 2024-05-07 15:26:31 -06:00
Jeremy Soller
1636f5cfda scripts/extract: fix capitalization of uefiextract binary 2024-05-07 15:26:31 -06:00
Tim Crawford
9ef787dd5a darp10: Update coreboot, ec, firmware-update
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Tim Crawford
16172c99d9 darp10: Update CSME
- Disable Boot Guard
- Disable PTT
- Disable locking the descriptor at EOM

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Tim Crawford
3edfa21e97 darp10: Add Darter Pro 10
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Tim Crawford
fe17aa2047 scripts: Update VBT path for Linux 6.8
The path to the VBT has seemingly changed on the new kernel.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Tim Crawford
6dbf9ca5ca models: Remove old FSP links
Fixes: 1cbe7576ee34 ("Remove old RPL FSPs")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-05-07 15:26:31 -06:00
Tim Crawford
15016a0ccd coreboot: Fix CMOS options checksum
Caching ramtop does not update the checksum, causing CMOS options to not
work. Fixes CSME not being disabled on first boot.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-04-29 08:36:02 -06:00
Daniel Sutton
4b32a3e9f5
Add Debian and Fedora dependencies (#541)
Add Debian (pkgconf/libssl-dev) and Fedora (openssl-devel) dependencies for firmware build.
2024-04-17 11:40:51 -06:00
Jeremy Soller
2c6913bc0a
lemp13: Update coreboot to fix power LED flicker 2024-03-25 14:30:56 -06:00
Jeremy Soller
0456f19d21
lemp13: Update coreboot to fix security screen 2024-03-22 10:32:59 -06:00
Jeremy Soller
bf2eee4fea
Update firmware-update 2024-03-21 18:56:18 -06:00
Tim Crawford
263c8ffd1e oryp12: Fix certification issues
- coreboot: Disable AER on TBT port to avoid UnsupReq error
- ec: Select the correct smart charger to fix charging issue

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-21 14:40:50 -06:00
Jeremy Soller
f18364f358
lemp13: Update coreboot to fix memory init 2024-03-21 11:48:02 -06:00
Tim Crawford
ce7315a0f9 oryp12: Enable security
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-19 17:50:58 -06:00
Tim Crawford
bb2d84c152 jenkins: Add addw4, lemp13, oryp12
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-19 15:38:57 -06:00
Tim Crawford
c1e0662679 oryp12: Update coreboot, ec
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-19 15:38:57 -06:00
Tim Crawford
d5af945751 oryp12: Update CSME
- Disable Boot Guard
- Disable PTT
- Disable locking the descriptor

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-19 15:38:57 -06:00
Tim Crawford
241570f50a oryp12: Add Oryx Pro 12
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-19 15:38:57 -06:00
Jeremy Soller
14aee2d11a Add lemp13 2024-03-19 13:28:33 -06:00
Jeremy Soller
bd4d0333b6 Use rsync to transfer firmware to spipi 2024-03-19 13:28:33 -06:00
Jeremy Soller
0c0980f11b Add intel-spi submodule 2024-03-19 13:28:33 -06:00
Jeremy Soller
f8ba050684 Update submodules 2024-03-19 13:28:33 -06:00
Tim Crawford
604f6629bc scripts: Remove explicit rustup self update
Commit 7d6a15e63c95 ("Convert toolchain file to TOML syntax") switched
from the bare toolchain file to the TOML-based one for better management
of the toolchain and components used.

Commit cf7fc2c540d5 ("scripts: Update rustup or inform user of env
vars") added an explicit `rustup self update` because there were still
cases, a year later, of people not having a rustup new enough to support
the TOML-based toolchain file.

Now 2 years after that, it should be safe to drop the explicit self
update. The TOML format has widespread adoption and rustup now self
updates by default. This should allow distro-provided rustup, which
disables the self update feature, to work if it is already installed in
place of the one downloaded from https://rustup.rs.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-18 14:20:15 -06:00
Jeremy Soller
4e3ade88d5
Update EC to improve fan curve for addw4 2024-03-11 08:55:52 -06:00
Tim Crawford
6f9bda722f
addw4: Update coreboot, ec
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:59:48 -07:00
Tim Crawford
869f48eb66
apps: Update firmware-setup
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:59:43 -07:00
Tim Crawford
b8f5c020dd
apps: Update gop-policy
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:57:06 -07:00
Tim Crawford
13a2646415
apps: Update firmware-update
- Do cold reboot on success instead of shutting down
- Reboot on success after flashing all components
- Do not boot to firmware setup after MeSet
- Flash full EC ROM size instead of hard-coding to 128K
- Add addw4, lemp13, oryp12

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:57:06 -07:00
Tim Crawford
a5437552e7
addw4: Update CSME
- Disable Boot Guard
- Disable PTT
- Disable locking the descriptor

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:57:06 -07:00
Tim Crawford
9fe3a51ae3
addw4: Add Adder WS 4
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-08 07:57:06 -07:00
Tim Crawford
7a60055f68 docs: Update CSME note about S0ix/TGL-U
CSME should be enabled when S0ix is used for power savings during
suspend. TGL-U is just one case where we default as our TGL-U models
do not support S3. Other models may use S0ix as well, such as darp8 and
darp9 due to new batches just not working with S3 anymore [1].

[1]: https://github.com/system76/firmware-open/issues/507

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-01 12:36:53 -07:00
Tim Crawford
120c2fd271 coreboot: Fix RTC being reset on boot
Cherry-pick the following upstream commits:

- coreboot/coreboot@fb401e74da: soc/intel/alderlake: Sync UPD Usb4CmMode with Kconfig
- coreboot/coreboot@961ed9fe27: soc/intel/adl: Set slp-s0 counter frequency
- coreboot/coreboot@377845a9d4: soc/intel/tigerlake: Fix processor hang while plug unplug of TBT device
- coreboot/coreboot@354a54ac84: soc/intel/tigerlake: Remove IOM Mctp command from TCSS ASL
- coreboot/coreboot@adf042f6c6: lib/rtc: Fix off-by-one error in February day count in leap year

This also brings in the WIP addw4, but that will documented in the PR
that adds full support for the board.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-01 08:49:37 -07:00
Tim Crawford
0c3997ffb7 gaze16-3060-b: Fix CSME CLKOUT config
The CLKOUT config in FIT was misconfigured using the gaze16-3050 config.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-01 08:30:11 -07:00
Tim Crawford
7ab8b93ef3 gaze16-3060-b: Disable coreboot logging to EC
The config has been enabled since the board was added.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-03-01 08:30:11 -07:00
Tim Crawford
6aa0c14bbf models: Remove bonw14 HDA header
Commit 77581d11fcda ("models: Remove generated C files") removed the HDA
and GPIO files, but bonw14 had an odd named file that was not removed
with the `find` command.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-29 08:11:41 -07:00
Tim Crawford
7a2d4da31f docs: Move info from README to docs/
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:22:54 -07:00
Tim Crawford
cab3891487 docs: Build with mdBook
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:22:54 -07:00
Tim Crawford
6407caab03 edk2: Fix building with GCC 11+
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:13:10 -07:00
Tim Crawford
b2416c4d01 Update coreboot to 24.02
Since 4.19-based releases took so long, we are already at the next
coreboot release. Update to this release for the slew of MTL fixes.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:13:10 -07:00
Tim Crawford
77581d11fc models: Remove generated C files
These files are generated while running proprietary firmware, but once
they are added to coreboot they are no longer needed. They also quickly
become stale as the files are always changed in coreboot.

    find models/ -name gpio.h -exec rm {} \;
    find models/ -name hda_verb.c -exec rm {} \;

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:10:55 -07:00
Tim Crawford
e4960f163e scipts: Add the HDA reset verb to the generated file
I always add HDA reset to the coreboot file when upstreaming, so just
have the script do it.

- Proprietary firmware does it
- It fixed audio init on oryp5

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:10:55 -07:00
Tim Crawford
c4b9a727c4 scripts: Update GPIO file generated for coreboot
The use of `gpio.h` has been replaced with `gpio.c` for a while.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-28 13:10:55 -07:00
Tim Crawford
269b537c00 docs: Update note about coreboot config
The whole coreboot generated `.config` has not been used since
ff0a27ad9c60 ("Use defconfig to generate .config"). The required
`coreboot.config` is much simpler now and can usually just be copied
from another model.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-21 07:35:52 -07:00
Tim Crawford
7d5a50d26b Remove devicetree script
This script is stale. It hasn't worked since TGL and only produced a few
useful values. The format of devicetree.cb also continues to change with
each SoC generation.

The removal of devmem2 should also fix setup on Debian, which does not
package it.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-21 07:35:52 -07:00
Tim Crawford
85896eca39 jenkins: Sync submodules
Always sync submodules before the SCM step to handle coreboot adding
new submodules. This is needed because coreboot uses relative paths for
submodules, so git tries to clone it from the System76 GitHub
organization. We are not mirroring submodules and want to clone from
gerrit.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-05 11:02:11 -07:00
Tim Crawford
1cbe7576ee Remove old RPL FSPs
Remove the local copy of the RPL FSPs as they are no longer used.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-05 11:02:11 -07:00
Tim Crawford
4618f2b0ed Update coreboot to 4.22
As part of this, the RPL boards now use the client FSP release from
Intel's public repo [1].

[1]: https://github.com/intel/fsp

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-05 11:02:11 -07:00
Tim Crawford
3812485a04 scripts: Make FIRMWARE_OPEN_MODEL_DIR relative
coreboot expects paths to be relative to it, and vboot breaks include
paths that are absolute. Fixes compilation failing due to the addition
of `-Wmissing-include-dirs`.

Ref: https://review.coreboot.org/c/coreboot/+/70251
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-05 11:02:11 -07:00
Tim Crawford
3e19b73397 darp9: Add SSD RTD3 configs
Fixes suspend with the following drives:

- Kingston KC3000 (SKC3000D/4096G)
- Kingston HyperX (SHPM2280P2H/240G)
- Solidigm P44 Pro (SSDPFKKW010X7)

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-01-18 14:39:29 -07:00
Tim Crawford
6c402c3e17 darp8,darp9: Use S0ix by default
Avoid the issue on new boards where the PCH will not de-assert the
`PLTRST#` virtual wire on S3 resume, causing the unit to hang.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-01-10 14:06:47 -07:00
Tim Crawford
6f1e65308e docs: Update note about Secure Boot support
Secure Boot support is enabled. Make it clear in the doc that it was
enabled so Windows could be installed, and not as a means for securing
the system.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-12-12 11:45:08 -07:00
Tim Crawford
2e4e34bf83 coreboot: Fix bonw15, oryp11 speaker output
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-20 15:06:52 -06:00
Tim Crawford
968a612824 scripts: Address shellcheck issues
Report issues by shell files with:

    git ls-files '*.sh' | xargs shellcheck --exclude=SC2162

Address the following:

- SC1087: Use braces when expanding arrays
- SC1091: Not following
- SC2004: `$`/`${}` is unnecessary on arithmetic variables
- SC2024: `sudo` doesn't affect redirects
- SC2034: foo appears unused. Verify it or export it
- SC2086: Double quote to prevent globbing and word splitting
- SC2087: Quote `EOF`
- SC2115: Use `"${var:?}"` to ensure this never expands to `/*`
- SC2148: Add a shebang

Addresses (at least partially) some POSIX/dash issues:

- SC2113: `function` keyword is non-standard
- SC3010: In POSIX sh, `[[` `]]` is undefined
- SC3014: In POSIX sh, `==` in place of `=` is undefined
- SC3020: In POSIX sh, `&>` is undefined
- SC3046: In POSIX sh, `source` in place of `.` is undefined

Does not address:

- SC2162: `read` without `-r` will mangle backslashes
- Any other POSIX/dash-specific issues

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 14:45:22 -06:00
Tim Crawford
aa32ba26e1 coreboot: Fix LTR for card reader on TGL-U boards
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 08:08:52 -06:00
Tim Crawford
38b6bdc6e9 Update Rust apps for new toolchain
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 08:08:11 -06:00
Tim Crawford
48079c3de2 Update Rust toolchain to 2023-09-07
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 08:08:11 -06:00
Tim Crawford
b379c94b76 Split building coreboot toolchains to a separate file
Specify dependencies specifically for building coreboot toolchains in
the file, so they are not conflated with the dependencies required for
building firmware-open.

Remove building the toolchain when building firmware, so that the new
script is the single source for building coreboot toolchains.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 08:08:02 -06:00
Tim Crawford
5fb1624187 Set and use XGCCPATH
Allow overriding the coreboot toolchain location with `XGCCPATH` so
that xgcc can be installed to a separate location, such as `/opt`.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 08:07:39 -06:00
Tim Crawford
5d997d1c41 coreboot: Fix OZ711LV2 LTR for galp5 3050 variant
Fix programming the LTR so that CPU can reach C-states deeper than C2.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-13 11:30:05 -06:00
Tim Crawford
c1dafbbfad scripts: Always set EC build dir
Building EC was broken as the build output from the previous board was
not being cleaned. `BUILD` is now always set, defaulting to "build",
instead of only when `BOARD` is specified. For good measure, add it
to the clean command in case a custom path is used.

Fixes: 569321f9ac79 ("scripts: Set EC build dir")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-12 13:27:55 -06:00
Tim Crawford
c4df2f4005 ec: Fix lock up during opportunistic suspend
Fix a potential lock up during S0ix opportunistic suspend, caused by
waiting indefinitely for a PECI command to complete when it is not
available.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-12 09:36:10 -06:00
Tim Crawford
569321f9ac scripts: Set EC build dir
Specify the EC build directory so that it does not require the model or
version to be determined in the script.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-11 19:05:16 -06:00
Tim Crawford
b22e8dee41 scripts: Split installing Rust to its own script
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-03 14:04:54 -06:00
Tim Crawford
51e3e1a53a Jenkins: Misc changes
- Use `GIT_COMMIT` instead of stashing the commit
- Do not shadow built-in `GIT_BRANCH` variable with a parameter
- Update `scmGit` config based on docs

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-02 09:51:15 -06:00
Tim Crawford
16ef69cb45 coreboot: rpl-hx: Add support for 5600 MHz RAM
Allow using 5600 MHz RAM on addw3, bonw15, and serw13.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-19 14:49:54 -06:00
Tim Crawford
42bf7a65d9 Update coreboot and ec
- coreboot: Fixed SMMSTORE init sometimes failing
- ec: Increased key debounce from 5ms to 10ms

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-08 16:52:38 -04:00
Tim Crawford
5a9565a684 adl: Update CSME to 16.1.25.2124
Generate new CSME images from ADL-P MR5 BKC (Kit 766225).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-07 10:34:31 -06:00
Tim Crawford
52f6d72713 docs: Add note about checking CSME state
I had forgotten that CSME reporting an error was normal when disabled.
Document what is should report when enabled/disabled.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-07 10:24:10 -04:00
Tim Crawford
5844541031 jenkins: Add build duration to Slack notifications
The scripted projects using the default Slack notifications settings
report the time the build took. Add it to the declarative jobs as well.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-30 16:46:30 -04:00
Jeremy Soller
81731199f2 Update coreboot and changelog 2023-08-23 14:04:40 -06:00
Tim Crawford
a8dd6c2c0b Update ec
- Changed battery charge start threshold to 90%
- Changed charger to disable when battery is full

These are made in response to Clevo's request for changes. The battery
now defaults to a charge-discharge cycle of 90-100% capacity instead of
always charging to 100%.

It is possible to force charging by setting the start threshold to 0, or
by resetting the EC (power off and unplug).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-18 14:47:58 -06:00
Tim Crawford
38c7019286 Update coreboot
- Fixed CPU not going lower than C2 due to card reader LTR

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-18 14:47:58 -06:00
369 changed files with 17882 additions and 320758 deletions

12
.gitmodules vendored
View File

@ -1,10 +1,10 @@
[submodule "edk2"]
path = edk2
url = https://github.com/system76/edk2.git
url = ../system76-edk2.git
branch = system76
[submodule "coreboot"]
path = coreboot
url = https://github.com/system76/coreboot.git
url = ../system76-coreboot.git
branch = system76
[submodule "tools/UEFITool"]
path = tools/UEFITool
@ -36,9 +36,13 @@
branch = master
[submodule "ec"]
path = ec
url = https://github.com/system76/ec.git
branch = master
url = ../system76-embedded-controller.git
branch = main
[submodule "tools/apobtool"]
path = tools/apobtool
url = https://github.com/system76/apobtool.git
branch = master
[submodule "tools/intel-spi"]
path = tools/intel-spi
url = https://github.com/system76/intel-spi.git
branch = master

View File

@ -4,16 +4,135 @@ Changes are identified by the date of the released firmware including them. If
you are running System76 Open Firmware, opening the boot menu will show this
date followed by an underscore and a short git revision. To see if specific
features apply to your model and firmware version, see the
[feature matrix](./FEATURES.md).
[feature matrix](./docs/features.md).
## unreleased
- whl-u: Updated CSME to 12.0.95.2489v2 (12.0.94.2428)
- cfl: Updated CSME to 12.0.94.2380v9 (12.0.94.2428)
- mtl: Fixed detection of USB3 hubs in Type-C ports
- darp10: Fixed reporting of the second fan
- darp10: Fixed using USB3 devices at USB3 speeds in all ports
- darp10: Updated fan tables
- Fixed IT8587E hang when reading keyboard matrix
- Changed fans to use highest reported temperature to calculate duty instead
of using the highest calculated duty across all fans
- bonw15-b: Added initial release of open firmware with System76 EC
- Changed fan mechanism from calculated interpolation/smoothing to a fixed
step to limit rapid changes in duty over short periods
- Updated coreboot to 24.08
## 2024-07-08
- cml-h: Updated CSME to 14.1.74.2355v6 (14.1.72.2287)
- cml-u: Updated CSME to 14.1.74.2355v6 (14.1.74.2373)
- Reverted unlock prompt change to restore intended behavior
## 2024-07-01
- mtl: Updated FSP to D.0.A8.20
- adl: Fixed USB 3.0 hubs in Type-C ports
- rpl: Fixed USB 3.0 hubs in Type-C ports
- Fixed touchpad in PS/2 mode
- tgl: Updated CSME to 15.0.49.2573
- Fixed unlock prompt showing when system is already unlocked
- lemp13-b: Added support for units with 5600 MT/s soldered RAM
## 2024-05-28
- tgl: Updated Intel GOP driver to 17.0.1077
- tgl: Updated VBT to 250
- Updated Rust toolchain to nightly-2024-05-11
## 2024-05-17
- lemp13-b: Added initial release of open firmware with System76 EC
## 2024-05-07
- darp10: Added initial release of open firmware with System76 EC
- darp10-b: Added initial release of open firmware with System76 EC
## 2024-04-29
- Fixed CMOS options not working due to invalid checksum
## 2024-03-25
- lemp13: Added initial release of open firmware with System76 EC
## 2024-03-21
- oryp12: Added initial release of open firmware with System76 EC
## 2024-03-11
- Updated coreboot to 24.02
- adl-p: Updated FSP to C.1.75.10
- adl-s: Updated FSP to C.0.75.10
- adl: Updated microcode to revision 0x430
- rpl-p: Updated FSP to C.1.BD.40
- rpl-s: Updated FSP to C.0.BD.40
- rpl: Updated microcode to revision 0x411c
- tgl: Updated FSP to A.0.7E.70
- tgl-u: Updated microcode to revision 0xb4
- tgl-h: Updated microcode to revision 0x4e
- adl: Fixed PCIe 4.0 drives in PCIe 3.0 slot failing to initialize on resume
- rpl: Fixed PCIe 4.0 drives in PCIe 3.0 slot failing to initialize on resume
- rpl: Fixed TCSS ACPI access
- adl: Fixed `SLP_S0#` counter frequency
- rpl: Fixed `SLP_S0#` counter frequency
- tgl: Fixed TBT ACPI
- Fixed RTC being reset on boot during February 29th
- addw4: Added initial release of open firmware with System76 EC
## 2024-01-18
- darp9: Added SSD RTD3 configs to fix suspend with some drives
## 2024-01-10
- darp8: Fixed suspend issue on new boards by switching to S0ix by default
- darp9: Fixed suspend issue on new boards by switching to S0ix by default
## 2023-10-20
- tgl-u: Fixed CPU not going lower than C2 due to card reader LTR
- bonw15: Fixed speaker audio cutting in/out
- oryp11: Fixed speaker audio cutting in/out
## 2023-10-13
- tgl-u: Fixed potential EC lock up during opportunistic suspend
- galp5: Fixed CPU not going lower than C2 due to card reader LTR
## 2023-09-19
- rpl-hx: Added support for 5600 MHz RAM
## 2023-09-08
- adl: Updated CSME to 16.1.25.2124
- adl,rpl: Fixed SMMSTORE init sometimes failing
- Increased key debounce from 5ms to 10ms
## 2023-08-23
- rpl: Fixed RPL-S GPIO driver on Windows
## 2023-08-18
- cml-u: Fixed boot failing at FSP-S
- Added KBC reset on CPU reset to prevent keyboard from being locked
- Enabled power switch Watch Dog Timer with a timeout of 10 seconds
- Fixed detecting if PECI is available on eSPI systems using S0ix
- Added support for a FnLock key
- tgl: Fixed Bluetooth performance by enabling audio offload
- gaze16: Fixed CPU not going lower than C2 due to card reader LTR
- adl: Fixed CPU not going lower than C2 due to card reader LTR
- rpl: Fixed CPU not going lower than C2 due to card reader LTR
- Changed battery charge start threshold to 90%
- Changed charger to disable when battery is full
## 2023-07-19

56
Jenkinsfile vendored
View File

@ -7,16 +7,9 @@
// - Pipeline (https://plugins.jenkins.io/workflow-aggregator/)
// - Slack Notification (https://plugins.jenkins.io/slack/)
def all_models = 'addw2 addw3 bonw14 bonw15 darp5 darp6 darp7 darp8 darp9 galp3-c galp4 galp5 galp6 galp7 gaze15 gaze16-3050 gaze16-3060 gaze16-3060-b gaze16-3050 gaze16-3060-b gaze17-3050 gaze17-3060-b gaze18 lemp9 lemp10 lemp11 lemp12 oryp5 oryp6 oryp7 oryp8 oryp9 oryp10 oryp11 serw13'
def getCommitSha() {
sh "git rev-parse HEAD > .git/current-commit"
return readFile(".git/current-commit").trim()
}
def all_models = 'addw2 addw3 addw4 bonw14 bonw15 darp5 darp6 darp7 darp8 darp9 darp10 darp10-b galp3-c galp4 galp5 galp6 galp7 gaze15 gaze16-3050 gaze16-3060 gaze16-3060-b gaze16-3050 gaze16-3060-b gaze17-3050 gaze17-3060-b gaze18 lemp9 lemp10 lemp11 lemp12 lemp13 lemp13-b oryp5 oryp6 oryp7 oryp8 oryp9 oryp10 oryp11 oryp12 serw13'
void setBuildStatus(String state, String message) {
commit = getCommitSha()
// FIXME: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation
sh """
curl \
@ -24,7 +17,7 @@ void setBuildStatus(String state, String message) {
-H \'Accept: application/vnd.github+json\' \
-H \'Authorization: Bearer ${GITHUB_TOKEN}\' \
-H \'X-GitHub-Api-Version: 2022-11-28\' \
https://api.github.com/repos/system76/firmware-open/statuses/${commit} \
https://api.github.com/repos/system76/firmware-open/statuses/${GIT_COMMIT} \
-d \'{\"state\": \"${state}\", \"target_url\": \"${BUILD_URL}\", \"description\": \"${message}\"}\'
"""
}
@ -48,7 +41,7 @@ pipeline {
parameters {
string(name: 'MODELS', defaultValue: "$all_models", description: 'Space separated list of models to build', trim: true)
string(name: 'GIT_BRANCH', defaultValue: 'master', description: 'Git branch or revision to build', trim: true)
string(name: 'SOURCE_BRANCH', defaultValue: 'master', description: 'Git branch or revision to build', trim: true)
}
triggers {
@ -58,30 +51,33 @@ pipeline {
stages {
stage('Prepare') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: "${GIT_BRANCH}"]],
setBuildStatus("pending", "Pending")
slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} started (<${env.BUILD_URL}|Open>)")
sh """#!/bin/bash
# Update submodule URLs because of coreboot
git submodule sync --recursive
"""
// https://www.jenkins.io/doc/pipeline/steps/params/scmgit/
checkout scmGit(
branches: [[name: '${SOURCE_BRANCH}']],
extensions: [
[
$class: 'SubmoduleOption',
disableSubmodules: false,
lfs(),
pruneStaleBranch(),
pruneTags(true),
submodule(
parentCredentials: true,
recursiveSubmodules: true,
reference: '',
trackingSubmodules: false
],
[ $class: 'GitLFSPull' ],
[ $class: 'PruneStaleBranch' ],
reference: ''
),
],
userRemoteConfigs: [[url: 'https://github.com/system76/firmware-open']]
])
setBuildStatus("pending", "Pending")
slackSend(color: "good", message: "${JOB_NAME} - #${BUILD_ID} started (<${BUILD_URL}|Open>)")
userRemoteConfigs: [[url: 'https://github.com/system76/firmware-open.git']]
)
sh """#!/bin/bash
# Install dependencies
#./scripts/deps.sh
#./scripts/install-deps.sh
. "${HOME}/.cargo/env"
# Reset
@ -124,15 +120,15 @@ pipeline {
}
success {
setBuildStatus("success", "Successful")
slackSend(color: "good", message: "${JOB_NAME} - #${BUILD_ID} successful (<${BUILD_URL}|Open>)")
slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} successful after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
failure {
setBuildStatus("failure", "Failed")
slackSend(color: "danger", message: "${JOB_NAME} - #${BUILD_ID} failed (<${BUILD_URL}|Open>)")
slackSend(color: "danger", message: "${env.JOB_NAME} - #${env.BUILD_ID} failed after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
aborted {
setBuildStatus("failure", "Failed")
slackSend(color: "warning", message: "${JOB_NAME} - #${BUILD_ID} aborted (<${BUILD_URL}|Open>)")
slackSend(color: "warning", message: "${env.JOB_NAME} - #${env.BUILD_ID} aborted after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
}
}

View File

@ -33,7 +33,7 @@ The license for the embedded controller firmware depends on the binary used.
#### Intel binaries
Intel provides biniaries under a redistributable license, which may be
Intel provides binaries under a redistributable license, which may be
different per binary.
- `me.rom`: Intel CSME

View File

@ -3,59 +3,10 @@
An open source distribution of firmware utilizing coreboot, EDK2, and System76
firmware applications.
## Supported models and features
## Resources
To view models that are supported and will receive updates through the firmware
manager, as well as available features for those models, please see the
[feature matrix](./FEATURES.md).
Other models may be in development or available without support, and can be
seen in the `models/` directory.
If the device becomes bricked it will require restoring the current firmware
using an external programmer. See [flashing](./docs/flashing.md) for details.
### Schematics
System76 customers may request board schematics for their system by sending an
email to firmware@system76.com with the subject line "Schematics for _model_",
where _model_ is one of the supported models listed above. Please include the
serial number of your system for verification.
You may not share these without explicit permission from System76.
## Changelog
For a list of important changes please see the [changelog](./CHANGELOG.md).
## Building
Dependencies can be installed with the provided script.
```
./scripts/deps.sh
```
If rustup was installed for the first time, it will be required to source the
environment file it installed to use the correct Rust toolchain.
```
source ~/.cargo/env
```
A script is provided to build the firmware. The available targets for building
are the model folders in `models/`. For example, to build for QEMU:
```
./scripts/build.sh qemu
```
Once built, the firmware must be flashed to use. Several scripts are available
to flash the new firmware, depending on how it is going to be written.
- `scripts/qemu.sh`: [Run the firmware in QEMU](./docs/debugging.md#using-qemu) (specific to the QEMU model)
- `scripts/flash.sh`: Flash using the internal flasher
- `scripts/ch341a-flash.sh`: Flash using a CH341A programmer
- `scripts/spipi-flash.sh`: Flash using a Raspberry Pi
See [Flashing firmware](./docs/flashing.md) for more details.
- [Project site](https://github.com/system76/firmware-open)
- [Documentation](./docs/index.md)
- [Issue tracker](https://github.com/system76/firmware-open/issues/)
- [Changelog](./CHANGELOG.md)
- [Legal information](./LICENSE.md)

@ -1 +1 @@
Subproject commit d6b1fd1d01a0aceaff414a956ce1388c0fa1a9e5
Subproject commit 769cb382e873b6dcf16c9ed84b921c7b6caa8147

@ -1 +1 @@
Subproject commit 2bfb2f95c4622376d7d214aa098343981eb58090
Subproject commit 6bf5268b97f2ca788313cb6d63c730465465c41a

@ -1 +1 @@
Subproject commit 353b6fc37d0bf22ae73b4d11e37b4f3e65aa2c95
Subproject commit 61a9e9fad217c1df788dc53117583e27f708087d

@ -1 +1 @@
Subproject commit f450af3321a5ebd394cc10510e1aff6a867d3649
Subproject commit d0cab058c66b4496d8ba3371583ecc3a4d1254ac

67
docker/Dockerfile Normal file
View File

@ -0,0 +1,67 @@
FROM ubuntu:20.04
# Install most dependencies
USER root
ARG TZ="America/New_York"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
adduser \
sudo \
tzdata \
build-essential \
ccache \
cmake \
curl \
dosfstools \
flashrom \
git-lfs \
libncurses-dev \
libssl-dev \
libudev-dev \
mtools \
parted \
pkgconf \
python-is-python3 \
python3-distutils \
uuid-dev \
zlib1g-dev \
bison \
bzip2 \
ca-certificates \
flex \
g++ \
gcc \
gnat \
libnss3-dev \
patch \
tar \
xz-utils \
avr-libc \
avrdude \
clang-format \
gcc-avr \
libc-dev \
libhidapi-dev \
libudev-dev \
sdcc \
shellcheck \
xxd
# Create non-root user with disabled password and sudo privileges
ARG USER=docker
RUN adduser --disabled-password --gecos '' ${USER}
RUN adduser ${USER} sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Enter build directory in user's home
USER ${USER}
ARG BUILD_DIR=/home/${USER}/firmware-open
WORKDIR ${BUILD_DIR}
# Set git configuration (required by some scripts)
ARG GIT_NAME="Docker User"
ARG GIT_EMAIL="docker@gmail.com"
RUN git config --global user.name "${GIT_NAME}"
RUN git config --global user.email "${GIT_EMAIL}"

View File

@ -1 +0,0 @@
# System76 Open Firmware Documentation

11
docs/SUMMARY.md Normal file
View File

@ -0,0 +1,11 @@
# Summary
- [Index](./index.md)
- [Firmware features](./features.md)
- [Building firmware](./building.md)
- [Flashing firmware](./flashing.md)
- [Debugging](./debugging.md)
- [Adding a new board](./adding-a-new-board.md)
- [Intel CSME](./intel-me.md)
- [UEFI](./uefi.md)
- [Schematics](./schematics.md)

View File

@ -71,16 +71,10 @@ Other things that should be dumped before porting/flashing are:
To port coreboot to a new board, see the coreboot documentation.
Once coreboot is ported, add its configuration.
```
cp coreboot/.config models/<model>/coreboot.config
```
### devicetree
`generate.sh` does not create `devicetree.cb`. Some values for this file can be
produced using the `devicetree.py` script.
Add a `coreboot.config` file to the model directory. This can be copied from
another similar board as a reference, just updating the name. Typically, the
only special cases that need to be handled are when an FSP or microcode is
used that are not part of coreboot.
### Smart amp

18
docs/book.toml Normal file
View File

@ -0,0 +1,18 @@
[book]
title = "System76 Open Firmware"
description = "System76 Open Firmware documentation"
language = "en"
src = "."
[build]
build-dir = "../build/docs"
create-missing = false
[output.html]
default-theme = "rust"
preferred-dark-theme = "coal"
no-section-label = true
git-repository-url = "https://github.com/system76/firmware-open"
[output.html.print]
enable = false

31
docs/building.md Normal file
View File

@ -0,0 +1,31 @@
# Building
Dependencies can be installed with the provided script.
```
./scripts/install-deps.sh
```
If rustup was installed for the first time, it will be required to source the
environment file it installed to use the correct Rust toolchain.
```
. ~/.cargo/env
```
A script is provided to build the firmware. The available targets for building
are the model folders in `models/`. For example, to build for QEMU:
```
./scripts/build.sh qemu
```
Once built, the firmware must be flashed to use. Several scripts are available
to flash the new firmware, depending on how it is going to be written.
- `scripts/qemu.sh`: [Run the firmware in QEMU](./debugging.md#using-qemu) (specific to the QEMU model)
- `scripts/flash.sh`: Flash using firmware-update
- `scripts/ch341a-flash.sh`: Flash using a CH341A programmer
- `scripts/spipi-flash.sh`: Flash using a Raspberry Pi
See [Flashing firmware](./flashing.md) for more details.

View File

@ -4,7 +4,7 @@ This lists important features provided by System76 Open Firmware. Your system
must be updated to at least the firmware version specified in the following
[platform tables](#platforms) to include all specified [features](#features).
To see the changes in specific firmware versions, see the
[changelog](./CHANGELOG.md).
[changelog](./../CHANGELOG.md).
## Platforms

View File

@ -13,16 +13,44 @@ coreboot's `cbmem` tool can be used to verify this. The call to
`FspMemoryInit()` can report 20+ seconds on the first boot, and a few hundred
milliseconds on subsequent boots.
## UEFI application
This is the default method for flashing firmware (using firmware-update). When
used from this repo, it only works with systems running System76 open firmware.
```
./scripts/flash.sh <model>
```
By default the script will attempt to flash both the BIOS and the EC. Their
respective file can be deleted to skip flashing them.
If the EC is flashed, the system will immediately power off.
## Internal programmer
Use this method for flashing a system already running System76 Open Firmware.
### Availability
This method is only possible when firmware is unlocked. Firmware is unlocked by
one of two methods:
- The EC feature `CONFIG_SECURITY` is unset/disabled
- The EC is unlock for a single boot (via firmware-update or ectool)
The current state can be determined using ectool:
```
./scripts/flash.sh <model> [--without-ec]
./ec/scripts/ectool.sh security
```
By default the script will attempt to flash the EC. If the EC is flashed, the
system will immediately power off.
- `Lock`: This method can't be used
- `Unlock`: This method can be used
### flashrom
```
sudo flashrom -p internal -w build/<model>/firmware.rom
```
## External programmer
@ -31,13 +59,14 @@ Use one of these methods for first-time flashing or flashing a bricked system.
### Identifying the BIOS chip
The packaging and protocol can be determined by `board_info.txt` in coreboot.
Pin 1 is marked by a small dot indent and a white paint mark. The silkscreen
may also indicate pin 1.
Pin 1 is sometimes marked by a small dot indent and a white paint mark. The
silkscreen may also indicate pin 1.
### CH341A USB programmer - slower, but easier to set up
These can be purchased from many places for around 15 USD. Make sure that the
one you get has a ROM clip. Here are some examples:
- [Amazon.com, Organizer.](https://www.amazon.com/Organizer-Socket-Adpter-Programmer-CH341A/dp/B07R5LPTYM)
- [Amazon.com, KeeYees.](https://www.amazon.com/KeeYees-SOIC8-EEPROM-CH341A-Programmer/dp/B07SHSL9X9)
- [AliExpress.com, TZT.](https://aliexpress.com/item/32725360255.html)

9
docs/index.md Normal file
View File

@ -0,0 +1,9 @@
# Documentation
This is the documentation for System76 Open Firmware. It is set up to be used
with [mdBook](https://github.com/rust-lang/mdBook), which can generate HTML
output for easy navigation.
```
mdbook build --open docs/
```

View File

@ -27,15 +27,46 @@ A restart is required for the change to take effect. On the boot after changing
the value, the system will perform a global reset (power off again) to complete
the change and ensure the IME is operating in a valid state.
## Tiger Lake-U
### Checking the state
Models using TGL-U processors default to having the IME enabled. TGL-U removes
support for S3 and requires S0ix. This requires all CPU, PCH, and PCIe devices
to have ACPI defined low power states. With S0ix, the CPU has numerous states
for low power, with the lowest being C10. In order to reach this C10 state, the
IME must report that it is in a low power state. Disabling the ME with the HAP
bit keeps the CPU in the C8 state. This nearly triples the power usage in S0ix
suspend, from around 1 watt to around 3 watts.
coreboot will log some IME data to cbmem during startup. This can be used to
check if it is in the correct state.
```
make -C coreboot/util/cbmem
sudo ./coreboot/util/cbmem/cbmem -c
```
When disabled it will report:
```
ME: Current Working State : 4
ME: Current Operation State : 1
ME: Current Operation Mode : 3
ME: Error Code : 2
```
When enabled it will report:
```
ME: Current Working State : 5
ME: Current Operation State : 1
ME: Current Operation Mode : 0
ME: Error Code : 0
```
## S0ix
S0ix (Modern Standby, s2idle) requires all CPU, PCH, and PCIe devices to have
ACPI defined low power states. The CPU has numerous states for low power, with
the lowest being C10. In order to reach this C10 state, the CSME must report
that it is in a low power state.
Disabling the CSME with the HAP bit or HECI command keeps the CPU in the C8
state. This nearly triples the power usage in S0ix suspend, from around 1 watt
to around 3 watts.
TGL-U removed support for S3 and requires S0ix.
[wiki]: https://en.wikipedia.org/wiki/Intel_Management_Engine

18
docs/schematics.md Normal file
View File

@ -0,0 +1,18 @@
# Schematics
## Systems using System76 Open Firmware
System76 customers may request board schematics for their system by sending an
email to `firmware@system76.com` with the subject line:
> Schematics for &lt;model&gt;
where `<model>` is a model that uses firmware-open. Include the serial number
of your system for verification.
You may not share these without explicit permission from System76.
## Other models and components
System76 cannot provide schematics for models not using firmware-open, nor
datasheets for any components that are not already publicly available.

View File

@ -14,12 +14,15 @@ Network functionality is disabled. Native PXE booting is not supported.
### Secure Boot
Secure Boot support is currently disabled.
Secure Boot support is enabled since system76/firmware-open@105e74b14613
(2023-04-03).
The implementation from 9elements is in development. If building a custom
image, the edk2 config `SECURE_BOOT_ENABLE` can be set to enable support.
A minimal firmware UI is available to delete all keys and enroll the default
keys. It is intended that most management is done from the OS.
There is currently no firmware UI to view or configure Secure Boot.
Note that the Secure Boot support present is only intended for allowing
Microsoft Windows installation checks to pass. It should not be relied on for
system security due to limitations of the implementation.
## Shell

2
ec

@ -1 +1 @@
Subproject commit 01907011bb6314bea0863eb33e6f1b93f6f4874a
Subproject commit e41716575ccb537871afec52f4d59a750db39d4a

2
edk2

@ -1 +1 @@
Subproject commit 27585e73da26b438b2b878ef2e11b3da28723f42
Subproject commit 9ca522ba15f34311ed9606534cf2397ec8081211

BIN
fsp/mtl/4122.12/MeteorLakeFspBinPkg/Fsp.fd (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -18,6 +18,7 @@
#include <IndustryStandard/SmBios.h>
#define INTEL_FIRMWARE_VERSION_INFO_GROUP_NAME "Firmware Version Info"
#define INTEL_FVI_SMBIOS_TYPE 0xDD
#pragma pack(1)

View File

@ -0,0 +1,80 @@
/** @file
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _FSP_PRODUCER_DATA_HEADER_H_
#define _FSP_PRODUCER_DATA_HEADER_H_
#include <Guid/FspHeaderFile.h>
#define BUILD_TIME_STAMP_SIZE 12
//
// FSP Header Data structure from FspHeader driver.
//
#pragma pack(1)
///
/// FSP Producer Data Subtype - 1
///
typedef struct {
///
/// Byte 0x00: Length of this FSP producer data type record.
///
UINT16 Length;
///
/// Byte 0x02: FSP producer data type.
///
UINT8 Type;
///
/// Byte 0x03: Revision of this FSP producer data type.
///
UINT8 Revision;
///
/// Byte 0x04: 4 byte field of RC version which is used to build this FSP image.
///
UINT32 RcVersion;
///
/// Byte 0x08: Represents the build time stamp "YYYYMMDDHHMM".
///
UINT8 BuildTimeStamp[BUILD_TIME_STAMP_SIZE];
} FSP_PRODUCER_DATA_TYPE1;
///
/// FSP Producer Data Subtype - 2
///
typedef struct {
///
/// Byte 0x00: Length of this FSP producer data type record.
///
UINT16 Length;
///
/// Byte 0x02: FSP producer data type.
///
UINT8 Type;
///
/// Byte 0x03: Revision of this FSP producer data type.
///
UINT8 Revision;
///
/// Byte 0x04: 4 byte field of Mrc version which is used to build this FSP image.
///
UINT8 MrcVersion [4];
} FSP_PRODUCER_DATA_TYPE2;
typedef struct {
FSP_INFO_HEADER FspInfoHeader;
FSP_INFO_EXTENDED_HEADER FspInfoExtendedHeader;
FSP_PRODUCER_DATA_TYPE1 FspProduceDataType1;
FSP_PRODUCER_DATA_TYPE2 FspProduceDataType2;
FSP_PATCH_TABLE FspPatchTable;
} FSP_PRODUCER_DATA_TABLES;
#pragma pack()
#endif // _FSP_PRODUCER_DATA_HEADER_H

View File

@ -1,6 +1,6 @@
/** @file
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@ -37,11 +37,11 @@ are permitted provided that the following conditions are met:
#pragma pack(1)
#define FSPT_UPD_SIGNATURE 0x545F4450554C4441 /* 'ADLUPD_T' */
#define FSPT_UPD_SIGNATURE 0x545F4450554C544D /* 'MTLUPD_T' */
#define FSPM_UPD_SIGNATURE 0x4D5F4450554C4441 /* 'ADLUPD_M' */
#define FSPM_UPD_SIGNATURE 0x4D5F4450554C544D /* 'MTLUPD_M' */
#define FSPS_UPD_SIGNATURE 0x535F4450554C4441 /* 'ADLUPD_S' */
#define FSPS_UPD_SIGNATURE 0x535F4450554C544D /* 'MTLUPD_S' */
#pragma pack()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
/** @file
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@ -74,8 +74,7 @@ typedef struct {
UINT8 PcdSerialIoUartDebugEnable;
/** Offset 0x0061 - PcdSerialIoUartNumber
Select SerialIo Uart Controller for debug. Note: If UART0 is selected as CNVi BT
Core interface, it cannot be used for debug purpose.
Select SerialIo Uart Controller for debug.
0:SerialIoUart0, 1:SerialIoUart1, 2:SerialIoUart2
**/
UINT8 PcdSerialIoUartNumber;
@ -87,9 +86,11 @@ typedef struct {
**/
UINT8 PcdSerialIoUartMode;
/** Offset 0x0063
/** Offset 0x0063 - PcdSerialIoUartPowerGating - FSPT
Select SerialIo Uart Controller Powergating mode
0:Disabled, 1:Enabled, 2:Auto
**/
UINT8 Rsvd00;
UINT8 PcdSerialIoUartPowerGating;
/** Offset 0x0064 - PcdSerialIoUartBaudRate - FSPT
Set default BaudRate Supported from 0 - default to 6000000
@ -157,19 +158,24 @@ typedef struct {
**/
UINT32 PcdSerialIoUartDebugMmioBase;
/** Offset 0x008C - PcdLpcUartDebugEnable
/** Offset 0x008C - PcdSerialIoUartDebugPciCfgBase - FSPT
Specify PciCfgBase address. Allows for SerialIO UART functionality outside Bus 0
**/
UINT32 PcdSerialIoUartDebugPciCfgBase;
/** Offset 0x0090 - PcdLpcUartDebugEnable
Enable to initialize LPC Uart device in FSP.
0:Disable, 1:Enable
**/
UINT8 PcdLpcUartDebugEnable;
/** Offset 0x008D - Debug Interfaces
/** Offset 0x0091 - Debug Interfaces
Debug Interfaces. BIT0-RAM, BIT1-UART, BIT3-USB3, BIT4-Serial IO, BIT5-TraceHub,
BIT2 - Not used.
**/
UINT8 PcdDebugInterfaceFlags;
/** Offset 0x008E - PcdSerialDebugLevel
/** Offset 0x0092 - PcdSerialDebugLevel
Serial Debug Message Level. 0:Disable, 1:Error Only, 2:Error & Warnings, 3:Load,
Error, Warnings & Info, 4:Load, Error, Warnings, Info & Event, 5:Load, Error, Warnings,
Info & Verbose.
@ -178,149 +184,206 @@ typedef struct {
**/
UINT8 PcdSerialDebugLevel;
/** Offset 0x008F - ISA Serial Base selection
/** Offset 0x0093 - ISA Serial Base selection
Select ISA Serial Base address. Default is 0x3F8.
0:0x3F8, 1:0x2F8
**/
UINT8 PcdIsaSerialUartBase;
/** Offset 0x0090 - PcdSerialIo2ndUartEnable
/** Offset 0x0094 - PcdSerialIo2ndUartEnable
Enable Additional SerialIo Uart device in FSP.
0:Disable, 1:Enable and Initialize, 2:Enable without Initializing
**/
UINT8 PcdSerialIo2ndUartEnable;
/** Offset 0x0091 - PcdSerialIo2ndUartNumber
/** Offset 0x0095 - PcdSerialIo2ndUartNumber
Select SerialIo Uart Controller Number
0:SerialIoUart0, 1:SerialIoUart1, 2:SerialIoUart2
**/
UINT8 PcdSerialIo2ndUartNumber;
/** Offset 0x0092 - PcdSerialIo2ndUartMode - FSPT
/** Offset 0x0096 - PcdSerialIo2ndUartMode - FSPT
Select SerialIo Uart Controller mode
0:SerialIoUartDisabled, 1:SerialIoUartPci, 2:SerialIoUartHidden, 3:SerialIoUartCom,
4:SerialIoUartSkipInit
**/
UINT8 PcdSerialIo2ndUartMode;
/** Offset 0x0093
/** Offset 0x0097
**/
UINT8 Rsvd01;
UINT8 Rsvd020[1];
/** Offset 0x0094 - PcdSerialIo2ndUartBaudRate - FSPT
/** Offset 0x0098 - PcdSerialIo2ndUartBaudRate - FSPT
Set default BaudRate Supported from 0 - default to 6000000
**/
UINT32 PcdSerialIo2ndUartBaudRate;
/** Offset 0x0098 - PcdSerialIo2ndUartParity - FSPT
/** Offset 0x009C - PcdSerialIo2ndUartParity - FSPT
Set default Parity.
0: DefaultParity, 1: NoParity, 2: EvenParity, 3: OddParity
**/
UINT8 PcdSerialIo2ndUartParity;
/** Offset 0x0099 - PcdSerialIo2ndUartDataBits - FSPT
/** Offset 0x009D - PcdSerialIo2ndUartDataBits - FSPT
Set default word length. 0: Default, 5,6,7,8
**/
UINT8 PcdSerialIo2ndUartDataBits;
/** Offset 0x009A - PcdSerialIo2ndUartStopBits - FSPT
/** Offset 0x009E - PcdSerialIo2ndUartStopBits - FSPT
Set default stop bits.
0: DefaultStopBits, 1: OneStopBit, 2: OneFiveStopBits, 3: TwoStopBits
**/
UINT8 PcdSerialIo2ndUartStopBits;
/** Offset 0x009B - PcdSerialIo2ndUartAutoFlow - FSPT
/** Offset 0x009F - PcdSerialIo2ndUartAutoFlow - FSPT
Enables UART hardware flow control, CTS and RTS lines.
0: Disable, 1:Enable
**/
UINT8 PcdSerialIo2ndUartAutoFlow;
/** Offset 0x009C - PcdSerialIo2ndUartRxPinMux - FSPT
/** Offset 0x00A0 - PcdSerialIo2ndUartRxPinMux - FSPT
Select RX pin muxing for SerialIo UART
**/
UINT32 PcdSerialIo2ndUartRxPinMux;
/** Offset 0x00A0 - PcdSerialIo2ndUartTxPinMux - FSPT
/** Offset 0x00A4 - PcdSerialIo2ndUartTxPinMux - FSPT
Select TX pin muxing for SerialIo UART
**/
UINT32 PcdSerialIo2ndUartTxPinMux;
/** Offset 0x00A4 - PcdSerialIo2ndUartRtsPinMux - FSPT
/** Offset 0x00A8 - PcdSerialIo2ndUartRtsPinMux - FSPT
Select SerialIo Uart Rts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_RTS*
for possible values.
**/
UINT32 PcdSerialIo2ndUartRtsPinMux;
/** Offset 0x00A8 - PcdSerialIo2ndUartCtsPinMux - FSPT
/** Offset 0x00AC - PcdSerialIo2ndUartCtsPinMux - FSPT
Select SerialIo Uart Cts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_CTS*
for possible values.
**/
UINT32 PcdSerialIo2ndUartCtsPinMux;
/** Offset 0x00AC - PcdSerialIo2ndUartMmioBase - FSPT
/** Offset 0x00B0 - PcdSerialIo2ndUartMmioBase - FSPT
Select SerialIo Uart default MMIO resource in SEC/PEI phase when PcdSerialIo2ndUartMode
= SerialIoUartPci.
**/
UINT32 PcdSerialIo2ndUartMmioBase;
/** Offset 0x00B0
/** Offset 0x00B4 - PcdSerialIo2ndUartPciCfgBase - FSPT
Specify PciCfgBase address. Allows for SerialIO UART functionality outside Bus 0
**/
UINT32 PcdSerialIo2ndUartPciCfgBase;
/** Offset 0x00B8
**/
UINT32 TopMemoryCacheSize;
/** Offset 0x00B4 - FspDebugHandler
/** Offset 0x00BC - FspDebugHandler
<b>Optional</b> pointer to the boot loader's implementation of FSP_DEBUG_HANDLER.
**/
UINT32 FspDebugHandler;
/** Offset 0x00B8 - Serial Io SPI Chip Select Polarity
/** Offset 0x00C0 - Serial Io SPI Chip Select Polarity
Sets polarity for each chip Select. Available options: 0:SerialIoSpiCsActiveLow,
1:SerialIoSpiCsActiveHigh
**/
UINT8 PcdSerialIoSpiCsPolarity[2];
/** Offset 0x00BA - Serial Io SPI Chip Select Enable
/** Offset 0x00C2 - Serial Io SPI Chip Select Enable
0:Disabled, 1:Enabled. Enables GPIO for CS0 or CS1 if it is Enabled
**/
UINT8 PcdSerialIoSpiCsEnable[2];
/** Offset 0x00BC - Serial Io SPI Device Mode
/** Offset 0x00C4 - Serial Io SPI Device Mode
When mode is set to Pci, controller is initalized in early stage. Available modes:
0:SerialIoSpiDisabled, 1:SerialIoSpiPci.
**/
UINT8 PcdSerialIoSpiMode;
/** Offset 0x00BD - Serial Io SPI Default Chip Select Output
/** Offset 0x00C5 - Serial Io SPI Default Chip Select Output
Sets Default CS as Output. Available options: 0:CS0, 1:CS1
**/
UINT8 PcdSerialIoSpiDefaultCsOutput;
/** Offset 0x00BE - Serial Io SPI Default Chip Select Mode HW/SW
/** Offset 0x00C6 - Serial Io SPI Default Chip Select Mode HW/SW
Sets Default CS Mode Hardware or Software. Available options: 0:HW, 1:SW
**/
UINT8 PcdSerialIoSpiCsMode;
/** Offset 0x00BF - Serial Io SPI Default Chip Select State Low/High
/** Offset 0x00C7 - Serial Io SPI Default Chip Select State Low/High
Sets Default CS State Low or High. Available options: 0:Low, 1:High
**/
UINT8 PcdSerialIoSpiCsState;
/** Offset 0x00C0 - Serial Io SPI Device Number
/** Offset 0x00C8 - Serial Io SPI Device Number
Select which Serial Io SPI controller is initalized in early stage.
**/
UINT8 PcdSerialIoSpiNumber;
/** Offset 0x00C1
/** Offset 0x00C9
**/
UINT8 Rsvd02[3];
UINT8 Rsvd030[3];
/** Offset 0x00C4 - Serial Io SPI Device MMIO Base
/** Offset 0x00CC - Serial Io SPI Device MMIO Base
Assigns MMIO for Serial Io SPI controller usage in early stage.
**/
UINT32 PcdSerialIoSpiMmioBase;
/** Offset 0x00C8
/** Offset 0x00D0 - Serial IO SPI CS Pin Muxing
Select SerialIo SPI CS pin muxing. Refer to GPIO_*_MUXING_SERIALIO_SPIx_CS* for
possible values.
**/
UINT8 ReservedFsptUpd1[16];
UINT32 PcdSerialIoSpiCsPinMux[2];
/** Offset 0x00D8 - Serial IO SPI CLK Pin Muxing
Select SerialIo SPI CLK pin muxing. Refer to GPIO_*_MUXING_SERIALIO_SPIx_CLK* for
possible values.
**/
UINT32 PcdSerialIoSpiClkPinMux;
/** Offset 0x00DC - Serial IO SPI MISO Pin Muxing
Select SerialIo SPI MISO pin muxing. Refer to GPIO_*_MUXING_SERIALIO_SPIx_MISO*
for possible values.
**/
UINT32 PcdSerialIoSpiMisoPinMux;
/** Offset 0x00E0 - Serial IO SPI MOSI Pin Muxing
Select SerialIo SPI MOSI pin muxing. Refer to GPIO_*_MUXING_SERIALIO_SPIx_MOSI*
for possible values.
**/
UINT32 PcdSerialIoSpiMosiPinMux;
/** Offset 0x00E4 - Serial Io I2C Device MMIO Base
Assigns MMIO for Serial Io I2C controller usage in early stage.
**/
UINT32 PcdSerialIoI2cMmioBase;
/** Offset 0x00E8 - Serial Io I2C Sda Gpio Pin
Select SerialIo I2C Rts pin. Refer to GPIO_*_MUXING_SERIALIO_I2C*_SDA* for possible values.
**/
UINT32 PcdSerialIoI2cSdaPin;
/** Offset 0x00EC - Serial Io I2C Scl Gpio Pin
Select SerialIo I2C Cts pin. Refer to GPIO_*_MUXING_SERIALIO_I2C*_SCL* for possible values.
**/
UINT32 PcdSerialIoI2cSclPin;
/** Offset 0x00F0 - Serial Io I2C Gpio Pad termination
0x0: Hardware default, 0x1: None, 0x13: 1kOhm weak pull-up, 0x15: 5kOhm weak pull-up,
0x19: 20kOhm weak pull-up - Enable/disable SerialIo I2C0,I2C1,... pads termination
respectively. One byte for each controller, byte0 for I2C0, byte1 for I2C1, and so on.
**/
UINT8 PcdSerialIoI2cPadsTerm;
/** Offset 0x00F1 - Serial Io I2c Controller Number
Select SerialIo I2C Controller number to be intilizaed during early boot. Default is 0xFF
0:SerialIoI2c0, 1:SerialIoI2c1, 2:SerialIoI2c2, 0xFF:Disable
**/
UINT8 PcdSerialIoI2cNumber;
/** Offset 0x00F2
**/
UINT8 ReservedFsptUpd1[6];
} FSP_T_CONFIG;
/** Fsp T UPD Configuration
@ -343,11 +406,11 @@ typedef struct {
**/
FSP_T_CONFIG FsptConfig;
/** Offset 0x00D8
/** Offset 0x00F8
**/
UINT8 Rsvd03[6];
UINT8 Rsvd3[6];
/** Offset 0x00DE
/** Offset 0x00FE
**/
UINT16 UpdTerminator;
} FSPT_UPD;

View File

@ -230,13 +230,6 @@ typedef enum {
GpioResetDefault = 0x00, ///< Leave value of pad reset unmodified
///
/// Deprecated settings. Maintained only for compatibility.
///
GpioResetPwrGood = 0x09, ///< GPP: RSMRST; GPD: DSW_PWROK; (PadRstCfg = 00b = "Powergood")
GpioResetDeep = 0x0B, ///< Deep GPIO Reset (PadRstCfg = 01b = "Deep GPIO Reset")
GpioResetNormal = 0x0D, ///< GPIO Reset (PadRstCfg = 10b = "GPIO Reset" )
GpioResetResume = 0x0F, ///< GPP: Reserved; GPD: RSMRST; (PadRstCfg = 11b = "Resume Reset" )
///
/// New GPIO reset configuration options

View File

@ -1,6 +1,6 @@
/** @file
Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@ -209,30 +209,8 @@ are permitted provided that the following conditions are met:
#define END_OF_GPIO_TABLE 0xFFFFFFFF
//
//AlderLake S GPIO PCIe SLOT RTD3 and PEG reset pins.
//
#define GPIO_VER4_S_GPP_E2 0x080E0002
#define GPIO_VER4_S_GPP_E3 0x080E0003
#define GPIO_VER4_S_GPP_F11 0x0810000B
#define GPIO_VER4_S_GPP_F12 0x0810000C
#define GPIO_VER4_S_GPP_F13 0x0810000D
//Sample GPIO Table
//
//AlderLake S Gpio table for assert PCIe SLOT RTD3 and PEG reset pins in early PreMem phase.
//
static GPIO_INIT_CONFIG mAdlSPcieRstPinGpioTable[] =
{
{ GPIO_VER4_S_GPP_E2, {GpioPadModeGpio, GpioHostOwnGpio, GpioDirOut, GpioOutHigh, GpioIntDefault, GpioPlatformReset, GpioTermNone }},// PEG_1 RTD3 Reset
{ GPIO_VER4_S_GPP_E3, {GpioPadModeGpio, GpioHostOwnGpio, GpioDirOut, GpioOutHigh, GpioIntDefault, GpioPlatformReset, GpioTermNone }},// PEG_2 RTD3 Reset Sinai DR0 (Rework)
{ GPIO_VER4_S_GPP_F11, {GpioPadModeGpio, GpioHostOwnGpio, GpioDirOut, GpioOutHigh, GpioIntDefault, GpioPlatformReset, GpioTermNone }},// PCIe SLOT_1 RTD3 Reset MIPI60 (Rework)
{ GPIO_VER4_S_GPP_F12, {GpioPadModeGpio, GpioHostOwnGpio, GpioDirOut, GpioOutHigh, GpioIntDefault, GpioPlatformReset, GpioTermNone }},// PCIe SLOT_2 RTD3 Reset MIPI60 (Rework)
{ GPIO_VER4_S_GPP_F13, {GpioPadModeGpio, GpioHostOwnGpio, GpioDirOut, GpioOutHigh, GpioIntDefault, GpioPlatformReset, GpioTermNone }},// PCIe SLOT_3 RTD3 Reset MIPI60 (Rework)
{ 0x0 } // terminator
};
static GPIO_INIT_CONFIG mGpioTableLpDdr3Rvp3[] =
{
//skip for eSPI function {GPIO_SKL_LP_GPP_A0, {GpioPadModeNative1, GpioHostOwnGpio, GpioDirNone, GpioOutDefault, GpioIntDis, GpioHostDeepReset, GpioTermNone}},//H_RCIN_N

View File

@ -5,7 +5,7 @@
@copyright
INTEL CONFIDENTIAL
Copyright 1999 - 2021 Intel Corporation.
Copyright 1999 - 2022 Intel Corporation.
The source code contained or described herein and all documents related to the
source code ("Material") are owned by Intel Corporation or its suppliers or
@ -41,12 +41,16 @@
#pragma pack (push, 1)
extern EFI_GUID gSiMemoryS3DataGuid;
extern EFI_GUID gSiMemoryS3Data2Guid;
extern EFI_GUID gSiMemoryInfoDataGuid;
extern EFI_GUID gSiMemoryPlatformDataGuid;
#define MAX_NODE 2
#define MAX_CH 4
#define MAX_DDR5_CH 2
#define MAX_DIMM 2
// Must match definitions in
// Intel\ClientOneSiliconPkg\IpBlock\MemoryInit\Mtl\Include\MrcInterface.h
#define HOB_MAX_SAGV_POINTS 4
///
@ -163,11 +167,19 @@ typedef enum {
#define MRC_DDR_TYPE_UNKNOWN 4
#endif
#define MAX_PROFILE_NUM 7 // number of memory profiles supported
#define MAX_XMP_PROFILE_NUM 5 // number of XMP profiles supported
#define MAX_PROFILE_NUM 7 // number of memory profiles supported
#define MAX_XMP_PROFILE_NUM 5 // number of XMP profiles supported
#define MAX_TRACE_REGION 5
#define MAX_TRACE_CACHE_TYPE 2
#ifndef MAX_RCOMP_TARGETS
#define MAX_RCOMP_TARGETS 5
#endif
#ifndef MAX_ODT_ENTRIES
#define MAX_ODT_ENTRIES 11
#endif
#define MAX_TRACE_REGION 5
#define MAX_TRACE_CACHE_TYPE 2
//
// DIMM timings
@ -180,7 +192,7 @@ typedef struct {
UINT16 tFAW; ///< Number of tCK cycles for the channel DIMM's minimum four activate window delay time.
UINT16 tRAS; ///< Number of tCK cycles for the channel DIMM's minimum active to precharge delay time.
UINT16 tRCDtRP; ///< Number of tCK cycles for the channel DIMM's minimum RAS# to CAS# delay time and Row Precharge delay time.
UINT16 tREFI; ///< Number of tCK cycles for the channel DIMM's minimum Average Periodic Refresh Interval.
UINT32 tREFI; ///< Number of tCK cycles for the channel DIMM's minimum Average Periodic Refresh Interval.
UINT16 tRFC; ///< Number of tCK cycles for the channel DIMM's minimum refresh recovery delay time.
UINT16 tRFCpb; ///< Number of tCK cycles for the channel DIMM's minimum per bank refresh recovery delay time.
UINT16 tRFC2; ///< Number of tCK cycles for the channel DIMM's minimum refresh recovery delay time.
@ -194,7 +206,9 @@ typedef struct {
UINT16 tWTR; ///< Number of tCK cycles for the channel DIMM's minimum internal write to read command delay time.
UINT16 tWTR_L; ///< Number of tCK cycles for the channel DIMM's minimum internal write to read command delay time for same bank groups.
UINT16 tWTR_S; ///< Number of tCK cycles for the channel DIMM's minimum internal write to read command delay time for different bank groups.
UINT16 tCCD_L; ///< Number of tCK cycles for the channel DIMM's minimum CAS-to-CAS delay for same bank group.
UINT16 tCCD_L; ///< Number of tCK cycles for the channel DIMM's minimum CAS-to-CAS delay for same bank group.
UINT16 tCCD_L_WR; ///< Number of tCK cycles for the channel DIMM's minimum Write-to-Write delay for same bank group.
UINT8 Resv[2]; ///< Resv
} MRC_CH_TIMING;
typedef struct {
@ -209,7 +223,7 @@ typedef struct {
UINT8 DimmId;
UINT32 DimmCapacity; ///< DIMM size in MBytes.
UINT16 MfgId;
UINT8 ModulePartNum[20]; ///< Module part number for DDR3 is 18 bytes however for DRR4 20 bytes as per JEDEC Spec, so reserving 20 bytes
UINT8 ModulePartNum[20]; ///< Module part number for DDR3 is 18 bytes however for DDR4 20 bytes as per JEDEC Spec, so reserving 20 bytes
UINT8 RankInDimm; ///< The number of ranks in this DIMM.
UINT8 SpdDramDeviceType; ///< Save SPD DramDeviceType information needed for SMBIOS structure creation.
UINT8 SpdModuleType; ///< Save SPD ModuleType information needed for SMBIOS structure creation.
@ -274,32 +288,26 @@ typedef struct {
SiMrcVersion Version;
BOOLEAN EccSupport;
UINT8 MemoryProfile;
UINT8 IsDMBRunning; ///< Deprecated.
UINT32 TotalPhysicalMemorySize;
UINT32 DefaultXmptCK[MAX_XMP_PROFILE_NUM];///< Stores the tCK value read from SPD XMP profiles if they exist.
///
/// Set of bit flags showing XMP and User Profile capability status for the DIMMs detected in system. For each bit, 1 is supported, 0 is unsupported.
/// Bit 0: XMP Profile 1 capability status
/// Bit 1: XMP Profile 2 capability status
/// Bit 2: XMP Profile 3 capability status
/// Bit 3: User Profile 4 capability status
/// Bit 4: User Profile 5 capability status
///
UINT8 XmpProfileEnable;
UINT8 XmpProfileEnable; ///< If XMP capable DIMMs are detected, this will indicate which XMP Profiles are common among all DIMMs.
UINT8 XmpConfigWarning; ///< If XMP capable DIMMs config support only 1DPC, but 2DPC is installed
UINT8 Ratio; ///< DDR Frequency Ratio, Max Value 255
BOOLEAN DynamicMemoryBoostTrainingFailed; ///< TRUE if Dynamic Memory Boost failed to train and was force disabled on the last full training boot. FALSE otherwise.
UINT16 Ratio; ///< DDR Frequency Ratio, used for programs that require ratios higher then 255
UINT8 RefClk;
UINT32 VddVoltage[MAX_PROFILE_NUM];
UINT32 VddqVoltage[MAX_PROFILE_NUM];
UINT32 VppVoltage[MAX_PROFILE_NUM];
UINT16 RcompTarget[MAX_PROFILE_NUM][MAX_RCOMP_TARGETS];
UINT16 DimmOdt[MAX_PROFILE_NUM][MAX_DIMM][MAX_ODT_ENTRIES];
CONTROLLER_INFO Controller[MAX_NODE];
UINT16 Ratio_UINT16; ///< DDR Frequency Ratio, used for programs that require ratios higher then 255
UINT32 NumPopulatedChannels; ///< Total number of memory channels populated
HOB_SAGV_INFO SagvConfigInfo; ///< This data structure contains SAGV config values that are considered output by the MRC.
BOOLEAN IsIbeccEnabled;
UINT16 TotalMemWidth; ///< Total Memory Width in bits from all populated channels
BOOLEAN MemorySpeedReducedWrongDimmSlot; ///< Can be used by OEM BIOS to display a warning on the screen that DDR speed was reduced due to wrong DIMM population
BOOLEAN MemorySpeedReducedMixedConfig; ///< Can be used by OEM BIOS to display a warning on the screen that DDR speed was reduced due to mixed DIMM config
BOOLEAN DynamicMemoryBoostTrainingFailed; ///< TRUE if Dynamic Memory Boost failed to train and was force disabled on the last full training boot. FALSE otherwise.
UINT16 PprDetectedErrors; ///< PPR: Counts of detected bad rows
UINT16 PprRepairFails; ///< PPR: Counts of repair failure
UINT16 PprForceRepairStatus; ///< PPR: Force Repair Status
} MEMORY_INFO_DATA_HOB;
/**

View File

@ -65,21 +65,22 @@
# FSP Dispatch mode bootloader will include this INF to ensure all the PCDs are
# built into PCD database.
#
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateSmmDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES
gSiPkgTokenSpaceGuid.PcdSiPciExpressBaseAddress ## CONSUMES
gSiPkgTokenSpaceGuid.PcdPciExpressRegionLength ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesCapability ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES
gSiPkgTokenSpaceGuid.PcdSiPciExpressBaseAddress ## CONSUMES
gSiPkgTokenSpaceGuid.PcdPciExpressRegionLength ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesCapability ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateSmmDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled ## CONSUMES

View File

@ -1,5 +1,5 @@
## @file
# Component description file for AlderLake Fsp Bin package.
# Component description file for MeteorLake Fsp Bin package.
#
# @copyright
# INTEL CONFIDENTIAL
@ -35,7 +35,7 @@
[Defines]
DEC_SPECIFICATION = 0x00010005
PACKAGE_NAME = AlderLakeFspBinPkg
PACKAGE_NAME = MeteorLakeFspBinPkg
PACKAGE_GUID = 5A536013-A46E-44AD-8B30-738235F77B06
PACKAGE_VERSION = 1.02

View File

@ -5,8 +5,12 @@
- [addw1](./addw1) - System76 Adder Workstation (addw1)
- [addw2](./addw2) - System76 Adder WS (addw2)
- [addw3](./addw3) - System76 Adder WS (addw3)
- [addw4](./addw4) - System76 Adder WS (addw4)
- [bonw14](./bonw14) - System76 Bonobo WS (bonw14)
- [bonw15](./bonw15) - System76 Bonobo WS (bonw15)
- [bonw15-b](./bonw15-b) - System76 Bonobo WS (bonw15-b)
- [darp10](./darp10) - System76 Darter Pro (darp10)
- [darp10-b](./darp10-b) - System76 Darter Pro (darp10-b)
- [darp5](./darp5) - System76 Darter Pro (darp5)
- [darp6](./darp6) - System76 Darter Pro (darp6)
- [darp7](./darp7) - System76 Darter Pro (darp7)
@ -32,9 +36,12 @@
- [lemp10](./lemp10) - System76 Lemur Pro (lemp10)
- [lemp11](./lemp11) - System76 Lemur Pro (lemp11)
- [lemp12](./lemp12) - System76 Lemur Pro (lemp12)
- [lemp13](./lemp13) - System76 Lemur Pro (lemp13)
- [lemp13-b](./lemp13-b) - System76 Lemur Pro (lemp13-b)
- [lemp9](./lemp9) - System76 Lemur Pro (lemp9)
- [oryp10](./oryp10) - System76 Oryx Pro (oryp10)
- [oryp11](./oryp11) - System76 Oryx Pro (oryp11)
- [oryp12](./oryp12) - System76 Oryx Pro (oryp12)
- [oryp5](./oryp5) - System76 Oryx Pro (oryp5)
- [oryp6](./oryp6) - System76 Oryx Pro (oryp6)
- [oryp7](./oryp7) - System76 Oryx Pro (oryp7)

View File

@ -11,4 +11,4 @@ https://system76.com/guides/addw1
- HAP: false
- [ME](./me.rom)
- Size: 6140 KB
- Version: 12.0.85.1919
- Version: 12.0.94.2428

View File

@ -1,245 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MAINBOARD_GPIO_H
#define MAINBOARD_GPIO_H
#include <soc/gpe.h>
#include <soc/gpio.h>
#ifndef __ACPI__
/* Pad configuration in ramstage. */
static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPD0, NONE, DEEP, NF1),
PAD_CFG_NF(GPD1, NATIVE, DEEP, NF1),
PAD_CFG_GPI(GPD2, NATIVE, PWROK),
PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPD4, NONE, DEEP, NF1),
PAD_CFG_NF(GPD5, NONE, DEEP, NF1),
PAD_CFG_NF(GPD6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPD7, NONE, PWROK),
PAD_CFG_NF(GPD8, NONE, DEEP, NF1),
PAD_CFG_NF(GPD9, NONE, PWROK, NF1),
_PAD_CFG_STRUCT(GPD10, 0x04000601, 0x0000),
PAD_CFG_NF(GPD11, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_A0, 0, NONE, DEEP),
PAD_CFG_NF(GPP_A1, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A2, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A3, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A4, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_A7, NONE, DEEP),
PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A9, DN_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A10, DN_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_A11, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A12, NONE, DEEP),
PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A15, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_A16, DN_20K, DEEP),
PAD_CFG_GPI(GPP_A17, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_A18, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_A19, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_A20, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_A21, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_A22, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_A23, NONE, DEEP),
PAD_CFG_GPI(GPP_B0, NONE, DEEP),
PAD_CFG_GPI(GPP_B1, NONE, DEEP),
PAD_CFG_GPI(GPP_B2, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_B3, 0x80100100, 0x0000),
PAD_CFG_GPI(GPP_B4, NONE, DEEP),
PAD_CFG_NF(GPP_B5, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B6, NONE, DEEP),
PAD_CFG_GPI(GPP_B7, NONE, DEEP),
PAD_CFG_GPI(GPP_B8, NONE, DEEP),
PAD_CFG_GPI(GPP_B9, NONE, DEEP),
PAD_CFG_NF(GPP_B10, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B11, NONE, DEEP),
PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_B13, 0x44000601, 0x0000),
PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B15, NONE, DEEP),
PAD_CFG_GPI(GPP_B16, NONE, DEEP),
PAD_CFG_GPI(GPP_B17, NONE, DEEP),
PAD_CFG_GPI(GPP_B18, NONE, DEEP),
PAD_CFG_GPI(GPP_B19, NONE, DEEP),
PAD_CFG_GPI(GPP_B20, NONE, DEEP),
PAD_CFG_GPI(GPP_B21, NONE, DEEP),
PAD_CFG_GPI(GPP_B22, NONE, DEEP),
PAD_CFG_GPI(GPP_B23, NONE, DEEP),
PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_C2, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_C3, NONE, DEEP),
PAD_CFG_GPI(GPP_C4, NONE, DEEP),
PAD_CFG_GPI(GPP_C5, NONE, DEEP),
PAD_CFG_GPI(GPP_C6, NONE, DEEP),
PAD_CFG_GPI(GPP_C7, NONE, DEEP),
PAD_CFG_GPI(GPP_C8, NONE, DEEP),
PAD_CFG_GPI(GPP_C9, NONE, DEEP),
PAD_CFG_GPI(GPP_C10, NONE, DEEP),
PAD_CFG_GPI(GPP_C11, NONE, DEEP),
PAD_CFG_GPI(GPP_C12, NONE, DEEP),
PAD_CFG_GPI(GPP_C13, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_C14, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_C15, NONE, DEEP),
PAD_CFG_NF(GPP_C16, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C17, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C18, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C19, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C22, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C23, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_D0, NONE, DEEP),
PAD_CFG_GPI(GPP_D1, NONE, DEEP),
PAD_CFG_GPI(GPP_D2, NONE, DEEP),
PAD_CFG_GPI(GPP_D3, NONE, DEEP),
PAD_CFG_GPI(GPP_D4, NONE, DEEP),
PAD_CFG_NF(GPP_D5, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_D6, NONE, DEEP, NF3),
PAD_CFG_GPI(GPP_D7, NONE, DEEP),
PAD_CFG_GPI(GPP_D8, NONE, DEEP),
PAD_CFG_GPI(GPP_D9, NONE, DEEP),
PAD_CFG_GPI(GPP_D10, NONE, DEEP),
PAD_CFG_GPI(GPP_D11, NONE, DEEP),
PAD_CFG_GPI(GPP_D12, NONE, DEEP),
PAD_CFG_GPI(GPP_D13, NONE, DEEP),
PAD_CFG_GPI(GPP_D14, NONE, DEEP),
PAD_CFG_GPI(GPP_D15, NONE, DEEP),
PAD_CFG_GPI(GPP_D16, NONE, DEEP),
PAD_CFG_NF(GPP_D17, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D18, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D20, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_D21, NONE, DEEP),
PAD_CFG_GPI(GPP_D22, NONE, DEEP),
PAD_CFG_GPI(GPP_D23, NONE, DEEP),
PAD_CFG_GPI(GPP_E0, NONE, DEEP),
PAD_CFG_NF(GPP_E1, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_E2, NONE, DEEP),
PAD_CFG_GPI(GPP_E3, NONE, DEEP),
PAD_CFG_GPI(GPP_E4, NONE, DEEP),
PAD_CFG_NF(GPP_E5, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_E6, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_E7, NONE, DEEP),
PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_E9, NONE, DEEP),
PAD_CFG_GPI(GPP_E10, NONE, DEEP),
PAD_CFG_GPI(GPP_E11, NONE, DEEP),
PAD_CFG_GPI(GPP_E12, NONE, DEEP),
PAD_CFG_GPI(GPP_F0, NONE, DEEP),
PAD_CFG_GPI(GPP_F1, NONE, DEEP),
PAD_CFG_GPI(GPP_F2, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F3, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F4, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_F5, NONE, DEEP),
PAD_CFG_GPI(GPP_F6, NONE, DEEP),
PAD_CFG_GPI(GPP_F7, NONE, DEEP),
PAD_CFG_GPI(GPP_F8, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F9, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_F10, NONE, DEEP),
PAD_CFG_GPI(GPP_F11, NONE, DEEP),
PAD_CFG_GPI(GPP_F12, NONE, DEEP),
PAD_CFG_GPI(GPP_F13, NONE, DEEP),
PAD_CFG_GPI(GPP_F14, NONE, DEEP),
PAD_CFG_GPI(GPP_F15, NONE, DEEP),
PAD_CFG_GPI(GPP_F16, NONE, DEEP),
PAD_CFG_GPI(GPP_F17, NONE, DEEP),
PAD_CFG_GPI(GPP_F18, NONE, DEEP),
PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_F22, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F23, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_G0, NONE, DEEP),
PAD_CFG_GPI(GPP_G1, NONE, DEEP),
PAD_CFG_GPI(GPP_G2, NONE, DEEP),
PAD_CFG_GPI(GPP_G3, NONE, DEEP),
PAD_CFG_GPI(GPP_G4, NONE, DEEP),
PAD_CFG_GPI(GPP_G5, NONE, DEEP),
PAD_CFG_GPI(GPP_G6, NONE, DEEP),
PAD_CFG_GPI(GPP_G7, NONE, DEEP),
PAD_CFG_NF(GPP_H0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H2, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H3, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_H5, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H6, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H7, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_H8, NONE, DEEP),
PAD_CFG_GPI(GPP_H9, NONE, DEEP),
PAD_CFG_GPI(GPP_H10, NONE, DEEP),
PAD_CFG_GPI(GPP_H11, NONE, DEEP),
PAD_CFG_GPI(GPP_H12, NONE, DEEP),
PAD_CFG_GPI(GPP_H13, NONE, DEEP),
PAD_CFG_GPI(GPP_H14, NONE, DEEP),
PAD_CFG_GPI(GPP_H15, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_H16, 0x44000101, 0x0000),
PAD_CFG_TERM_GPO(GPP_H17, 0, NONE, PLTRST),
PAD_CFG_TERM_GPO(GPP_H18, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H19, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_H20, NONE, DEEP),
PAD_CFG_GPI(GPP_H21, NONE, DEEP),
PAD_CFG_GPI(GPP_H22, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_H23, 0x82880100, 0x0000),
_PAD_CFG_STRUCT(GPP_I0, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I1, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I2, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I3, 0x46080100, 0x0000),
PAD_CFG_NF(GPP_I4, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_I5, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_I6, NONE, DEEP),
PAD_CFG_GPI(GPP_I7, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I8, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I9, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_I10, NONE, DEEP),
PAD_CFG_GPI(GPP_I11, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I12, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_I13, NONE, DEEP),
PAD_CFG_GPI(GPP_I14, NONE, DEEP),
PAD_CFG_NF(GPP_J0, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_J1, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_J2, NONE, DEEP),
PAD_CFG_GPI(GPP_J3, NONE, DEEP),
PAD_CFG_NF(GPP_J4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J5, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J7, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J9, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_J10, NONE, DEEP),
PAD_CFG_GPI(GPP_J11, DN_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K0, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K1, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K2, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K3, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_K4, NONE, DEEP),
PAD_CFG_GPI(GPP_K5, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K6, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_K7, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K8, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_K9, NONE, DEEP),
PAD_CFG_GPI(GPP_K10, NONE, DEEP),
PAD_CFG_GPI(GPP_K11, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K12, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_K13, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K14, 0, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K15, 0x80100100, 0x0000),
PAD_CFG_GPI(GPP_K16, NONE, DEEP),
PAD_CFG_GPI(GPP_K17, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K18, 1, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K19, 0x42800101, 0x0000),
PAD_CFG_GPI(GPP_K20, NONE, DEEP),
PAD_CFG_GPI(GPP_K21, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K22, 0x44000101, 0x0000),
PAD_CFG_GPI(GPP_K23, NONE, DEEP),
};
#endif
#endif

View File

@ -1,43 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
/* Realtek, ALC1220 */
0x10ec1220, /* Vendor ID */
0x155865d1, /* Subsystem ID */
12, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x155865d1),
AZALIA_PIN_CFG(0, 0x12, 0x90a60130),
AZALIA_PIN_CFG(0, 0x14, 0x0421101f),
AZALIA_PIN_CFG(0, 0x15, 0x40000000),
AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
AZALIA_PIN_CFG(0, 0x18, 0x04a11040),
AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1b, 0x90170110),
AZALIA_PIN_CFG(0, 0x1d, 0x40b7952d),
AZALIA_PIN_CFG(0, 0x1e, 0x04451150),
/* Intel, KabylakeHDMI */
0x8086280b, /* Vendor ID */
0x80860101, /* Subsystem ID */
4, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560010),
AZALIA_PIN_CFG(2, 0x07, 0x18560010),
/* Nvidia, GPU93HDMI/DP */
0x10de0093, /* Vendor ID */
0x155865d1, /* Subsystem ID */
5, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x155865d1),
AZALIA_PIN_CFG(0, 0x04, 0x185600f0),
AZALIA_PIN_CFG(0, 0x05, 0x185600f0),
AZALIA_PIN_CFG(0, 0x06, 0x185600f0),
AZALIA_PIN_CFG(0, 0x07, 0x185600f0),
};
const u32 pc_beep_verbs[] = {};
AZALIA_ARRAY_SIZES;

BIN
models/addw1/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@ -11,4 +11,4 @@ https://system76.com/guides/addw2
- HAP: false
- [ME](./me.rom)
- Size: 4092 KB
- Version: 14.0.60.1807
- Version: 14.1.72.2287

View File

@ -1,258 +0,0 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2019 System76
*
* 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; version 2 of the License.
*
* 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.
*/
#ifndef MAINBOARD_GPIO_H
#define MAINBOARD_GPIO_H
#include <soc/gpe.h>
#include <soc/gpio.h>
#ifndef __ACPI__
/* Pad configuration in ramstage. */
static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPD0, NONE, DEEP, NF1),
PAD_CFG_NF(GPD1, NATIVE, DEEP, NF1),
PAD_CFG_GPI(GPD2, NATIVE, PWROK),
PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPD4, NONE, DEEP, NF1),
PAD_CFG_NF(GPD5, NONE, DEEP, NF1),
PAD_CFG_NF(GPD6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPD7, NONE, PWROK),
PAD_CFG_NF(GPD8, NONE, DEEP, NF1),
PAD_CFG_NF(GPD9, NONE, PWROK, NF1),
_PAD_CFG_STRUCT(GPD10, 0x04000601, 0x0000),
PAD_CFG_NF(GPD11, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_A0, NONE, DEEP),
PAD_CFG_NF(GPP_A1, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A2, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A3, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A4, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_A7, NONE, DEEP),
PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A9, DN_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A10, DN_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_A11, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A12, NONE, DEEP),
PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_A14, 0x80800100, 0x0000),
PAD_CFG_NF(GPP_A15, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_A16, DN_20K, DEEP),
PAD_CFG_GPI(GPP_A17, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_A18, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_A19, NONE, DEEP),
PAD_CFG_GPI(GPP_A20, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_A21, 0x46080100, 0x0000),
PAD_CFG_TERM_GPO(GPP_A22, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_A23, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_B0, 0x42080100, 0x3000),
PAD_CFG_GPI(GPP_B1, NONE, DEEP),
PAD_CFG_GPI(GPP_B2, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_B3, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_B4, NONE, DEEP),
PAD_CFG_NF(GPP_B5, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B6, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_B7, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_B8, NONE, DEEP),
PAD_CFG_GPI(GPP_B9, NONE, DEEP),
PAD_CFG_NF(GPP_B10, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B11, NONE, DEEP),
PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_B13, 0x44000601, 0x0000),
PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B15, NONE, DEEP),
PAD_CFG_GPI(GPP_B16, NONE, DEEP),
PAD_CFG_GPI(GPP_B17, NONE, DEEP),
PAD_CFG_GPI(GPP_B18, NONE, DEEP),
PAD_CFG_GPI(GPP_B19, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_B20, 0x42840101, 0x0000),
PAD_CFG_GPI(GPP_B21, NONE, DEEP),
PAD_CFG_GPI(GPP_B22, NONE, DEEP),
PAD_CFG_GPI(GPP_B23, NONE, DEEP),
PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_C2, NONE, DEEP),
PAD_CFG_GPI(GPP_C3, NONE, DEEP),
PAD_CFG_GPI(GPP_C4, NONE, DEEP),
PAD_CFG_GPI(GPP_C5, NONE, DEEP),
PAD_CFG_GPI(GPP_C6, NONE, DEEP),
PAD_CFG_GPI(GPP_C7, NONE, DEEP),
PAD_CFG_GPI(GPP_C8, NONE, DEEP),
PAD_CFG_GPI(GPP_C9, NONE, DEEP),
PAD_CFG_GPI(GPP_C10, NONE, DEEP),
PAD_CFG_GPI(GPP_C11, NONE, DEEP),
PAD_CFG_GPI(GPP_C12, NONE, DEEP),
PAD_CFG_GPI(GPP_C13, NONE, PLTRST),
PAD_CFG_TERM_GPO(GPP_C14, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_C15, NONE, DEEP),
PAD_CFG_NF(GPP_C16, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C17, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C18, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C19, NONE, PLTRST, NF1),
PAD_CFG_GPI(GPP_C20, NONE, DEEP),
PAD_CFG_GPI(GPP_C21, NONE, DEEP),
PAD_CFG_GPI(GPP_C22, NONE, DEEP),
PAD_CFG_GPI(GPP_C23, NONE, DEEP),
PAD_CFG_GPI(GPP_D0, NONE, DEEP),
PAD_CFG_GPI(GPP_D1, NONE, DEEP),
PAD_CFG_GPI(GPP_D2, NONE, DEEP),
PAD_CFG_GPI(GPP_D3, NONE, DEEP),
PAD_CFG_GPI(GPP_D4, NONE, DEEP),
PAD_CFG_NF(GPP_D5, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_D6, NONE, DEEP, NF3),
PAD_CFG_GPI(GPP_D7, NONE, DEEP),
PAD_CFG_GPI(GPP_D8, NONE, DEEP),
PAD_CFG_GPI(GPP_D9, NONE, DEEP),
PAD_CFG_GPI(GPP_D10, NONE, DEEP),
PAD_CFG_GPI(GPP_D11, NONE, DEEP),
PAD_CFG_GPI(GPP_D12, NONE, DEEP),
PAD_CFG_GPI(GPP_D13, NONE, DEEP),
PAD_CFG_GPI(GPP_D14, NONE, DEEP),
PAD_CFG_GPI(GPP_D15, NONE, DEEP),
PAD_CFG_GPI(GPP_D16, NONE, DEEP),
PAD_CFG_NF(GPP_D17, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D18, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D20, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_D21, NONE, DEEP),
PAD_CFG_GPI(GPP_D22, NONE, DEEP),
PAD_CFG_GPI(GPP_D23, NONE, DEEP),
PAD_CFG_GPI(GPP_E0, NONE, DEEP),
PAD_CFG_NF(GPP_E1, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_E2, NONE, DEEP),
PAD_CFG_GPI(GPP_E3, NONE, DEEP),
PAD_CFG_GPI(GPP_E4, NONE, DEEP),
PAD_CFG_NF(GPP_E5, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_E6, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_E7, NONE, DEEP),
PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_E9, NONE, DEEP),
PAD_CFG_GPI(GPP_E10, NONE, DEEP),
PAD_CFG_GPI(GPP_E11, NONE, DEEP),
PAD_CFG_GPI(GPP_E12, NONE, DEEP),
PAD_CFG_GPI(GPP_F0, NONE, DEEP),
PAD_CFG_GPI(GPP_F1, NONE, DEEP),
PAD_CFG_GPI(GPP_F2, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F3, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_F4, NONE, DEEP),
PAD_CFG_GPI(GPP_F5, NONE, DEEP),
PAD_CFG_GPI(GPP_F6, NONE, DEEP),
PAD_CFG_GPI(GPP_F7, NONE, DEEP),
PAD_CFG_GPI(GPP_F8, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F9, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_F10, NONE, DEEP),
PAD_CFG_GPI(GPP_F11, NONE, DEEP),
PAD_CFG_GPI(GPP_F12, NONE, DEEP),
PAD_CFG_GPI(GPP_F13, NONE, DEEP),
PAD_CFG_GPI(GPP_F14, NONE, DEEP),
PAD_CFG_GPI(GPP_F15, NONE, DEEP),
PAD_CFG_GPI(GPP_F16, NONE, DEEP),
PAD_CFG_GPI(GPP_F17, NONE, DEEP),
PAD_CFG_GPI(GPP_F18, NONE, DEEP),
PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_F22, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_F23, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_G0, NONE, DEEP),
PAD_CFG_GPI(GPP_G1, NONE, DEEP),
PAD_CFG_GPI(GPP_G2, NONE, DEEP),
PAD_CFG_GPI(GPP_G3, NONE, DEEP),
PAD_CFG_GPI(GPP_G4, NONE, DEEP),
PAD_CFG_GPI(GPP_G5, NONE, DEEP),
PAD_CFG_GPI(GPP_G6, NONE, DEEP),
PAD_CFG_GPI(GPP_G7, NONE, DEEP),
PAD_CFG_NF(GPP_H0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H2, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H3, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_H4, NONE, DEEP),
PAD_CFG_GPI(GPP_H5, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H6, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H7, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_H8, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_H9, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_H10, NONE, DEEP),
PAD_CFG_GPI(GPP_H11, NONE, DEEP),
PAD_CFG_GPI(GPP_H12, NONE, DEEP),
PAD_CFG_GPI(GPP_H13, NONE, DEEP),
PAD_CFG_GPI(GPP_H14, NONE, DEEP),
PAD_CFG_GPI(GPP_H15, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H16, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H17, 0, NONE, PLTRST),
PAD_CFG_GPI(GPP_H18, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H19, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_H20, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_H21, NONE, DEEP),
PAD_CFG_GPI(GPP_H22, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_H23, 0x82880100, 0x0000),
_PAD_CFG_STRUCT(GPP_I0, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I1, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I2, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I3, 0x46080100, 0x0000),
PAD_CFG_NF(GPP_I4, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_I5, 0, UP_20K, PLTRST),
PAD_CFG_GPI(GPP_I6, NONE, DEEP),
PAD_CFG_GPI(GPP_I7, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I8, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I9, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_I10, NONE, DEEP),
PAD_CFG_GPI(GPP_I11, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I12, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_I13, NONE, DEEP),
PAD_CFG_GPI(GPP_I14, NONE, DEEP),
PAD_CFG_NF(GPP_J0, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_J1, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_J2, NONE, DEEP),
PAD_CFG_GPI(GPP_J3, NONE, DEEP),
PAD_CFG_NF(GPP_J4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J5, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J7, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J9, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_J10, NONE, DEEP),
PAD_CFG_GPI(GPP_J11, DN_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K0, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K1, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K2, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K3, 0x40880100, 0x0000),
_PAD_CFG_STRUCT(GPP_K4, 0x44000101, 0x0000),
PAD_CFG_GPI(GPP_K5, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K6, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_K7, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K8, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K9, NONE, DEEP),
PAD_CFG_GPI(GPP_K10, NONE, DEEP),
PAD_CFG_GPI(GPP_K11, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K12, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K13, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K14, 0, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K15, 0x80100100, 0x0000),
PAD_CFG_GPI(GPP_K16, NONE, DEEP),
PAD_CFG_GPI(GPP_K17, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K18, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_K19, NONE, DEEP),
PAD_CFG_GPI(GPP_K20, NONE, DEEP),
PAD_CFG_GPI(GPP_K21, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K22, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K23, NONE, DEEP),
};
#endif
#endif

View File

@ -1,43 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
/* Realtek, ALC1220 */
0x10ec1220, /* Vendor ID */
0x155865e1, /* Subsystem ID */
12, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x155865e1),
AZALIA_PIN_CFG(0, 0x12, 0x90a60130),
AZALIA_PIN_CFG(0, 0x14, 0x0421101f),
AZALIA_PIN_CFG(0, 0x15, 0x40000000),
AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
AZALIA_PIN_CFG(0, 0x18, 0x04a11040),
AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1b, 0x90170110),
AZALIA_PIN_CFG(0, 0x1d, 0x40b7952d),
AZALIA_PIN_CFG(0, 0x1e, 0x04451150),
/* Intel, KabylakeHDMI */
0x8086280b, /* Vendor ID */
0x80860101, /* Subsystem ID */
4, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560010),
AZALIA_PIN_CFG(2, 0x07, 0x18560010),
/* Nvidia, GPU92HDMI/DP */
0x10de0092, /* Vendor ID */
0x155865e1, /* Subsystem ID */
5, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x155865e1),
AZALIA_PIN_CFG(0, 0x04, 0x185600f0),
AZALIA_PIN_CFG(0, 0x05, 0x185600f0),
AZALIA_PIN_CFG(0, 0x06, 0x185600f0),
AZALIA_PIN_CFG(0, 0x07, 0x185600f0),
};
const u32 pc_beep_verbs[] = {};
AZALIA_ARRAY_SIZES;

BIN
models/addw2/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@ -1,43 +0,0 @@
## @file
# Component description file for AlderLake Fsp Bin package.
#
# @copyright
# INTEL CONFIDENTIAL
# Copyright 2016 - 2019 Intel Corporation.
#
# The source code contained or described herein and all documents related to the
# source code ("Material") are owned by Intel Corporation or its suppliers or
# licensors. Title to the Material remains with Intel Corporation or its suppliers
# and licensors. The Material may contain trade secrets and proprietary and
# confidential information of Intel Corporation and its suppliers and licensors,
# and is protected by worldwide copyright and trade secret laws and treaty
# provisions. No part of the Material may be used, copied, reproduced, modified,
# published, uploaded, posted, transmitted, distributed, or disclosed in any way
# without Intel's prior express written permission.
#
# No license under any patent, copyright, trade secret or other intellectual
# property right is granted to or conferred upon you by disclosure or delivery
# of the Materials, either expressly, by implication, inducement, estoppel or
# otherwise. Any license under such intellectual property rights must be
# express and approved by Intel in writing.
#
# Unless otherwise agreed by Intel in writing, you may not remove or alter
# this notice or any other notice embedded in Materials by Intel or
# Intel's suppliers or licensors in any way.
#
# This file contains an 'Intel Peripheral Driver' and is uniquely identified as
# "Intel Reference Module" and is licensed for Intel CPUs and chipsets under
# the terms of your license agreement with Intel or your vendor. This file may
# be modified by the user, subject to additional terms of the license agreement.
#
# @par Specification
##
[Defines]
DEC_SPECIFICATION = 0x00010005
PACKAGE_NAME = AlderLakeFspBinPkg
PACKAGE_GUID = 5A536013-A46E-44AD-8B30-738235F77B06
PACKAGE_VERSION = 1.02
[Includes]
Include

BIN
models/addw3/AlderLakeFspBinPkg/Fsp.fd (Stored with Git LFS)

Binary file not shown.

View File

@ -1,54 +0,0 @@
/** @file
Intel Firmware Version Info (FVI) related definitions.
@todo update document/spec reference
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Specification Reference:
System Management BIOS (SMBIOS) Reference Specification v3.0.0 dated 2015-Feb-12
http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.0.0.pdf
**/
#ifndef __FIRMWARE_VERSION_INFO_H__
#define __FIRMWARE_VERSION_INFO_H__
#include <IndustryStandard/SmBios.h>
#define INTEL_FIRMWARE_VERSION_INFO_GROUP_NAME "Firmware Version Info"
#pragma pack(1)
///
/// Firmware Version Structure
///
typedef struct {
UINT8 MajorVersion;
UINT8 MinorVersion;
UINT8 Revision;
UINT16 BuildNumber;
} INTEL_FIRMWARE_VERSION;
///
/// Firmware Version Info (FVI) Structure
///
typedef struct {
SMBIOS_TABLE_STRING ComponentName; ///< String Index of Component Name
SMBIOS_TABLE_STRING VersionString; ///< String Index of Version String
INTEL_FIRMWARE_VERSION Version; ///< Firmware version
} INTEL_FIRMWARE_VERSION_INFO;
///
/// SMBIOS OEM Type Intel Firmware Version Info (FVI) Structure
///
typedef struct {
SMBIOS_STRUCTURE Header; ///< SMBIOS structure header
UINT8 Count; ///< Number of FVI entries in this structure
INTEL_FIRMWARE_VERSION_INFO Fvi[1]; ///< FVI structure(s)
} SMBIOS_TABLE_TYPE_OEM_INTEL_FVI;
#pragma pack()
#endif

View File

@ -1,68 +0,0 @@
/** @file
Header file for Firmware Version Information
@copyright
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License which accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _FIRMWARE_VERSION_INFO_HOB_H_
#define _FIRMWARE_VERSION_INFO_HOB_H_
#include <Uefi/UefiMultiPhase.h>
#include <Pi/PiBootMode.h>
#include <Pi/PiHob.h>
#pragma pack(1)
///
/// Firmware Version Structure
///
typedef struct {
UINT8 MajorVersion;
UINT8 MinorVersion;
UINT8 Revision;
UINT16 BuildNumber;
} FIRMWARE_VERSION;
///
/// Firmware Version Information Structure
///
typedef struct {
UINT8 ComponentNameIndex; ///< Offset 0 Index of Component Name
UINT8 VersionStringIndex; ///< Offset 1 Index of Version String
FIRMWARE_VERSION Version; ///< Offset 2-6 Firmware version
} FIRMWARE_VERSION_INFO;
#ifndef __SMBIOS_STANDARD_H__
///
/// The Smbios structure header.
///
typedef struct {
UINT8 Type;
UINT8 Length;
UINT16 Handle;
} SMBIOS_STRUCTURE;
#endif
///
/// Firmware Version Information HOB Structure
///
typedef struct {
EFI_HOB_GUID_TYPE Header; ///< Offset 0-23 The header of FVI HOB
SMBIOS_STRUCTURE SmbiosData; ///< Offset 24-27 The SMBIOS header of FVI HOB
UINT8 Count; ///< Offset 28 Number of FVI elements included.
///
/// FIRMWARE_VERSION_INFO structures followed by the null terminated string buffer
///
} FIRMWARE_VERSION_INFO_HOB;
#pragma pack()
#endif // _FIRMWARE_VERSION_INFO_HOB_H_

View File

@ -1,56 +0,0 @@
/** @file
Header file for FSP Information HOB.
@copyright
INTEL CONFIDENTIAL
Copyright 2017 - 2019 Intel Corporation.
The source code contained or described herein and all documents related to the
source code ("Material") are owned by Intel Corporation or its suppliers or
licensors. Title to the Material remains with Intel Corporation or its suppliers
and licensors. The Material may contain trade secrets and proprietary and
confidential information of Intel Corporation and its suppliers and licensors,
and is protected by worldwide copyright and trade secret laws and treaty
provisions. No part of the Material may be used, copied, reproduced, modified,
published, uploaded, posted, transmitted, distributed, or disclosed in any way
without Intel's prior express written permission.
No license under any patent, copyright, trade secret or other intellectual
property right is granted to or conferred upon you by disclosure or delivery
of the Materials, either expressly, by implication, inducement, estoppel or
otherwise. Any license under such intellectual property rights must be
express and approved by Intel in writing.
Unless otherwise agreed by Intel in writing, you may not remove or alter
this notice or any other notice embedded in Materials by Intel or
Intel's suppliers or licensors in any way.
This file contains an 'Intel Peripheral Driver' and is uniquely identified as
"Intel Reference Module" and is licensed for Intel CPUs and chipsets under
the terms of your license agreement with Intel or your vendor. This file may
be modified by the user, subject to additional terms of the license agreement.
@par Specification Reference:
**/
#ifndef _FSP_INFO_HOB_H_
#define _FSP_INFO_HOB_H_
extern EFI_GUID gFspInfoGuid;
#pragma pack (push, 1)
typedef struct {
UINT8 SiliconInitVersionMajor;
UINT8 SiliconInitVersionMinor;
UINT8 SiliconInitVersionRevision;
UINT8 SiliconInitVersionBuild;
UINT8 FspVersionRevision;
UINT8 FspVersionBuild;
UINT8 TimeStamp [12];
UINT8 FspVersionMinor;
} FSP_INFO_HOB;
#pragma pack (pop)
#endif // _FSP_INFO_HOB_H_

View File

@ -1,48 +0,0 @@
/** @file
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
This file is automatically generated. Please do NOT modify !!!
**/
#ifndef __FSPUPD_H__
#define __FSPUPD_H__
#include <FspEas.h>
#pragma pack(1)
#define FSPT_UPD_SIGNATURE 0x545F4450554C4441 /* 'ADLUPD_T' */
#define FSPM_UPD_SIGNATURE 0x4D5F4450554C4441 /* 'ADLUPD_M' */
#define FSPS_UPD_SIGNATURE 0x535F4450554C4441 /* 'ADLUPD_S' */
#pragma pack()
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,357 +0,0 @@
/** @file
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
This file is automatically generated. Please do NOT modify !!!
**/
#ifndef __FSPTUPD_H__
#define __FSPTUPD_H__
#include <FspUpd.h>
#pragma pack(1)
/** Fsp T Core UPD
**/
typedef struct {
/** Offset 0x0040
**/
UINT32 MicrocodeRegionBase;
/** Offset 0x0044
**/
UINT32 MicrocodeRegionSize;
/** Offset 0x0048
**/
UINT32 CodeRegionBase;
/** Offset 0x004C
**/
UINT32 CodeRegionSize;
/** Offset 0x0050
**/
UINT8 Reserved[16];
} FSPT_CORE_UPD;
/** Fsp T Configuration
**/
typedef struct {
/** Offset 0x0060 - PcdSerialIoUartDebugEnable
Enable SerialIo Uart debug library with/without initializing SerialIo Uart device in FSP.
0:Disable, 1:Enable and Initialize, 2:Enable without Initializing
**/
UINT8 PcdSerialIoUartDebugEnable;
/** Offset 0x0061 - PcdSerialIoUartNumber
Select SerialIo Uart Controller for debug. Note: If UART0 is selected as CNVi BT
Core interface, it cannot be used for debug purpose.
0:SerialIoUart0, 1:SerialIoUart1, 2:SerialIoUart2
**/
UINT8 PcdSerialIoUartNumber;
/** Offset 0x0062 - PcdSerialIoUartMode - FSPT
Select SerialIo Uart Controller mode
0:SerialIoUartDisabled, 1:SerialIoUartPci, 2:SerialIoUartHidden, 3:SerialIoUartCom,
4:SerialIoUartSkipInit
**/
UINT8 PcdSerialIoUartMode;
/** Offset 0x0063
**/
UINT8 Rsvd00;
/** Offset 0x0064 - PcdSerialIoUartBaudRate - FSPT
Set default BaudRate Supported from 0 - default to 6000000
**/
UINT32 PcdSerialIoUartBaudRate;
/** Offset 0x0068 - Pci Express Base Address
Base address to be programmed for Pci Express
**/
UINT64 PcdPciExpressBaseAddress;
/** Offset 0x0070 - Pci Express Region Length
Region Length to be programmed for Pci Express
**/
UINT32 PcdPciExpressRegionLength;
/** Offset 0x0074 - PcdSerialIoUartParity - FSPT
Set default Parity.
0: DefaultParity, 1: NoParity, 2: EvenParity, 3: OddParity
**/
UINT8 PcdSerialIoUartParity;
/** Offset 0x0075 - PcdSerialIoUartDataBits - FSPT
Set default word length. 0: Default, 5,6,7,8
**/
UINT8 PcdSerialIoUartDataBits;
/** Offset 0x0076 - PcdSerialIoUartStopBits - FSPT
Set default stop bits.
0: DefaultStopBits, 1: OneStopBit, 2: OneFiveStopBits, 3: TwoStopBits
**/
UINT8 PcdSerialIoUartStopBits;
/** Offset 0x0077 - PcdSerialIoUartAutoFlow - FSPT
Enables UART hardware flow control, CTS and RTS lines.
0: Disable, 1:Enable
**/
UINT8 PcdSerialIoUartAutoFlow;
/** Offset 0x0078 - PcdSerialIoUartRxPinMux - FSPT
Select RX pin muxing for SerialIo UART used for debug
**/
UINT32 PcdSerialIoUartRxPinMux;
/** Offset 0x007C - PcdSerialIoUartTxPinMux - FSPT
Select TX pin muxing for SerialIo UART used for debug
**/
UINT32 PcdSerialIoUartTxPinMux;
/** Offset 0x0080 - PcdSerialIoUartRtsPinMux - FSPT
Select SerialIo Uart used for debug Rts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_RTS*
for possible values.
**/
UINT32 PcdSerialIoUartRtsPinMux;
/** Offset 0x0084 - PcdSerialIoUartCtsPinMux - FSPT
Select SerialIo Uart used for debug Cts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_CTS*
for possible values.
**/
UINT32 PcdSerialIoUartCtsPinMux;
/** Offset 0x0088 - PcdSerialIoUartDebugMmioBase - FSPT
Select SerialIo Uart default MMIO resource in SEC/PEI phase when PcdSerialIoUartMode
= SerialIoUartPci.
**/
UINT32 PcdSerialIoUartDebugMmioBase;
/** Offset 0x008C - PcdLpcUartDebugEnable
Enable to initialize LPC Uart device in FSP.
0:Disable, 1:Enable
**/
UINT8 PcdLpcUartDebugEnable;
/** Offset 0x008D - Debug Interfaces
Debug Interfaces. BIT0-RAM, BIT1-UART, BIT3-USB3, BIT4-Serial IO, BIT5-TraceHub,
BIT2 - Not used.
**/
UINT8 PcdDebugInterfaceFlags;
/** Offset 0x008E - PcdSerialDebugLevel
Serial Debug Message Level. 0:Disable, 1:Error Only, 2:Error & Warnings, 3:Load,
Error, Warnings & Info, 4:Load, Error, Warnings, Info & Event, 5:Load, Error, Warnings,
Info & Verbose.
0:Disable, 1:Error Only, 2:Error and Warnings, 3:Load Error Warnings and Info, 4:Load
Error Warnings and Info, 5:Load Error Warnings Info and Verbose
**/
UINT8 PcdSerialDebugLevel;
/** Offset 0x008F - ISA Serial Base selection
Select ISA Serial Base address. Default is 0x3F8.
0:0x3F8, 1:0x2F8
**/
UINT8 PcdIsaSerialUartBase;
/** Offset 0x0090 - PcdSerialIo2ndUartEnable
Enable Additional SerialIo Uart device in FSP.
0:Disable, 1:Enable and Initialize, 2:Enable without Initializing
**/
UINT8 PcdSerialIo2ndUartEnable;
/** Offset 0x0091 - PcdSerialIo2ndUartNumber
Select SerialIo Uart Controller Number
0:SerialIoUart0, 1:SerialIoUart1, 2:SerialIoUart2
**/
UINT8 PcdSerialIo2ndUartNumber;
/** Offset 0x0092 - PcdSerialIo2ndUartMode - FSPT
Select SerialIo Uart Controller mode
0:SerialIoUartDisabled, 1:SerialIoUartPci, 2:SerialIoUartHidden, 3:SerialIoUartCom,
4:SerialIoUartSkipInit
**/
UINT8 PcdSerialIo2ndUartMode;
/** Offset 0x0093
**/
UINT8 Rsvd01;
/** Offset 0x0094 - PcdSerialIo2ndUartBaudRate - FSPT
Set default BaudRate Supported from 0 - default to 6000000
**/
UINT32 PcdSerialIo2ndUartBaudRate;
/** Offset 0x0098 - PcdSerialIo2ndUartParity - FSPT
Set default Parity.
0: DefaultParity, 1: NoParity, 2: EvenParity, 3: OddParity
**/
UINT8 PcdSerialIo2ndUartParity;
/** Offset 0x0099 - PcdSerialIo2ndUartDataBits - FSPT
Set default word length. 0: Default, 5,6,7,8
**/
UINT8 PcdSerialIo2ndUartDataBits;
/** Offset 0x009A - PcdSerialIo2ndUartStopBits - FSPT
Set default stop bits.
0: DefaultStopBits, 1: OneStopBit, 2: OneFiveStopBits, 3: TwoStopBits
**/
UINT8 PcdSerialIo2ndUartStopBits;
/** Offset 0x009B - PcdSerialIo2ndUartAutoFlow - FSPT
Enables UART hardware flow control, CTS and RTS lines.
0: Disable, 1:Enable
**/
UINT8 PcdSerialIo2ndUartAutoFlow;
/** Offset 0x009C - PcdSerialIo2ndUartRxPinMux - FSPT
Select RX pin muxing for SerialIo UART
**/
UINT32 PcdSerialIo2ndUartRxPinMux;
/** Offset 0x00A0 - PcdSerialIo2ndUartTxPinMux - FSPT
Select TX pin muxing for SerialIo UART
**/
UINT32 PcdSerialIo2ndUartTxPinMux;
/** Offset 0x00A4 - PcdSerialIo2ndUartRtsPinMux - FSPT
Select SerialIo Uart Rts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_RTS*
for possible values.
**/
UINT32 PcdSerialIo2ndUartRtsPinMux;
/** Offset 0x00A8 - PcdSerialIo2ndUartCtsPinMux - FSPT
Select SerialIo Uart Cts pin muxing. Refer to GPIO_*_MUXING_SERIALIO_UARTx_CTS*
for possible values.
**/
UINT32 PcdSerialIo2ndUartCtsPinMux;
/** Offset 0x00AC - PcdSerialIo2ndUartMmioBase - FSPT
Select SerialIo Uart default MMIO resource in SEC/PEI phase when PcdSerialIo2ndUartMode
= SerialIoUartPci.
**/
UINT32 PcdSerialIo2ndUartMmioBase;
/** Offset 0x00B0
**/
UINT32 TopMemoryCacheSize;
/** Offset 0x00B4 - FspDebugHandler
<b>Optional</b> pointer to the boot loader's implementation of FSP_DEBUG_HANDLER.
**/
UINT32 FspDebugHandler;
/** Offset 0x00B8 - Serial Io SPI Chip Select Polarity
Sets polarity for each chip Select. Available options: 0:SerialIoSpiCsActiveLow,
1:SerialIoSpiCsActiveHigh
**/
UINT8 PcdSerialIoSpiCsPolarity[2];
/** Offset 0x00BA - Serial Io SPI Chip Select Enable
0:Disabled, 1:Enabled. Enables GPIO for CS0 or CS1 if it is Enabled
**/
UINT8 PcdSerialIoSpiCsEnable[2];
/** Offset 0x00BC - Serial Io SPI Device Mode
When mode is set to Pci, controller is initalized in early stage. Available modes:
0:SerialIoSpiDisabled, 1:SerialIoSpiPci.
**/
UINT8 PcdSerialIoSpiMode;
/** Offset 0x00BD - Serial Io SPI Default Chip Select Output
Sets Default CS as Output. Available options: 0:CS0, 1:CS1
**/
UINT8 PcdSerialIoSpiDefaultCsOutput;
/** Offset 0x00BE - Serial Io SPI Default Chip Select Mode HW/SW
Sets Default CS Mode Hardware or Software. Available options: 0:HW, 1:SW
**/
UINT8 PcdSerialIoSpiCsMode;
/** Offset 0x00BF - Serial Io SPI Default Chip Select State Low/High
Sets Default CS State Low or High. Available options: 0:Low, 1:High
**/
UINT8 PcdSerialIoSpiCsState;
/** Offset 0x00C0 - Serial Io SPI Device Number
Select which Serial Io SPI controller is initalized in early stage.
**/
UINT8 PcdSerialIoSpiNumber;
/** Offset 0x00C1
**/
UINT8 Rsvd02[3];
/** Offset 0x00C4 - Serial Io SPI Device MMIO Base
Assigns MMIO for Serial Io SPI controller usage in early stage.
**/
UINT32 PcdSerialIoSpiMmioBase;
/** Offset 0x00C8
**/
UINT8 ReservedFsptUpd1[16];
} FSP_T_CONFIG;
/** Fsp T UPD Configuration
**/
typedef struct {
/** Offset 0x0000
**/
FSP_UPD_HEADER FspUpdHeader;
/** Offset 0x0020
**/
FSPT_ARCH_UPD FsptArchUpd;
/** Offset 0x0040
**/
FSPT_CORE_UPD FsptCoreUpd;
/** Offset 0x0060
**/
FSP_T_CONFIG FsptConfig;
/** Offset 0x00D8
**/
UINT8 Rsvd03[6];
/** Offset 0x00DE
**/
UINT16 UpdTerminator;
} FSPT_UPD;
#pragma pack()
#endif

View File

@ -1,356 +0,0 @@
/** @file
Header file for GpioConfig structure used by GPIO library.
@copyright
INTEL CONFIDENTIAL
Copyright 2014 - 2017 Intel Corporation.
The source code contained or described herein and all documents related to the
source code ("Material") are owned by Intel Corporation or its suppliers or
licensors. Title to the Material remains with Intel Corporation or its suppliers
and licensors. The Material may contain trade secrets and proprietary and
confidential information of Intel Corporation and its suppliers and licensors,
and is protected by worldwide copyright and trade secret laws and treaty
provisions. No part of the Material may be used, copied, reproduced, modified,
published, uploaded, posted, transmitted, distributed, or disclosed in any way
without Intel's prior express written permission.
No license under any patent, copyright, trade secret or other intellectual
property right is granted to or conferred upon you by disclosure or delivery
of the Materials, either expressly, by implication, inducement, estoppel or
otherwise. Any license under such intellectual property rights must be
express and approved by Intel in writing.
Unless otherwise agreed by Intel in writing, you may not remove or alter
this notice or any other notice embedded in Materials by Intel or
Intel's suppliers or licensors in any way.
This file contains an 'Intel Peripheral Driver' and is uniquely identified as
"Intel Reference Module" and is licensed for Intel CPUs and chipsets under
the terms of your license agreement with Intel or your vendor. This file may
be modified by the user, subject to additional terms of the license agreement.
@par Specification Reference:
**/
#ifndef _GPIO_CONFIG_H_
#define _GPIO_CONFIG_H_
#pragma pack(push, 1)
///
/// For any GpioPad usage in code use GPIO_PAD type
///
typedef UINT32 GPIO_PAD;
///
/// For any GpioGroup usage in code use GPIO_GROUP type
///
typedef UINT32 GPIO_GROUP;
/**
GPIO configuration structure used for pin programming.
Structure contains fields that can be used to configure pad.
**/
typedef struct {
/**
Pad Mode
Pad can be set as GPIO or one of its native functions.
When in native mode setting Direction (except Inversion), OutputState,
InterruptConfig, Host Software Pad Ownership and OutputStateLock are unnecessary.
Refer to definition of GPIO_PAD_MODE.
Refer to EDS for each native mode according to the pad.
**/
UINT32 PadMode : 5;
/**
Host Software Pad Ownership
Set pad to ACPI mode or GPIO Driver Mode.
Refer to definition of GPIO_HOSTSW_OWN.
**/
UINT32 HostSoftPadOwn : 2;
/**
GPIO Direction
Can choose between In, In with inversion, Out, both In and Out, both In with inversion and out or disabling both.
Refer to definition of GPIO_DIRECTION for supported settings.
**/
UINT32 Direction : 6;
/**
Output State
Set Pad output value.
Refer to definition of GPIO_OUTPUT_STATE for supported settings.
This setting takes place when output is enabled.
**/
UINT32 OutputState : 2;
/**
GPIO Interrupt Configuration
Set Pad to cause one of interrupts (IOxAPIC/SCI/SMI/NMI).
This setting is applicable only if GPIO is in GpioMode with input enabled.
Refer to definition of GPIO_INT_CONFIG for supported settings.
**/
UINT32 InterruptConfig : 9;
/**
GPIO Power Configuration.
This setting controls Pad Reset Configuration.
Refer to definition of GPIO_RESET_CONFIG for supported settings.
**/
UINT32 PowerConfig : 8;
/**
GPIO Electrical Configuration
This setting controls pads termination and voltage tolerance.
Refer to definition of GPIO_ELECTRICAL_CONFIG for supported settings.
**/
UINT32 ElectricalConfig : 9;
/**
GPIO Lock Configuration
This setting controls pads lock.
Refer to definition of GPIO_LOCK_CONFIG for supported settings.
**/
UINT32 LockConfig : 4;
/**
Additional GPIO configuration
Refer to definition of GPIO_OTHER_CONFIG for supported settings.
**/
UINT32 OtherSettings : 2;
UINT32 RsvdBits : 17; ///< Reserved bits for future extension
} GPIO_CONFIG;
typedef enum {
GpioHardwareDefault = 0x0 ///< Leave setting unmodified
} GPIO_HARDWARE_DEFAULT;
/**
GPIO Pad Mode
Refer to GPIO documentation on native functions available for certain pad.
If GPIO is set to one of NativeX modes then following settings are not applicable
and can be skipped:
- Interrupt related settings
- Host Software Ownership
- Output/Input enabling/disabling
- Output lock
**/
typedef enum {
GpioPadModeGpio = 0x1,
GpioPadModeNative1 = 0x3,
GpioPadModeNative2 = 0x5,
GpioPadModeNative3 = 0x7,
GpioPadModeNative4 = 0x9
} GPIO_PAD_MODE;
/**
Host Software Pad Ownership modes
This setting affects GPIO interrupt status registers. Depending on chosen ownership
some GPIO Interrupt status register get updated and other masked.
Please refer to EDS for HOSTSW_OWN register description.
**/
typedef enum {
GpioHostOwnDefault = 0x0, ///< Leave ownership value unmodified
/**
Set HOST ownership to ACPI.
Use this setting if pad is not going to be used by GPIO OS driver.
If GPIO is configured to generate SCI/SMI/NMI then this setting must be
used for interrupts to work
**/
GpioHostOwnAcpi = 0x1,
/**
Set HOST ownership to GPIO Driver mode.
Use this setting only if GPIO pad should be controlled by GPIO OS Driver.
GPIO OS Driver will be able to control the pad if appropriate entry in
ACPI exists (refer to ACPI specification for GpioIo and GpioInt descriptors)
**/
GpioHostOwnGpio = 0x3
} GPIO_HOSTSW_OWN;
///
/// GPIO Direction
///
typedef enum {
GpioDirDefault = 0x0, ///< Leave pad direction setting unmodified
GpioDirInOut = (0x1 | (0x1 << 3)), ///< Set pad for both output and input
GpioDirInInvOut = (0x1 | (0x3 << 3)), ///< Set pad for both output and input with inversion
GpioDirIn = (0x3 | (0x1 << 3)), ///< Set pad for input only
GpioDirInInv = (0x3 | (0x3 << 3)), ///< Set pad for input with inversion
GpioDirOut = 0x5, ///< Set pad for output only
GpioDirNone = 0x7 ///< Disable both output and input
} GPIO_DIRECTION;
/**
GPIO Output State
This field is relevant only if output is enabled
**/
typedef enum {
GpioOutDefault = 0x0, ///< Leave output value unmodified
GpioOutLow = 0x1, ///< Set output to low
GpioOutHigh = 0x3 ///< Set output to high
} GPIO_OUTPUT_STATE;
/**
GPIO interrupt configuration
This setting is applicable only if pad is in GPIO mode and has input enabled.
GPIO_INT_CONFIG allows to choose which interrupt is generated (IOxAPIC/SCI/SMI/NMI)
and how it is triggered (edge or level). Refer to PADCFG_DW0 register description in
EDS for details on this settings.
Field from GpioIntNmi to GpioIntApic can be OR'ed with GpioIntLevel to GpioIntBothEdge
to describe an interrupt e.g. GpioIntApic | GpioIntLevel
If GPIO is set to cause an SCI then also GPI_GPE_EN is enabled for this pad.
If GPIO is set to cause an NMI then also GPI_NMI_EN is enabled for this pad.
Not all GPIO are capable of generating an SMI or NMI interrupt.
When routing GPIO to cause an IOxAPIC interrupt care must be taken, as this
interrupt cannot be shared and its IRQn number is not configurable.
Refer to EDS for GPIO pads IRQ numbers (PADCFG_DW1.IntSel)
If GPIO is under GPIO OS driver control and appropriate ACPI GpioInt descriptor
exist then use only trigger type setting (from GpioIntLevel to GpioIntBothEdge).
This type of GPIO Driver interrupt doesn't have any additional routing setting
required to be set by BIOS. Interrupt is handled by GPIO OS Driver.
**/
typedef enum {
GpioIntDefault = 0x0, ///< Leave value of interrupt routing unmodified
GpioIntDis = 0x1, ///< Disable IOxAPIC/SCI/SMI/NMI interrupt generation
GpioIntNmi = 0x3, ///< Enable NMI interrupt only
GpioIntSmi = 0x5, ///< Enable SMI interrupt only
GpioIntSci = 0x9, ///< Enable SCI interrupt only
GpioIntApic = 0x11, ///< Enable IOxAPIC interrupt only
GpioIntLevel = (0x1 << 5), ///< Set interrupt as level triggered
GpioIntEdge = (0x3 << 5), ///< Set interrupt as edge triggered (type of edge depends on input inversion)
GpioIntLvlEdgDis = (0x5 << 5), ///< Disable interrupt trigger
GpioIntBothEdge = (0x7 << 5) ///< Set interrupt as both edge triggered
} GPIO_INT_CONFIG;
#define B_GPIO_INT_CONFIG_INT_SOURCE_MASK 0x1F ///< Mask for GPIO_INT_CONFIG for interrupt source
#define B_GPIO_INT_CONFIG_INT_TYPE_MASK 0xE0 ///< Mask for GPIO_INT_CONFIG for interrupt type
/**
GPIO Power Configuration
GPIO_RESET_CONFIG allows to set GPIO Reset type (PADCFG_DW0.PadRstCfg) which will
be used to reset certain GPIO settings.
Refer to EDS for settings that are controllable by PadRstCfg.
**/
typedef enum {
GpioResetDefault = 0x00, ///< Leave value of pad reset unmodified
///
/// Deprecated settings. Maintained only for compatibility.
///
GpioResetPwrGood = 0x09, ///< GPP: RSMRST; GPD: DSW_PWROK; (PadRstCfg = 00b = "Powergood")
GpioResetDeep = 0x0B, ///< Deep GPIO Reset (PadRstCfg = 01b = "Deep GPIO Reset")
GpioResetNormal = 0x0D, ///< GPIO Reset (PadRstCfg = 10b = "GPIO Reset" )
GpioResetResume = 0x0F, ///< GPP: Reserved; GPD: RSMRST; (PadRstCfg = 11b = "Resume Reset" )
///
/// New GPIO reset configuration options
///
/**
Resume Reset (RSMRST)
GPP: PadRstCfg = 00b = "Powergood"
GPD: PadRstCfg = 11b = "Resume Reset"
Pad setting will reset on:
- DeepSx transition
- G3
Pad settings will not reset on:
- S3/S4/S5 transition
- Warm/Cold/Global reset
**/
GpioResumeReset = 0x01,
/**
Host Deep Reset
PadRstCfg = 01b = "Deep GPIO Reset"
Pad settings will reset on:
- Warm/Cold/Global reset
- DeepSx transition
- G3
Pad settings will not reset on:
- S3/S4/S5 transition
**/
GpioHostDeepReset = 0x03,
/**
Platform Reset (PLTRST)
PadRstCfg = 10b = "GPIO Reset"
Pad settings will reset on:
- S3/S4/S5 transition
- Warm/Cold/Global reset
- DeepSx transition
- G3
**/
GpioPlatformReset = 0x05,
/**
Deep Sleep Well Reset (DSW_PWROK)
GPP: not applicable
GPD: PadRstCfg = 00b = "Powergood"
Pad settings will reset on:
- G3
Pad settings will not reset on:
- S3/S4/S5 transition
- Warm/Cold/Global reset
- DeepSx transition
**/
GpioDswReset = 0x07
} GPIO_RESET_CONFIG;
/**
GPIO Electrical Configuration
Set GPIO termination and Pad Tolerance (applicable only for some pads)
Field from GpioTermNone to GpioTermNative can be OR'ed with GpioTolerance1v8.
**/
typedef enum {
GpioTermDefault = 0x0, ///< Leave termination setting unmodified
GpioTermNone = 0x1, ///< none
GpioTermWpd5K = 0x5, ///< 5kOhm weak pull-down
GpioTermWpd20K = 0x9, ///< 20kOhm weak pull-down
GpioTermWpu1K = 0x13, ///< 1kOhm weak pull-up
GpioTermWpu2K = 0x17, ///< 2kOhm weak pull-up
GpioTermWpu5K = 0x15, ///< 5kOhm weak pull-up
GpioTermWpu20K = 0x19, ///< 20kOhm weak pull-up
GpioTermWpu1K2K = 0x1B, ///< 1kOhm & 2kOhm weak pull-up
/**
Native function controls pads termination
This setting is applicable only to some native modes.
Please check EDS to determine which native functionality
can control pads termination
**/
GpioTermNative = 0x1F,
GpioNoTolerance1v8 = (0x1 << 5), ///< Disable 1.8V pad tolerance
GpioTolerance1v8 = (0x3 << 5) ///< Enable 1.8V pad tolerance
} GPIO_ELECTRICAL_CONFIG;
#define B_GPIO_ELECTRICAL_CONFIG_TERMINATION_MASK 0x1F ///< Mask for GPIO_ELECTRICAL_CONFIG for termination value
#define B_GPIO_ELECTRICAL_CONFIG_1V8_TOLERANCE_MASK 0x60 ///< Mask for GPIO_ELECTRICAL_CONFIG for 1v8 tolerance setting
/**
GPIO LockConfiguration
Set GPIO configuration lock and output state lock.
GpioLockPadConfig and GpioLockOutputState can be OR'ed.
Lock settings reset is in Powergood domain. Care must be taken when using this setting
as fields it locks may be reset by a different signal and can be controllable
by what is in GPIO_RESET_CONFIG (PADCFG_DW0.PadRstCfg). GPIO library provides
functions which allow to unlock a GPIO pad.
**/
typedef enum {
GpioLockDefault = 0x0, ///< Leave lock setting unmodified
GpioPadConfigLock = 0x3, ///< Lock Pad Configuration
GpioOutputStateLock = 0x5 ///< Lock GPIO pad output value
} GPIO_LOCK_CONFIG;
#define B_GPIO_LOCK_CONFIG_PAD_CONF_LOCK_MASK 0x3 ///< Mask for GPIO_LOCK_CONFIG for Pad Configuration Lock
#define B_GPIO_LOCK_CONFIG_OUTPUT_LOCK_MASK 0x5 ///< Mask for GPIO_LOCK_CONFIG for Pad Output Lock
/**
Other GPIO Configuration
GPIO_OTHER_CONFIG is used for less often settings and for future extensions
Supported settings:
- RX raw override to '1' - allows to override input value to '1'
This setting is applicable only if in input mode (both in GPIO and native usage).
The override takes place at the internal pad state directly from buffer and before the RXINV.
**/
typedef enum {
GpioRxRaw1Default = 0x0, ///< Use default input override value
GpioRxRaw1Dis = 0x1, ///< Don't override input
GpioRxRaw1En = 0x3 ///< Override input to '1'
} GPIO_OTHER_CONFIG;
#define B_GPIO_OTHER_CONFIG_RXRAW_MASK 0x3 ///< Mask for GPIO_OTHER_CONFIG for RxRaw1 setting
#pragma pack(pop)
#endif //_GPIO_CONFIG_H_

View File

@ -1,85 +0,0 @@
## @file
# Library instance to list all DynamicEx PCD FSP consumes.
#
# @copyright
# INTEL CONFIDENTIAL
# Copyright 2019 - 2021 Intel Corporation.
#
# The source code contained or described herein and all documents related to the
# source code ("Material") are owned by Intel Corporation or its suppliers or
# licensors. Title to the Material remains with Intel Corporation or its suppliers
# and licensors. The Material may contain trade secrets and proprietary and
# confidential information of Intel Corporation and its suppliers and licensors,
# and is protected by worldwide copyright and trade secret laws and treaty
# provisions. No part of the Material may be used, copied, reproduced, modified,
# published, uploaded, posted, transmitted, distributed, or disclosed in any way
# without Intel's prior express written permission.
#
# No license under any patent, copyright, trade secret or other intellectual
# property right is granted to or conferred upon you by disclosure or delivery
# of the Materials, either expressly, by implication, inducement, estoppel or
# otherwise. Any license under such intellectual property rights must be
# express and approved by Intel in writing.
#
# Unless otherwise agreed by Intel in writing, you may not remove or alter
# this notice or any other notice embedded in Materials by Intel or
# Intel's suppliers or licensors in any way.
#
# This file contains an 'Intel Peripheral Driver' and is uniquely identified as
# "Intel Reference Module" and is licensed for Intel CPUs and chipsets under
# the terms of your license agreement with Intel or your vendor. This file may
# be modified by the user, subject to additional terms of the license agreement.
#
# @par Specification Reference:
#
##
[Defines]
INF_VERSION = 0x00010017
BASE_NAME = FspPcdListLibNull
FILE_GUID = C5D4D79E-3D5C-4EB6-899E-6F1563CB0B32
VERSION_STRING = 1.0
MODULE_TYPE = BASE
LIBRARY_CLASS = NULL
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
[LibraryClasses]
BaseLib
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
UefiCpuPkg/UefiCpuPkg.dec
ClientOneSiliconPkg/SiPkg.dec
[Sources]
FspPcdListLibNull.c
[Pcd]
#
# List all the DynamicEx PCDs that FSP will consume.
# FSP Dispatch mode bootloader will include this INF to ensure all the PCDs are
# built into PCD database.
#
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateSmmDataPtr ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES
gSiPkgTokenSpaceGuid.PcdSiPciExpressBaseAddress ## CONSUMES
gSiPkgTokenSpaceGuid.PcdPciExpressRegionLength ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuApTargetCstate ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuS3DataAddress ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme ## CONSUMES
gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesCapability ## CONSUMES

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,10 +19,3 @@ CONFIG_SMMSTORE_V2=y
CONFIG_USE_OPTION_TABLE=y
CONFIG_VALIDATE_INTEL_DESCRIPTOR=y
#CONFIG_CONSOLE_SYSTEM76_EC=y
# Custom FSP
CONFIG_ADD_FSP_BINARIES=y
CONFIG_FSP_FD_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/AlderLakeFspBinPkg/Fsp.fd"
CONFIG_FSP_FULL_FD=y
CONFIG_FSP_HEADER_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/AlderLakeFspBinPkg/Include"
CONFIG_FSP_USE_REPO=n

View File

@ -1,272 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MAINBOARD_GPIO_H
#define MAINBOARD_GPIO_H
#include <soc/gpe.h>
#include <soc/gpio.h>
#ifndef __ACPI__
/* Pad configuration in ramstage. */
static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPD0, UP_20K, PWROK, NF1),
PAD_CFG_NF(GPD1, NATIVE, PWROK, NF1),
PAD_CFG_NF(GPD2, NONE, PWROK, NF1),
PAD_CFG_NF(GPD3, UP_20K, PWROK, NF1),
PAD_CFG_NF(GPD4, NONE, PWROK, NF1),
PAD_CFG_NF(GPD5, NONE, PWROK, NF1),
PAD_CFG_NF(GPD6, NONE, PWROK, NF1),
PAD_CFG_GPO(GPD7, 0, PWROK),
PAD_CFG_NF(GPD8, NONE, PWROK, NF1),
PAD_CFG_NF(GPD9, NONE, PWROK, NF1),
PAD_CFG_NF(GPD10, NONE, PWROK, NF1),
PAD_CFG_NF(GPD11, NONE, PWROK, NF1),
_PAD_CFG_STRUCT(GPD12, 0x04000300, 0x0000),
PAD_CFG_NF(GPP_A0, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A1, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A2, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A3, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A4, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A5, DN_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A7, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A8, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A9, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A10, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A11, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A12, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_A13, UP_20K, DEEP, NF1),
PAD_NC(GPP_A14, NONE),
_PAD_CFG_STRUCT(GPP_B0, 0x40100100, 0x0000),
PAD_NC(GPP_B1, NONE),
PAD_CFG_GPI(GPP_B2, NONE, DEEP),
PAD_CFG_GPO(GPP_B3, 1, DEEP),
PAD_NC(GPP_B4, NONE),
PAD_NC(GPP_B5, NONE),
PAD_NC(GPP_B6, NONE),
PAD_NC(GPP_B7, NONE),
PAD_NC(GPP_B8, NONE),
PAD_NC(GPP_B9, NONE),
PAD_NC(GPP_B10, NONE),
PAD_NC(GPP_B11, NONE),
PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1),
PAD_CFG_GPO(GPP_B14, 0, DEEP),
PAD_CFG_GPI(GPP_B15, NONE, DEEP),
PAD_NC(GPP_B16, NONE),
PAD_NC(GPP_B17, NONE),
PAD_CFG_NF(GPP_B18, NONE, PWROK, NF1),
PAD_CFG_GPO(GPP_B19, 1, DEEP),
PAD_CFG_NF(GPP_B20, DN_20K, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_B21, 0x42880100, 0x0000),
PAD_CFG_GPO(GPP_B22, 1, DEEP),
PAD_CFG_GPO(GPP_B23, 0, DEEP),
PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1),
PAD_CFG_GPO(GPP_C2, 0, DEEP),
PAD_CFG_NF(GPP_C3, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_C4, NONE, DEEP, NF3),
PAD_CFG_GPO(GPP_C5, 0, DEEP),
PAD_CFG_NF(GPP_C6, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_C7, NONE, DEEP, NF2),
PAD_CFG_GPI(GPP_C8, NONE, DEEP),
PAD_NC(GPP_C9, NONE),
PAD_CFG_GPO(GPP_C10, 1, DEEP),
PAD_CFG_GPO(GPP_C11, 1, DEEP),
PAD_NC(GPP_C12, NONE),
PAD_NC(GPP_C13, NONE),
PAD_NC(GPP_C14, NONE),
PAD_NC(GPP_C15, NONE),
PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C17, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C18, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C19, NONE, DEEP, NF1),
PAD_NC(GPP_C20, NONE),
PAD_NC(GPP_C21, NONE),
PAD_NC(GPP_C22, NONE),
PAD_NC(GPP_C23, NONE),
PAD_NC(GPP_D0, NONE),
PAD_NC(GPP_D1, NONE),
PAD_NC(GPP_D2, NONE),
PAD_NC(GPP_D3, NONE),
PAD_NC(GPP_D4, NONE),
PAD_NC(GPP_D5, NONE),
PAD_NC(GPP_D6, NONE),
PAD_NC(GPP_D7, NONE),
PAD_NC(GPP_D8, NONE),
PAD_CFG_NF(GPP_D9, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D10, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D11, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D12, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D13, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D14, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D15, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D16, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D17, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D18, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D19, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_D20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D21, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D22, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D23, NONE, DEEP, NF1),
PAD_NC(GPP_E0, NONE),
PAD_NC(GPP_E1, NONE),
PAD_NC(GPP_E2, NONE),
_PAD_CFG_STRUCT(GPP_E3, 0x42840101, 0x0000),
PAD_NC(GPP_E4, NONE),
PAD_NC(GPP_E5, NONE),
PAD_NC(GPP_E6, NONE),
_PAD_CFG_STRUCT(GPP_E7, 0x80100100, 0x0000),
PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E10, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E11, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E12, NONE, DEEP, NF1),
PAD_NC(GPP_E13, NONE),
PAD_NC(GPP_E14, NONE),
PAD_CFG_GPO(GPP_E15, 0, DEEP),
PAD_NC(GPP_E16, NONE),
PAD_CFG_GPI(GPP_E17, DN_20K, DEEP),
PAD_CFG_GPO(GPP_E18, 1, DEEP),
PAD_NC(GPP_E19, NONE),
PAD_NC(GPP_E20, NONE),
PAD_NC(GPP_E21, NONE),
PAD_CFG_NF(GPP_F0, NONE, DEEP, NF2),
PAD_NC(GPP_F1, NONE),
PAD_CFG_GPO(GPP_F2, 1, PLTRST),
PAD_CFG_GPO(GPP_F3, 1, PLTRST),
PAD_CFG_GPO(GPP_F4, 1, PLTRST),
PAD_CFG_NF(GPP_F5, NONE, DEEP, NF1),
PAD_NC(GPP_F6, NONE),
PAD_CFG_GPI(GPP_F7, NONE, PLTRST),
PAD_CFG_GPI(GPP_F8, NONE, DEEP),
PAD_CFG_GPO(GPP_F9, 1, DEEP),
PAD_NC(GPP_F10, NONE),
PAD_NC(GPP_F11, NONE),
PAD_NC(GPP_F12, NONE),
PAD_NC(GPP_F13, NONE),
PAD_CFG_NF(GPP_F14, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_F15, NONE, DEEP),
PAD_NC(GPP_F16, NONE),
PAD_CFG_GPI(GPP_F17, NONE, DEEP),
PAD_CFG_GPO(GPP_F18, 0, PLTRST),
PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1),
PAD_NC(GPP_F22, NONE),
PAD_NC(GPP_F23, NONE),
PAD_CFG_GPI(GPP_G0, NONE, DEEP),
PAD_CFG_GPI(GPP_G1, NONE, DEEP),
PAD_CFG_NF(GPP_G2, DN_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_G3, NONE, DEEP),
PAD_CFG_GPI(GPP_G4, NONE, DEEP),
PAD_CFG_NF(GPP_G5, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_G6, NONE, DEEP),
PAD_CFG_GPI(GPP_G7, NONE, DEEP),
PAD_NC(GPP_H0, NONE),
PAD_CFG_GPI(GPP_H1, NONE, DEEP),
PAD_CFG_NF(GPP_H2, NONE, DEEP, NF1),
PAD_NC(GPP_H3, NONE),
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H7, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H10, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_H11, NONE, PLTRST, NF1),
PAD_CFG_GPO(GPP_H12, 0, DEEP),
PAD_CFG_NF(GPP_H13, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_H14, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_H15, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_H16, NONE, PLTRST, NF1),
PAD_CFG_GPO(GPP_H17, 1, PLTRST),
PAD_CFG_GPO(GPP_H18, 0, DEEP),
PAD_NC(GPP_H19, NONE),
PAD_NC(GPP_H20, NONE),
PAD_CFG_GPO(GPP_H21, 0, DEEP),
PAD_CFG_GPO(GPP_H22, 0, DEEP),
PAD_NC(GPP_H23, NONE),
PAD_CFG_GPI(GPP_I0, NONE, DEEP),
PAD_CFG_NF(GPP_I1, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_I2, 0x86800100, 0x0000),
PAD_CFG_NF(GPP_I3, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_I4, 0x86800100, 0x0000),
PAD_CFG_GPO(GPP_I5, 1, PLTRST),
PAD_CFG_GPO(GPP_I6, 0, DEEP),
PAD_NC(GPP_I7, NONE),
PAD_CFG_GPO(GPP_I8, 0, DEEP),
PAD_NC(GPP_I9, NONE),
PAD_NC(GPP_I10, NONE),
PAD_CFG_NF(GPP_I11, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_I12, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_I13, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_I14, NONE, PLTRST, NF1),
PAD_NC(GPP_I15, NONE),
PAD_NC(GPP_I16, NONE),
PAD_NC(GPP_I17, NONE),
PAD_CFG_GPO(GPP_I18, 0, DEEP),
PAD_NC(GPP_I19, NONE),
PAD_NC(GPP_I20, NONE),
PAD_NC(GPP_I21, NONE),
PAD_CFG_GPO(GPP_I22, 0, DEEP),
PAD_CFG_NF(GPP_J0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J1, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_J2, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J3, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J5, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J7, NONE, DEEP, NF1),
PAD_NC(GPP_J8, NONE),
PAD_NC(GPP_J9, NONE),
PAD_CFG_NF(GPP_J10, DN_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J11, DN_20K, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_K0, 0x42800100, 0x0000),
PAD_NC(GPP_K1, NONE),
PAD_NC(GPP_K2, NONE),
PAD_CFG_GPO(GPP_K3, 1, PLTRST),
PAD_CFG_GPO(GPP_K4, 0, PWROK),
PAD_NC(GPP_K5, NONE),
PAD_CFG_NF(GPP_K6, UP_20K, DEEP, NF2),
PAD_CFG_NF(GPP_K7, DN_20K, DEEP, NF2),
PAD_CFG_NF(GPP_K8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_K9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_K10, UP_20K, DEEP, NF2),
PAD_NC(GPP_K11, NONE),
PAD_CFG_NF(GPP_R0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_R1, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_R2, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_R3, NATIVE, DEEP, NF1),
PAD_CFG_NF(GPP_R4, NONE, DEEP, NF1),
PAD_NC(GPP_R5, NONE),
PAD_NC(GPP_R6, NONE),
PAD_NC(GPP_R7, NONE),
PAD_CFG_GPI(GPP_R8, NONE, PLTRST),
PAD_CFG_NF(GPP_R9, NONE, DEEP, NF1),
PAD_NC(GPP_R10, NONE),
PAD_NC(GPP_R11, NONE),
PAD_NC(GPP_R12, NONE),
PAD_NC(GPP_R13, NONE),
PAD_NC(GPP_R14, NONE),
PAD_NC(GPP_R15, NONE),
PAD_CFG_GPO(GPP_R16, 1, DEEP),
PAD_NC(GPP_R17, NONE),
PAD_NC(GPP_R18, NONE),
PAD_NC(GPP_R19, NONE),
PAD_NC(GPP_R20, NONE),
PAD_CFG_GPO(GPP_R21, 0, DEEP),
PAD_NC(GPP_S0, NONE),
PAD_NC(GPP_S1, NONE),
PAD_NC(GPP_S2, NONE),
PAD_NC(GPP_S3, NONE),
PAD_NC(GPP_S4, NONE),
PAD_NC(GPP_S5, NONE),
PAD_CFG_NF(GPP_S6, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_S7, NONE, DEEP, NF2),
};
#endif
#endif

View File

@ -1,48 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
/* Realtek, ALC256 */
0x10ec0256, /* Vendor ID */
0x1558a671, /* Subsystem ID */
11, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x1558a671),
AZALIA_PIN_CFG(0, 0x12, 0x90a60130),
AZALIA_PIN_CFG(0, 0x13, 0x40000000),
AZALIA_PIN_CFG(0, 0x14, 0x90170110),
AZALIA_PIN_CFG(0, 0x18, 0x411111f0),
AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1b, 0x02a11040),
AZALIA_PIN_CFG(0, 0x1d, 0x41700001),
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
AZALIA_PIN_CFG(0, 0x21, 0x02211020),
/* Intel, RaptorlakeHDMI */
0x80862818, /* Vendor ID */
0x80860101, /* Subsystem ID */
10, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x04, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560010),
AZALIA_PIN_CFG(2, 0x08, 0x18560010),
AZALIA_PIN_CFG(2, 0x0a, 0x18560010),
AZALIA_PIN_CFG(2, 0x0b, 0x18560010),
AZALIA_PIN_CFG(2, 0x0c, 0x18560010),
AZALIA_PIN_CFG(2, 0x0d, 0x18560010),
AZALIA_PIN_CFG(2, 0x0e, 0x18560010),
AZALIA_PIN_CFG(2, 0x0f, 0x18560010),
/* Nvidia, GenericHDMI */
0x10de00a6, /* Vendor ID */
0x10de0000, /* Subsystem ID */
5, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x10de0000),
AZALIA_PIN_CFG(0, 0x04, 0x185600f0),
AZALIA_PIN_CFG(0, 0x05, 0x585600f0),
AZALIA_PIN_CFG(0, 0x06, 0x185600f0),
AZALIA_PIN_CFG(0, 0x07, 0x585600f0),
};
const u32 pc_beep_verbs[] = {};
AZALIA_ARRAY_SIZES;

BIN
models/addw4/IntelGopDriver.efi (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,9 @@
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = IntelGopDriver
FILE_GUID = 767222f4-a9f4-41ba-9faa-edaa1405a486
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
[Binaries.X64]
PE32|IntelGopDriver.efi|*

12
models/addw4/README.md Normal file
View File

@ -0,0 +1,12 @@
# System76 Adder WS (addw4)
## Contents
- [EC](./ec.rom)
- *Read Error: No such file or directory (os error 2)*
- [FD](./fd.rom)
- Size: 4 KB
- HAP: false
- [ME](./me.rom)
- Size: 3944 KB
- Version: 16.1.30.2330

View File

@ -0,0 +1 @@
# System76 Adder WS (addw4)

1
models/addw4/chip.txt Normal file
View File

@ -0,0 +1 @@
GD25Q256D

View File

@ -0,0 +1,326 @@
## PCI ##
PCI Device: 0000:00:00.0: Class 0x00060000, Vendor 0x8086, Device 0xA702, Revision 0x01
PCI Device: 0000:00:01.0: Class 0x00060400, Vendor 0x8086, Device 0xA70D, Revision 0x01
PCI Device: 0000:00:02.0: Class 0x00030000, Vendor 0x8086, Device 0xA788, Revision 0x04
PCI Device: 0000:00:04.0: Class 0x00118000, Vendor 0x8086, Device 0xA71D, Revision 0x01
PCI Device: 0000:00:08.0: Class 0x00088000, Vendor 0x8086, Device 0xA74F, Revision 0x01
PCI Device: 0000:00:0a.0: Class 0x00118000, Vendor 0x8086, Device 0xA77D, Revision 0x01
PCI Device: 0000:00:0e.0: Class 0x00010400, Vendor 0x8086, Device 0xA77F, Revision 0x00
PCI Device: 0000:00:14.0: Class 0x000C0330, Vendor 0x8086, Device 0x7A60, Revision 0x11
PCI Device: 0000:00:14.2: Class 0x00050000, Vendor 0x8086, Device 0x7A27, Revision 0x11
PCI Device: 0000:00:14.3: Class 0x00028000, Vendor 0x8086, Device 0x7A70, Revision 0x11
PCI Device: 0000:00:15.0: Class 0x000C8000, Vendor 0x8086, Device 0x7A4C, Revision 0x11
PCI Device: 0000:00:15.1: Class 0x000C8000, Vendor 0x8086, Device 0x7A4D, Revision 0x11
PCI Device: 0000:00:15.3: Class 0x000C8000, Vendor 0x8086, Device 0x7A4F, Revision 0x11
PCI Device: 0000:00:16.0: Class 0x00078000, Vendor 0x8086, Device 0x7A68, Revision 0x11
PCI Device: 0000:00:1c.0: Class 0x00060400, Vendor 0x8086, Device 0x7A3A, Revision 0x11
PCI Device: 0000:00:1f.0: Class 0x00060100, Vendor 0x8086, Device 0x7A0C, Revision 0x11
PCI Device: 0000:00:1f.3: Class 0x00040380, Vendor 0x8086, Device 0x7A50, Revision 0x11
PCI Device: 0000:00:1f.4: Class 0x000C0500, Vendor 0x8086, Device 0x7A23, Revision 0x11
PCI Device: 0000:00:1f.5: Class 0x000C8000, Vendor 0x8086, Device 0x7A24, Revision 0x11
PCI Device: 0000:01:00.0: Class 0x00030000, Vendor 0x10DE, Device 0x2820, Revision 0xA1
PCI Device: 0000:01:00.1: Class 0x00040300, Vendor 0x10DE, Device 0x22BD, Revision 0xA1
PCI Device: 0000:02:00.0: Class 0x00020000, Vendor 0x10EC, Device 0x8168, Revision 0x15
PCI Device: 10000:e0:1d.0: Class 0x00088000, Vendor 0x8086, Device 0x09AB, Revision 0x00
PCI Device: 10000:e0:1d.4: Class 0x00060400, Vendor 0x8086, Device 0x7A34, Revision 0x11
PCI Device: 10000:e1:00.0: Class 0x00010802, Vendor 0x144D, Device 0xA80A, Revision 0x00
## GPIO ##
600 Series PCH
GPP_I0 (0x6E,0x00) 0x84000200 0x00000018 0x00000000 0x00000000
GPP_I1 (0x6E,0x02) 0x82000500 0x00000019 0x00000000 0x00000000
GPP_I2 (0x6E,0x04) 0x86880100 0x0000001a 0x00000000 0x00000000
GPP_I3 (0x6E,0x06) 0x82000502 0x0000001b 0x00000000 0x00000000
GPP_I4 (0x6E,0x08) 0x84000200 0x0000001c 0x00000000 0x00000000
GPP_I5 (0x6E,0x0A) 0x44000200 0x0000001d 0x00000000 0x00000000
GPP_I6 (0x6E,0x0C) 0x44000200 0x0000001e 0x00000000 0x00000000
GPP_I7 (0x6E,0x0E) 0x44000200 0x00000020 0x00000000 0x00000000
GPP_I8 (0x6E,0x10) 0x44000102 0x00000021 0x00000000 0x00000000
GPP_I9 (0x6E,0x12) 0x44000200 0x00000022 0x00000000 0x00000000
GPP_I10 (0x6E,0x14) 0x44000200 0x00000023 0x00000000 0x00000000
GPP_I11 (0x6E,0x16) 0x44000102 0x00000024 0x00000000 0x00000000
GPP_I12 (0x6E,0x18) 0x44000102 0x00000025 0x00000000 0x00000000
GPP_I13 (0x6E,0x1A) 0x44000902 0x00000026 0x00000000 0x00000000
GPP_I14 (0x6E,0x1C) 0x44000902 0x00000027 0x00000000 0x00000000
GPP_I15 (0x6E,0x1E) 0x44000200 0x00000028 0x00000000 0x00000000
GPP_I16 (0x6E,0x20) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_I17 (0x6E,0x22) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_I18 (0x6E,0x24) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_I19 (0x6E,0x26) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_I20 (0x6E,0x28) 0x44000200 0x0000002d 0x00000000 0x00000000
GPP_I21 (0x6E,0x2A) 0x44000200 0x0000002e 0x00000000 0x00000000
GPP_I22 (0x6E,0x2C) 0x44000200 0x00000030 0x00000000 0x00000000
GPP_R0 (0x6E,0x32) 0x44000600 0x00000031 0x00000000 0x00000000
GPP_R1 (0x6E,0x34) 0x44000600 0x00003c32 0x00000000 0x00000000
GPP_R2 (0x6E,0x36) 0x44000600 0x00003c33 0x00000000 0x00000000
GPP_R3 (0x6E,0x38) 0x44000500 0x00003c34 0x00000000 0x00000000
GPP_R4 (0x6E,0x3A) 0x44000600 0x00000035 0x00000000 0x00000000
GPP_R5 (0x6E,0x3C) 0x44000200 0x00000036 0x00000000 0x00000000
GPP_R6 (0x6E,0x3E) 0x44000200 0x00000037 0x00000000 0x00000000
GPP_R7 (0x6E,0x40) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_R8 (0x6E,0x42) 0x44000100 0x00000039 0x00000000 0x00000000
GPP_R9 (0x6E,0x44) 0x44000702 0x0000003a 0x00000000 0x00000000
GPP_R10 (0x6E,0x46) 0x44000200 0x0000003b 0x00000000 0x00000000
GPP_R11 (0x6E,0x48) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_R12 (0x6E,0x4A) 0x44000200 0x0000003d 0x00000000 0x00000000
GPP_R13 (0x6E,0x4C) 0x44000200 0x0000003e 0x00000000 0x00000000
GPP_R14 (0x6E,0x4E) 0x44000200 0x0000003f 0x00000000 0x00000000
GPP_R15 (0x6E,0x50) 0x44000200 0x00000040 0x00000000 0x00000000
GPP_R16 (0x6E,0x52) 0x44000200 0x00000041 0x00000000 0x00000000
GPP_R17 (0x6E,0x54) 0x44000200 0x00000042 0x00000000 0x00000000
GPP_R18 (0x6E,0x56) 0x44000200 0x00000043 0x00000000 0x00000000
GPP_R19 (0x6E,0x58) 0x44000102 0x00000044 0x00000000 0x00000000
GPP_R20 (0x6E,0x5A) 0x44000200 0x00000045 0x00000000 0x00000000
GPP_R21 (0x6E,0x5C) 0x44000200 0x00000046 0x00000000 0x00000000
GPP_J0 (0x6E,0x60) 0x44000500 0x00000047 0x00000000 0x00000000
GPP_J1 (0x6E,0x62) 0x44000700 0x00000048 0x00000000 0x00000000
GPP_J2 (0x6E,0x64) 0x44000500 0x00000049 0x00000000 0x00000000
GPP_J3 (0x6E,0x66) 0x44000502 0x0000304a 0x00000000 0x00000000
GPP_J4 (0x6E,0x68) 0x44000500 0x0000004b 0x00000000 0x00000000
GPP_J5 (0x6E,0x6A) 0x44000500 0x0000304c 0x00000000 0x00000000
GPP_J6 (0x6E,0x6C) 0x44000500 0x0000004d 0x00000000 0x00000000
GPP_J7 (0x6E,0x6E) 0x44000500 0x0000004e 0x00000000 0x00000000
GPP_J8 (0x6E,0x70) 0x44000102 0x00000050 0x00000000 0x00000000
GPP_J9 (0x6E,0x72) 0x44000200 0x00000051 0x00000000 0x00000000
GPP_J10 (0x6E,0x74) 0x44000200 0x00000052 0x00000000 0x00000000
GPP_J11 (0x6E,0x76) 0x44000200 0x00000053 0x00000000 0x00000000
GPP_B0 (0x6D,0x00) 0x40100102 0x00003050 0x00000000 0x00000000
GPP_B1 (0x6D,0x02) 0x44000102 0x00000051 0x00000000 0x00000000
GPP_B2 (0x6D,0x04) 0x44000102 0x00000052 0x00000000 0x00000000
GPP_B3 (0x6D,0x06) 0x84000201 0x00000053 0x00000000 0x00000000
GPP_B4 (0x6D,0x08) 0x44000200 0x00000054 0x00000000 0x00000000
GPP_B5 (0x6D,0x0A) 0x44000200 0x00000055 0x00000000 0x00000000
GPP_B6 (0x6D,0x0C) 0x44000200 0x00000056 0x00000000 0x00000000
GPP_B7 (0x6D,0x0E) 0x44000200 0x00000057 0x00000000 0x00000000
GPP_B8 (0x6D,0x10) 0x44000200 0x00000058 0x00000000 0x00000000
GPP_B9 (0x6D,0x12) 0x44000200 0x00000059 0x00000000 0x00000000
GPP_B10 (0x6D,0x14) 0x44000200 0x0000005a 0x00000000 0x00000000
GPP_B11 (0x6D,0x16) 0x44000200 0x0000005b 0x00000000 0x00000000
GPP_B12 (0x6D,0x18) 0x44000200 0x0000005c 0x00000000 0x00000000
GPP_B13 (0x6D,0x1A) 0x44000700 0x0000005d 0x00000000 0x00000000
GPP_B14 (0x6D,0x1C) 0x44000500 0x0000005e 0x00000000 0x00000000
GPP_B15 (0x6D,0x1E) 0x44000200 0x0000005f 0x00000000 0x00000000
GPP_B16 (0x6D,0x20) 0x44000200 0x00000060 0x00000000 0x00000000
GPP_B17 (0x6D,0x22) 0x44000200 0x00000061 0x00000000 0x00000000
GPP_B18 (0x6D,0x24) 0x04000702 0x00000062 0x00000000 0x00000000
GPP_B19 (0x6D,0x26) 0x44000201 0x00000063 0x00000000 0x00000000
GPP_B20 (0x6D,0x28) 0x44000200 0x00000064 0x00000000 0x00000000
GPP_B21 (0x6D,0x2A) 0x44000200 0x00000065 0x00000000 0x00000000
GPP_B22 (0x6D,0x2C) 0x44000200 0x00000066 0x00000000 0x00000000
GPP_B23 (0x6D,0x2E) 0x44000102 0x00000067 0x00000800 0x00000000
GPP_G0 (0x6D,0x30) 0x44000200 0x00000068 0x00000000 0x00000000
GPP_G1 (0x6D,0x32) 0x44000200 0x00000069 0x00000000 0x00000000
GPP_G2 (0x6D,0x34) 0x44000200 0x0000006a 0x00000000 0x00000000
GPP_G3 (0x6D,0x36) 0x44000102 0x0000006b 0x00000000 0x00000000
GPP_G4 (0x6D,0x38) 0x44000102 0x0000006c 0x00000000 0x00000000
GPP_G5 (0x6D,0x3A) 0x44000600 0x0000006d 0x00000000 0x00000000
GPP_G6 (0x6D,0x3C) 0x44000100 0x0000006e 0x00000000 0x00000000
GPP_G7 (0x6D,0x3E) 0x44000100 0x0000006f 0x00000000 0x00000000
GPP_H0 (0x6D,0x40) 0x44000102 0x00000070 0x00000000 0x00000000
GPP_H1 (0x6D,0x42) 0x44000200 0x00000071 0x00000000 0x00000000
GPP_H2 (0x6D,0x44) 0x44000102 0x00000072 0x00000000 0x00000000
GPP_H3 (0x6D,0x46) 0x44000300 0x00000073 0x00000000 0x00000000
GPP_H4 (0x6D,0x48) 0x44000700 0x00000074 0x00000000 0x00000000
GPP_H5 (0x6D,0x4A) 0x44000702 0x00000075 0x00000000 0x00000000
GPP_H6 (0x6D,0x4C) 0x44000702 0x00000076 0x00000000 0x00000000
GPP_H7 (0x6D,0x4E) 0x44000700 0x00000077 0x00000000 0x00000000
GPP_H8 (0x6D,0x50) 0x44000702 0x00000018 0x00000000 0x00000000
GPP_H9 (0x6D,0x52) 0x44000700 0x00000019 0x00000000 0x00000000
GPP_H10 (0x6D,0x54) 0x44000200 0x00000020 0x00000000 0x00000000
GPP_H11 (0x6D,0x56) 0x44000200 0x00000021 0x00000000 0x00000000
GPP_H12 (0x6D,0x58) 0x44000200 0x00000022 0x00000000 0x00000000
GPP_H13 (0x6D,0x5A) 0x44000200 0x00000023 0x00000000 0x00000000
GPP_H14 (0x6D,0x5C) 0x44000200 0x00000024 0x00000000 0x00000000
GPP_H15 (0x6D,0x5E) 0x44000200 0x00000025 0x00000000 0x00000000
GPP_H16 (0x6D,0x60) 0x44000200 0x00000026 0x00000000 0x00000000
GPP_H17 (0x6D,0x62) 0x44000200 0x00000027 0x00000000 0x00000000
GPP_H18 (0x6D,0x64) 0x44000200 0x00000028 0x00000000 0x00000000
GPP_H19 (0x6D,0x66) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_H20 (0x6D,0x68) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_H21 (0x6D,0x6A) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_H22 (0x6D,0x6C) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_H23 (0x6D,0x6E) 0x44000200 0x0000002d 0x00000000 0x00000000
GPD0 (0x6C,0x00) 0x04000702 0x00003060 0x00000000 0x00000000
GPD1 (0x6C,0x02) 0x04000702 0x00003c61 0x00000000 0x00000000
GPD2 (0x6C,0x04) 0x44000200 0x00000062 0x00000000 0x00000000
GPD3 (0x6C,0x06) 0x04000702 0x00003063 0x00000010 0x00000000
GPD4 (0x6C,0x08) 0x04000600 0x00000064 0x00000000 0x00000000
GPD5 (0x6C,0x0A) 0x04000600 0x00000065 0x00000000 0x00000000
GPD6 (0x6C,0x0C) 0x44000600 0x00000066 0x00000000 0x00000000
GPD7 (0x6C,0x0E) 0x44000200 0x00000067 0x00000800 0x00000000
GPD8 (0x6C,0x10) 0x04000700 0x00000068 0x00000000 0x00000000
GPD9 (0x6C,0x12) 0x04000200 0x00000069 0x00000000 0x00000000
GPD10 (0x6C,0x14) 0x44000600 0x0000006a 0x00000000 0x00000000
GPD11 (0x6C,0x16) 0x44000200 0x0000006b 0x00000000 0x00000000
GPD12 (0x6C,0x18) 0x44000200 0x0000006c 0x00000000 0x00000000
GPP_A0 (0x6B,0x12) 0x44000700 0x00003018 0x00000000 0x00000000
GPP_A1 (0x6B,0x14) 0x44000702 0x00003019 0x00000000 0x00000000
GPP_A2 (0x6B,0x16) 0x44000700 0x00003020 0x00000000 0x00000000
GPP_A3 (0x6B,0x18) 0x44000700 0x00003021 0x00000000 0x00000000
GPP_A4 (0x6B,0x1A) 0x44000700 0x00003022 0x00000000 0x00000000
GPP_A5 (0x6B,0x1C) 0x44000700 0x00001023 0x00000000 0x00000000
GPP_A6 (0x6B,0x1E) 0x44000700 0x00000024 0x00000000 0x00000000
GPP_A7 (0x6B,0x20) 0x44000200 0x00000025 0x00000000 0x00000000
GPP_A8 (0x6B,0x22) 0x44000200 0x00000026 0x00000000 0x00000000
GPP_A9 (0x6B,0x24) 0x44000200 0x00000027 0x00000000 0x00000000
GPP_A10 (0x6B,0x26) 0x44000702 0x00003028 0x00000000 0x00000000
GPP_A11 (0x6B,0x28) 0x44000102 0x00003029 0x00000000 0x00000000
GPP_A12 (0x6B,0x2A) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_A13 (0x6B,0x2C) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_A14 (0x6B,0x2E) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_C0 (0x6B,0x32) 0x44000502 0x0000002d 0x00000000 0x00000000
GPP_C1 (0x6B,0x34) 0x44000502 0x0000002e 0x00000000 0x00000000
GPP_C2 (0x6B,0x36) 0x44000102 0x0000002f 0x00000800 0x00000000
GPP_C3 (0x6B,0x38) 0x44000d02 0x00000030 0x00000000 0x00000000
GPP_C4 (0x6B,0x3A) 0x44000d02 0x00000031 0x00000000 0x00000000
GPP_C5 (0x6B,0x3C) 0x44000200 0x00000032 0x00000000 0x00000000
GPP_C6 (0x6B,0x3E) 0x44000902 0x00000033 0x00000000 0x00000000
GPP_C7 (0x6B,0x40) 0x44000902 0x00000034 0x00000000 0x00000000
GPP_C8 (0x6B,0x42) 0x44000102 0x00000035 0x00000000 0x00000000
GPP_C9 (0x6B,0x44) 0x44000200 0x00000036 0x00000000 0x00000000
GPP_C10 (0x6B,0x46) 0x44000200 0x00000037 0x00000000 0x00000000
GPP_C11 (0x6B,0x48) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_C12 (0x6B,0x4A) 0x44000200 0x00000039 0x00000000 0x00000000
GPP_C13 (0x6B,0x4C) 0x44000200 0x0000003a 0x00000000 0x00000000
GPP_C14 (0x6B,0x4E) 0x44000200 0x0000003b 0x00000000 0x00000000
GPP_C15 (0x6B,0x50) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_C16 (0x6B,0x52) 0x44000502 0x0000003d 0x00000000 0x00000000
GPP_C17 (0x6B,0x54) 0x44000502 0x0000003e 0x00000000 0x00000000
GPP_C18 (0x6B,0x56) 0x44000502 0x0000003f 0x00000000 0x00000000
GPP_C19 (0x6B,0x58) 0x44000502 0x00000040 0x00000000 0x00000000
GPP_C20 (0x6B,0x5A) 0x44000200 0x00000041 0x00000000 0x00000000
GPP_C21 (0x6B,0x5C) 0x44000200 0x00000042 0x00000000 0x00000000
GPP_C22 (0x6B,0x5E) 0x44000200 0x00000043 0x00000000 0x00000000
GPP_C23 (0x6B,0x60) 0x44000200 0x00000044 0x00000000 0x00000000
GPP_S0 (0x6A,0x00) 0x44000200 0x01800030 0x00000000 0x00000000
GPP_S1 (0x6A,0x02) 0x44000200 0x01800031 0x00000000 0x00000000
GPP_S2 (0x6A,0x04) 0x44000200 0x01800032 0x00000000 0x00000000
GPP_S3 (0x6A,0x06) 0x44000200 0x01800033 0x00000000 0x00000000
GPP_S4 (0x6A,0x08) 0x44000a00 0x01800034 0x00000000 0x00000000
GPP_S5 (0x6A,0x0A) 0x44000900 0x01800035 0x00000000 0x00000000
GPP_S6 (0x6A,0x0C) 0x44000200 0x01800036 0x00000000 0x00000000
GPP_S7 (0x6A,0x0E) 0x44000200 0x01800037 0x00000000 0x00000000
GPP_E0 (0x6A,0x10) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_E1 (0x6A,0x12) 0x44000200 0x00000039 0x00000000 0x00000000
GPP_E2 (0x6A,0x14) 0x44000102 0x0000003a 0x00000000 0x00000000
GPP_E3 (0x6A,0x16) 0x44000102 0x0000003b 0x00000000 0x00000000
GPP_E4 (0x6A,0x18) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_E5 (0x6A,0x1A) 0x44000200 0x0000003d 0x00000000 0x00000000
GPP_E6 (0x6A,0x1C) 0x44000200 0x0000003e 0x00000000 0x00000000
GPP_E7 (0x6A,0x1E) 0x80100102 0x0000003f 0x00000000 0x00000000
GPP_E8 (0x6A,0x20) 0x44000600 0x00000040 0x00000000 0x00000000
GPP_E9 (0x6A,0x22) 0x44000102 0x00000041 0x00000800 0x00000000
GPP_E10 (0x6A,0x24) 0x44000102 0x00000042 0x00000800 0x00000000
GPP_E11 (0x6A,0x26) 0x44000102 0x00000043 0x00000800 0x00000000
GPP_E12 (0x6A,0x28) 0x44000102 0x00000044 0x00000000 0x00000000
GPP_E13 (0x6A,0x2A) 0x44000200 0x00000045 0x00000000 0x00000000
GPP_E14 (0x6A,0x2C) 0x44000200 0x00000046 0x00000000 0x00000000
GPP_E15 (0x6A,0x2E) 0x44000200 0x00000047 0x00000000 0x00000000
GPP_E16 (0x6A,0x30) 0x44000200 0x00000048 0x00000000 0x00000000
GPP_E17 (0x6A,0x32) 0x44000102 0x00000049 0x00000000 0x00000000
GPP_E18 (0x6A,0x34) 0x44000201 0x0000004a 0x00000000 0x00000000
GPP_E19 (0x6A,0x36) 0x44000200 0x0000004b 0x00000000 0x00000000
GPP_E20 (0x6A,0x38) 0x44000200 0x0000004c 0x00000000 0x00000000
GPP_E21 (0x6A,0x3A) 0x44000200 0x0000004d 0x00000000 0x00000000
GPP_K0 (0x6A,0x3E) 0x42800102 0x0000004e 0x00000000 0x00000000
GPP_K1 (0x6A,0x40) 0x44000200 0x00000050 0x00000000 0x00000000
GPP_K2 (0x6A,0x42) 0x44000200 0x00000051 0x00000000 0x00000000
GPP_K3 (0x6A,0x44) 0x84000201 0x00000052 0x00000000 0x00000000
GPP_K4 (0x6A,0x46) 0x44000200 0x00003053 0x00000000 0x00000000
GPP_K5 (0x6A,0x48) 0x44000200 0x00000054 0x00000000 0x00000000
GPP_K6 (0x6A,0x4A) 0x44000a02 0x00000055 0x00000000 0x00000000
GPP_K7 (0x6A,0x4C) 0x44000a02 0x00000056 0x00000000 0x00000000
GPP_K8 (0x6A,0x4E) 0x44000700 0x00000057 0x00000000 0x00000000
GPP_K9 (0x6A,0x50) 0x44000700 0x00000058 0x00000000 0x00000000
GPP_K10 (0x6A,0x52) 0x44000a02 0x00000059 0x00000000 0x00000000
GPP_K11 (0x6A,0x54) 0x44000200 0x0000005a 0x00000000 0x00000000
GPP_F0 (0x6A,0x5C) 0x44000300 0x0000005b 0x00000000 0x00000000
GPP_F1 (0x6A,0x5E) 0x44000200 0x0000005c 0x00000000 0x00000000
GPP_F2 (0x6A,0x60) 0x44000200 0x0000005d 0x00000000 0x00000000
GPP_F3 (0x6A,0x62) 0x44000200 0x0000005e 0x00000000 0x00000000
GPP_F4 (0x6A,0x64) 0x44000200 0x00000060 0x00000000 0x00000000
GPP_F5 (0x6A,0x66) 0x44000300 0x00000061 0x00000000 0x00000000
GPP_F6 (0x6A,0x68) 0x44000200 0x00000062 0x00000000 0x00000000
GPP_F7 (0x6A,0x6A) 0x80100100 0x00000063 0x00000000 0x00000000
GPP_F8 (0x6A,0x6C) 0x84000100 0x00000064 0x00000000 0x00000000
GPP_F9 (0x6A,0x6E) 0x44000200 0x00000065 0x00000000 0x00000000
GPP_F10 (0x6A,0x70) 0x44000102 0x00000066 0x00000000 0x00000000
GPP_F11 (0x6A,0x72) 0x44000200 0x00000067 0x00000000 0x00000000
GPP_F12 (0x6A,0x74) 0x44000200 0x00000068 0x00000000 0x00000000
GPP_F13 (0x6A,0x76) 0x44000200 0x00000069 0x00000000 0x00000000
GPP_F14 (0x6A,0x78) 0x44000200 0x0000006a 0x00000000 0x00000000
GPP_F15 (0x6A,0x7A) 0x44000100 0x0000006b 0x00000000 0x00000000
GPP_F16 (0x6A,0x7C) 0x80100100 0x0000006c 0x00000000 0x00000000
GPP_F17 (0x6A,0x7E) 0x44000102 0x0000006d 0x00000000 0x00000000
GPP_F18 (0x6A,0x80) 0x44000200 0x0000006e 0x00000000 0x00000000
GPP_F19 (0x6A,0x82) 0x44000700 0x0000006f 0x00000000 0x00000000
GPP_F20 (0x6A,0x84) 0x44000700 0x00000070 0x00000000 0x00000000
GPP_F21 (0x6A,0x86) 0x44000700 0x00000071 0x00000000 0x00000000
GPP_F22 (0x6A,0x88) 0x44000200 0x00000072 0x00000000 0x00000000
GPP_F23 (0x6A,0x8A) 0x44000200 0x00000073 0x00000000 0x00000000
GPP_D0 (0x69,0x20) 0x44000200 0x00000026 0x00000000 0x00000000
GPP_D1 (0x69,0x22) 0x44000200 0x00000027 0x00000000 0x00000000
GPP_D2 (0x69,0x24) 0x44000200 0x00000028 0x00000000 0x00000000
GPP_D3 (0x69,0x26) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_D4 (0x69,0x28) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_D5 (0x69,0x2A) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_D6 (0x69,0x2C) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_D7 (0x69,0x2E) 0x44000200 0x0000002d 0x00000000 0x00000000
GPP_D8 (0x69,0x30) 0x40000300 0x00000000 0x00000000 0x00000000
GPP_D9 (0x69,0x32) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D10 (0x69,0x34) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D11 (0x69,0x36) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D12 (0x69,0x38) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D13 (0x69,0x3A) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D14 (0x69,0x3C) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D15 (0x69,0x3E) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D16 (0x69,0x40) 0x40000700 0x00003c00 0x00000800 0x00000000
GPP_D17 (0x69,0x42) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D18 (0x69,0x44) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D19 (0x69,0x46) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D20 (0x69,0x48) 0x40000700 0x00000000 0x00000000 0x00000000
GPP_D21 (0x69,0x4A) 0x40000700 0x00000000 0x00000000 0x00000000
GPP_D22 (0x69,0x4C) 0x40000700 0x00000000 0x00000000 0x00000000
GPP_D23 (0x69,0x4E) 0x40000700 0x00000000 0x00000000 0x00000000
## HDAUDIO ##
hdaudioC0D0
vendor_name: Realtek
chip_name: ALC245
vendor_id: 0x10ec0245
subsystem_id: 0x15580353
revision_id: 0x100001
0x12: 0x90a60130
0x13: 0x40000000
0x14: 0x90170110
0x17: 0x411111f0
0x18: 0x411111f0
0x19: 0x411111f0
0x1a: 0x411111f0
0x1b: 0x411111f0
0x1d: 0x40689b2d
0x1e: 0x411111f0
0x21: 0x04211020
hdaudioC0D2
vendor_name: Intel
chip_name: Raptorlake HDMI
vendor_id: 0x80862818
subsystem_id: 0x80860101
revision_id: 0x100000
0x04: 0x18560010
0x06: 0x18560010
0x08: 0x18560010
0x0a: 0x18560010
0x0b: 0x18560010
0x0c: 0x18560010
0x0d: 0x18560010
0x0e: 0x18560010
0x0f: 0x18560010
hdaudioC1D0
vendor_name: Nvidia
chip_name: GPU a6 HDMI/DP
vendor_id: 0x10de00a6
subsystem_id: 0x10de0000
revision_id: 0x100100
0x04: 0x185600f0
0x05: 0x585600f0
0x06: 0x585600f0
0x07: 0x585600f0

View File

@ -0,0 +1,19 @@
CONFIG_VENDOR_SYSTEM76=y
CONFIG_BOARD_SYSTEM76_ADDW4=y
CONFIG_CCACHE=y
CONFIG_CONSOLE_SERIAL=n
CONFIG_CPU_MICROCODE_CBFS_DEFAULT_BINS=y
CONFIG_HAVE_IFD_BIN=y
CONFIG_HAVE_ME_BIN=y
CONFIG_IFD_BIN_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/fd.rom"
CONFIG_ME_BIN_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/me.rom"
CONFIG_PAYLOAD_ELF=y
CONFIG_PAYLOAD_FILE="$(FIRMWARE_OPEN_UEFIPAYLOAD)"
CONFIG_PCIEXP_HOTPLUG_MEM=0x2000000
CONFIG_PCIEXP_HOTPLUG_PREFETCH_MEM=0x20000000
CONFIG_POST_IO=n
CONFIG_SMMSTORE=y
CONFIG_SMMSTORE_V2=y
CONFIG_USE_OPTION_TABLE=y
CONFIG_VALIDATE_INTEL_DESCRIPTOR=y
#CONFIG_CONSOLE_SYSTEM76_EC=y

1
models/addw4/ec.config Normal file
View File

@ -0,0 +1 @@
BOARD=system76/addw4

89
models/addw4/ecspy.txt Normal file
View File

@ -0,0 +1,89 @@
id 5570 rev 7
A0: data 1 mirror 1 pot 0 control 00
A1: data 0 mirror 0 pot 0 control 80
A2: data 0 mirror 0 pot 0 control 00
A3: data 1 mirror 1 pot 0 control 80
A4: data 0 mirror 0 pot 0 control 00
A5: data 0 mirror 0 pot 0 control 00
A6: data 0 mirror 0 pot 0 control 00
A7: data 1 mirror 0 pot 0 control 00
B0: data 0 mirror 0 pot 0 control 84
B1: data 1 mirror 1 pot 0 control 84
B2: data 1 mirror 1 pot 0 control 80
B3: data 1 mirror 1 pot 0 control 80
B4: data 1 mirror 1 pot 0 control 40
B5: data 0 mirror 0 pot 0 control 80
B6: data 1 mirror 1 pot 0 control 44
B7: data 1 mirror 1 pot 0 control 80
C0: data 1 mirror 1 pot 0 control 80
C1: data 1 mirror 1 pot 0 control 04
C2: data 1 mirror 1 pot 0 control 04
C3: data 1 mirror 1 pot 0 control 04
C4: data 0 mirror 0 pot 0 control 84
C5: data 1 mirror 1 pot 0 control 04
C6: data 1 mirror 1 pot 0 control 40
C7: data 1 mirror 1 pot 0 control 44
D0: data 1 mirror 1 pot 0 control 44
D1: data 1 mirror 1 pot 0 control 44
D2: data 1 mirror 1 pot 0 control 00
D3: data 0 mirror 0 pot 0 control 40
D4: data 0 mirror 0 pot 0 control 80
D5: data 1 mirror 1 pot 0 control 44
D6: data 1 mirror 1 pot 0 control 02
D7: data 1 mirror 1 pot 0 control 02
E0: data 1 mirror 1 pot 0 control 04
E1: data 1 mirror 1 pot 0 control 44
E2: data 0 mirror 0 pot 0 control 84
E3: data 1 mirror 1 pot 0 control 40
E4: data 1 mirror 1 pot 0 control 42
E5: data 1 mirror 1 pot 0 control 40
E6: data 0 mirror 0 pot 0 control 80
E7: data 1 mirror 1 pot 0 control 04
F0: data 0 mirror 0 pot 0 control 44
F1: data 1 mirror 1 pot 0 control 44
F2: data 1 mirror 1 pot 0 control 44
F3: data 1 mirror 1 pot 0 control 40
F4: data 1 mirror 1 pot 0 control 04
F5: data 1 mirror 1 pot 0 control 04
F6: data 0 mirror 0 pot 0 control 40
F7: data 0 mirror 0 pot 0 control 40
G0: data 1 mirror 1 pot 0 control 40
G1: data 1 mirror 1 pot 0 control 44
G2: data 1 mirror 1 pot 0 control 80
G3: data 0 mirror 0 pot 0 control 00
G4: data 0 mirror 0 pot 0 control 00
G5: data 0 mirror 0 pot 0 control 00
G6: data 0 mirror 0 pot 0 control 40
G7: data 0 mirror 0 pot 0 control 00
H0: data 1 mirror 1 pot 0 control 80
H1: data 0 mirror 0 pot 0 control 82
H2: data 0 mirror 0 pot 0 control 40
H3: data 1 mirror 1 pot 0 control 44
H4: data 1 mirror 1 pot 0 control 80
H5: data 1 mirror 1 pot 0 control 40
H6: data 1 mirror 1 pot 0 control 80
H7: data 1 mirror 1 pot 0 control 80
I0: data 0 mirror 0 pot 0 control 00
I1: data 0 mirror 0 pot 0 control 00
I2: data 0 mirror 0 pot 0 control 80
I3: data 0 mirror 0 pot 0 control 00
I4: data 0 mirror 0 pot 0 control 00
I5: data 0 mirror 0 pot 0 control 00
I6: data 0 mirror 0 pot 0 control 00
I7: data 0 mirror 0 pot 0 control 00
J0: data 0 mirror 0 pot 0 control 40
J1: data 1 mirror 1 pot 0 control 40
J2: data 0 mirror 0 pot 0 control 40
J3: data 0 mirror 0 pot 0 control 82
J4: data 1 mirror 1 pot 0 control 40
J5: data 1 mirror 1 pot 0 control 80
J6: data 0 mirror 0 pot 0 control 44
J7: data 1 mirror 1 pot 0 control 40
M0: data 0 mirror 0 control 06
M1: data 0 mirror 1 control 06
M2: data 1 mirror 1 control 06
M3: data 1 mirror 1 control 06
M4: data 0 mirror 1 control 06
M5: data 0 mirror 0 control 00
M6: data 1 mirror 1 control 86
M7: data 0 mirror 0 control 00

9
models/addw4/edk2.config Normal file
View File

@ -0,0 +1,9 @@
BOOTLOADER=COREBOOT
DISABLE_SERIAL_TERMINAL=TRUE
PLATFORM_BOOT_TIMEOUT=2
PS2_KEYBOARD_ENABLE=TRUE
SECURE_BOOT_ENABLE=TRUE
SERIAL_DRIVER_ENABLE=FALSE
SHELL_TYPE=NONE
TPM_ENABLE=TRUE
#SYSTEM76_EC_LOGGING=TRUE

BIN
models/addw4/fd.rom (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/addw4/me.rom (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/addw4/vbt.rom (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4092 KB
- Version: 14.0.60.1807
- Version: 14.1.72.2287

View File

@ -1,245 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MAINBOARD_GPIO_H
#define MAINBOARD_GPIO_H
#include <soc/gpe.h>
#include <soc/gpio.h>
#ifndef __ACPI__
/* Pad configuration in ramstage. */
static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPD0, NONE, DEEP, NF1),
PAD_CFG_NF(GPD1, NATIVE, DEEP, NF1),
PAD_CFG_GPI(GPD2, NATIVE, PWROK),
PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPD4, NONE, DEEP, NF1),
PAD_CFG_NF(GPD5, NONE, DEEP, NF1),
PAD_CFG_NF(GPD6, UP_20K, PWROK, NF1),
PAD_CFG_GPI(GPD7, UP_20K, PWROK),
PAD_CFG_NF(GPD8, NONE, DEEP, NF1),
PAD_CFG_NF(GPD9, NONE, DEEP, NF1),
PAD_CFG_NF(GPD10, NONE, DEEP, NF1),
PAD_CFG_GPI(GPD11, UP_20K, PWROK),
PAD_CFG_NF(GPP_A0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A2, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A3, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A7, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_A10, UP_20K, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_A11, 0x80100100, 0x0000),
PAD_CFG_GPI(GPP_A12, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A13, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A14, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A15, UP_20K, DEEP),
PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_A17, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_A18, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_A19, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_A20, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_A21, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A22, UP_20K, DEEP),
PAD_CFG_GPI(GPP_A23, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_B0, 0x42080100, 0x3000),
PAD_CFG_GPI(GPP_B1, UP_20K, DEEP),
PAD_CFG_NF(GPP_B2, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_B3, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_B4, UP_20K, DEEP),
PAD_CFG_NF(GPP_B5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B7, UP_20K, PLTRST),
PAD_CFG_GPI(GPP_B8, UP_20K, PLTRST),
PAD_CFG_NF(GPP_B9, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B10, UP_20K, PLTRST),
PAD_CFG_TERM_GPO(GPP_B11, 1, NONE, DEEP),
PAD_CFG_NF(GPP_B12, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_B15, UP_20K, DEEP),
PAD_CFG_GPI(GPP_B16, UP_20K, DEEP),
PAD_CFG_GPI(GPP_B17, UP_20K, DEEP),
PAD_CFG_GPI(GPP_B18, UP_20K, DEEP),
PAD_CFG_GPI(GPP_B19, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_B20, 0x42040100, 0x0000),
PAD_CFG_GPI(GPP_B21, UP_20K, DEEP),
PAD_CFG_GPI(GPP_B22, UP_20K, DEEP),
PAD_CFG_NF(GPP_B23, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_C2, UP_20K, DEEP),
PAD_CFG_NF(GPP_C3, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_C7, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_C8, NONE, PLTRST),
PAD_CFG_GPI(GPP_C9, NONE, DEEP),
PAD_CFG_GPI(GPP_C10, DN_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_C11, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_C12, UP_20K, DEEP),
PAD_CFG_GPI(GPP_C13, UP_20K, DEEP),
PAD_CFG_GPI(GPP_C14, UP_20K, DEEP),
PAD_CFG_GPI(GPP_C15, UP_20K, DEEP),
PAD_CFG_NF(GPP_C16, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C17, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C18, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C19, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C20, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_C21, NONE, PLTRST, NF1),
PAD_CFG_GPI(GPP_C22, UP_20K, DEEP),
PAD_CFG_GPI(GPP_C23, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D0, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D1, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D2, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D3, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D4, UP_20K, DEEP),
PAD_CFG_NF(GPP_D5, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_D6, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_D7, NONE, PLTRST, NF1),
PAD_CFG_NF(GPP_D8, NONE, PLTRST, NF1),
PAD_CFG_GPI(GPP_D9, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D10, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D11, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D12, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D13, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D14, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D15, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D16, UP_20K, DEEP),
PAD_CFG_NF(GPP_D17, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_D18, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_D19, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_D20, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_D21, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D22, UP_20K, DEEP),
PAD_CFG_GPI(GPP_D23, UP_20K, DEEP),
PAD_CFG_NF(GPP_E0, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E2, NONE, DEEP, NF2),
PAD_CFG_GPI(GPP_E3, UP_20K, DEEP),
PAD_CFG_GPI(GPP_E4, UP_20K, DEEP),
PAD_CFG_NF(GPP_E5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_E6, NONE, DEEP, NF1),
_PAD_CFG_STRUCT(GPP_E7, 0x80800100, 0x0000),
PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_E9, UP_20K, DEEP),
PAD_CFG_GPI(GPP_E10, UP_20K, DEEP),
PAD_CFG_GPI(GPP_E11, UP_20K, DEEP),
PAD_CFG_GPI(GPP_E12, UP_20K, DEEP),
PAD_CFG_NF(GPP_F0, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_F1, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_F2, 0, UP_20K, PLTRST),
PAD_CFG_NF(GPP_F3, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_F4, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_F5, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_F6, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_F7, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F8, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F9, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F10, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_F11, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_F12, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F13, UP_20K, DEEP),
PAD_CFG_NF(GPP_F14, NONE, DEEP, NF2),
PAD_CFG_GPI(GPP_F15, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F16, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F17, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F18, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F19, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F20, UP_20K, DEEP),
PAD_CFG_GPI(GPP_F21, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_F22, 1, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_F23, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_G0, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G1, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G2, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G3, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G4, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G5, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G6, UP_20K, DEEP),
PAD_CFG_GPI(GPP_G7, UP_20K, DEEP),
PAD_CFG_NF(GPP_H0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H2, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_H3, NONE, PLTRST),
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
PAD_CFG_GPI(GPP_H5, NONE, PLTRST),
PAD_CFG_GPI(GPP_H6, NONE, PLTRST),
PAD_CFG_TERM_GPO(GPP_H7, 0, NONE, DEEP),
PAD_CFG_NF(GPP_H8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H9, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_H10, NONE, PLTRST, NF1),
PAD_CFG_TERM_GPO(GPP_H11, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_H12, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H13, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H14, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_H15, 0x40880100, 0x3000),
PAD_CFG_GPI(GPP_H16, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H17, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H18, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H19, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H20, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H21, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H22, UP_20K, DEEP),
PAD_CFG_GPI(GPP_H23, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_I0, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I1, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I2, 0x46080100, 0x0000),
_PAD_CFG_STRUCT(GPP_I3, 0x46080100, 0x0000),
PAD_CFG_NF(GPP_I4, NONE, DEEP, NF1),
PAD_CFG_TERM_GPO(GPP_I5, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_I6, UP_20K, DEEP),
PAD_CFG_GPI(GPP_I7, UP_20K, DEEP),
PAD_CFG_GPI(GPP_I8, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_I9, 1, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I10, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_I11, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_I12, 0, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_I13, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_I14, UP_20K, DEEP),
PAD_CFG_NF(GPP_J0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J1, NONE, DEEP, NF2),
PAD_CFG_GPI(GPP_J2, UP_20K, DEEP),
PAD_CFG_GPI(GPP_J3, UP_20K, DEEP),
PAD_CFG_NF(GPP_J4, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J5, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J6, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J7, UP_20K, DEEP, NF1),
PAD_CFG_NF(GPP_J8, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_J9, UP_20K, DEEP, NF1),
PAD_CFG_GPI(GPP_J10, UP_20K, DEEP),
PAD_CFG_GPI(GPP_J11, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K0, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K1, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K2, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_K3, 0x80880100, 0x3000),
PAD_CFG_GPI(GPP_K4, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K5, 0, NONE, DEEP),
_PAD_CFG_STRUCT(GPP_K6, 0x40880100, 0x0000),
PAD_CFG_GPI(GPP_K7, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K8, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K9, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K10, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K11, UP_20K, DEEP),
_PAD_CFG_STRUCT(GPP_K12, 0x82880100, 0x3000),
PAD_CFG_GPI(GPP_K13, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K14, 0, NONE, DEEP),
PAD_CFG_GPI(GPP_K15, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K16, 0, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K17, UP_20K, DEEP),
PAD_CFG_TERM_GPO(GPP_K18, 1, NONE, DEEP),
PAD_CFG_GPI(GPP_K19, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K20, UP_20K, DEEP),
PAD_CFG_GPI(GPP_K21, NONE, DEEP),
PAD_CFG_TERM_GPO(GPP_K22, 0, TODO_0x2800, DEEP),
PAD_CFG_TERM_GPO(GPP_K23, 0, NONE, PLTRST),
};
#endif
#endif

View File

@ -1,40 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef HDA_VERB_H
#define HDA_VERB_H
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
/* Realtek, ALC1220 */
0x10ec1220, /* Vendor ID */
0x15587714, /* Subsystem ID */
12, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x15587714),
AZALIA_PIN_CFG(0, 0x12, 0x90a60130),
AZALIA_PIN_CFG(0, 0x14, 0x40000000),
AZALIA_PIN_CFG(0, 0x15, 0x411111f0),
AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
AZALIA_PIN_CFG(0, 0x18, 0x04a11040),
AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1b, 0x90170110),
AZALIA_PIN_CFG(0, 0x1d, 0x4094022d),
AZALIA_PIN_CFG(0, 0x1e, 0x04451120),
/* Nvidia, GPU92HDMI/DP */
0x10de0092, /* Vendor ID */
0x15587714, /* Subsystem ID */
5, /* Number of entries */
AZALIA_SUBVENDOR(0, 0x15587714),
AZALIA_PIN_CFG(0, 0x04, 0x185600f0),
AZALIA_PIN_CFG(0, 0x05, 0x185600f0),
AZALIA_PIN_CFG(0, 0x06, 0x185600f0),
AZALIA_PIN_CFG(0, 0x07, 0x185600f0),
};
const u32 pc_beep_verbs[] = {};
AZALIA_ARRAY_SIZES;
#endif

BIN
models/bonw14/me.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/bonw15-b/IntelGopDriver.efi (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,9 @@
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = IntelGopDriver
FILE_GUID = 767222f4-a9f4-41ba-9faa-edaa1405a486
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
[Binaries.X64]
PE32|IntelGopDriver.efi|*

12
models/bonw15-b/README.md Normal file
View File

@ -0,0 +1,12 @@
# System76 Bonobo WS (bonw15-b)
## Contents
- [EC](./ec.rom)
- *Read Error: No such file or directory (os error 2)*
- [FD](./fd.rom)
- Size: 4 KB
- HAP: false
- [ME](./me.rom)
- Size: 3944 KB
- Version: 16.1.30.2330

View File

@ -0,0 +1 @@
# System76 Bonobo WS (bonw15-b)

1
models/bonw15-b/chip.txt Normal file
View File

@ -0,0 +1 @@
GD25Q256D

View File

@ -0,0 +1,334 @@
## PCI ##
PCI Device: 0000:00:00.0: Class 0x00060000, Vendor 0x8086, Device 0xA702, Revision 0x01
PCI Device: 0000:00:01.0: Class 0x00060400, Vendor 0x8086, Device 0xA70D, Revision 0x01
PCI Device: 0000:00:01.1: Class 0x00060400, Vendor 0x8086, Device 0xA72D, Revision 0x01
PCI Device: 0000:00:02.0: Class 0x00030000, Vendor 0x8086, Device 0xA788, Revision 0x04
PCI Device: 0000:00:04.0: Class 0x00118000, Vendor 0x8086, Device 0xA71D, Revision 0x01
PCI Device: 0000:00:08.0: Class 0x00088000, Vendor 0x8086, Device 0xA74F, Revision 0x01
PCI Device: 0000:00:0a.0: Class 0x00118000, Vendor 0x8086, Device 0xA77D, Revision 0x01
PCI Device: 0000:00:0e.0: Class 0x00010400, Vendor 0x8086, Device 0xA77F, Revision 0x00
PCI Device: 0000:00:14.0: Class 0x000C0330, Vendor 0x8086, Device 0x7A60, Revision 0x11
PCI Device: 0000:00:14.2: Class 0x00050000, Vendor 0x8086, Device 0x7A27, Revision 0x11
PCI Device: 0000:00:14.3: Class 0x00028000, Vendor 0x8086, Device 0x7A70, Revision 0x11
PCI Device: 0000:00:15.0: Class 0x000C8000, Vendor 0x8086, Device 0x7A4C, Revision 0x11
PCI Device: 0000:00:15.1: Class 0x000C8000, Vendor 0x8086, Device 0x7A4D, Revision 0x11
PCI Device: 0000:00:16.0: Class 0x00078000, Vendor 0x8086, Device 0x7A68, Revision 0x11
PCI Device: 0000:00:1c.0: Class 0x00060400, Vendor 0x8086, Device 0x7A3E, Revision 0x11
PCI Device: 0000:00:1d.0: Class 0x00060400, Vendor 0x8086, Device 0x7A30, Revision 0x11
PCI Device: 0000:00:1f.0: Class 0x00060100, Vendor 0x8086, Device 0x7A0C, Revision 0x11
PCI Device: 0000:00:1f.3: Class 0x00040300, Vendor 0x8086, Device 0x7A50, Revision 0x11
PCI Device: 0000:00:1f.4: Class 0x000C0500, Vendor 0x8086, Device 0x7A23, Revision 0x11
PCI Device: 0000:00:1f.5: Class 0x000C8000, Vendor 0x8086, Device 0x7A24, Revision 0x11
PCI Device: 0000:02:00.0: Class 0x00030000, Vendor 0x10DE, Device 0x27E0, Revision 0xA1
PCI Device: 0000:02:00.1: Class 0x00040300, Vendor 0x10DE, Device 0x22BC, Revision 0xA1
PCI Device: 0000:03:00.0: Class 0x00020000, Vendor 0x8086, Device 0x3101, Revision 0x03
PCI Device: 0000:04:00.0: Class 0x00060400, Vendor 0x8086, Device 0x1136, Revision 0x02
PCI Device: 0000:05:00.0: Class 0x00060400, Vendor 0x8086, Device 0x1136, Revision 0x02
PCI Device: 0000:05:01.0: Class 0x00060400, Vendor 0x8086, Device 0x1136, Revision 0x02
PCI Device: 0000:05:02.0: Class 0x00060400, Vendor 0x8086, Device 0x1136, Revision 0x02
PCI Device: 0000:05:03.0: Class 0x00060400, Vendor 0x8086, Device 0x1136, Revision 0x02
PCI Device: 0000:06:00.0: Class 0x000C0340, Vendor 0x8086, Device 0x1137, Revision 0x00
PCI Device: 0000:3a:00.0: Class 0x000C0330, Vendor 0x8086, Device 0x1138, Revision 0x00
PCI Device: 10000:e0:1b.0: Class 0x00088000, Vendor 0x8086, Device 0x09AB, Revision 0x00
PCI Device: 10000:e0:1b.4: Class 0x00060400, Vendor 0x8086, Device 0x7A44, Revision 0x11
PCI Device: 10000:e1:00.0: Class 0x00010802, Vendor 0x144D, Device 0xA80A, Revision 0x00
## GPIO ##
600 Series PCH
GPP_I0 (0x6E,0x00) 0x44000200 0x00000018 0x00000000 0x00000000
GPP_I1 (0x6E,0x02) 0x86880100 0x00000019 0x00000000 0x00000000
GPP_I2 (0x6E,0x04) 0x86880100 0x0000001a 0x00000000 0x00000000
GPP_I3 (0x6E,0x06) 0x86880100 0x0000001b 0x00000000 0x00000000
GPP_I4 (0x6E,0x08) 0x86880100 0x0000001c 0x00000000 0x00000000
GPP_I5 (0x6E,0x0A) 0x44000200 0x0000001d 0x00000000 0x00000000
GPP_I6 (0x6E,0x0C) 0x44000200 0x0000001e 0x00000000 0x00000000
GPP_I7 (0x6E,0x0E) 0x44000200 0x00000020 0x00000000 0x00000000
GPP_I8 (0x6E,0x10) 0x44000200 0x00000021 0x00000000 0x00000000
GPP_I9 (0x6E,0x12) 0x44000200 0x00000022 0x00000000 0x00000000
GPP_I10 (0x6E,0x14) 0x44000200 0x00000023 0x00000000 0x00000000
GPP_I11 (0x6E,0x16) 0x44000300 0x00000024 0x00000000 0x00000000
GPP_I12 (0x6E,0x18) 0x44000300 0x00000025 0x00000000 0x00000000
GPP_I13 (0x6E,0x1A) 0x44000300 0x00000026 0x00000000 0x00000000
GPP_I14 (0x6E,0x1C) 0x44000300 0x00000027 0x00000000 0x00000000
GPP_I15 (0x6E,0x1E) 0x44000200 0x00000028 0x00000000 0x00000000
GPP_I16 (0x6E,0x20) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_I17 (0x6E,0x22) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_I18 (0x6E,0x24) 0x44000102 0x0000002b 0x00000000 0x00000000
GPP_I19 (0x6E,0x26) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_I20 (0x6E,0x28) 0x44000200 0x0000002d 0x00000000 0x00000000
GPP_I21 (0x6E,0x2A) 0x44000200 0x0000002e 0x00000000 0x00000000
GPP_I22 (0x6E,0x2C) 0x44000102 0x00000030 0x00000000 0x00000000
GPP_R0 (0x6E,0x32) 0x44000500 0x00000031 0x00000000 0x00000000
GPP_R1 (0x6E,0x34) 0x44000500 0x00003c32 0x00000000 0x00000000
GPP_R2 (0x6E,0x36) 0x44000500 0x00003c33 0x00000000 0x00000000
GPP_R3 (0x6E,0x38) 0x44000500 0x00003c34 0x00000000 0x00000000
GPP_R4 (0x6E,0x3A) 0x44000500 0x00000035 0x00000000 0x00000000
GPP_R5 (0x6E,0x3C) 0x44000200 0x00000036 0x00000000 0x00000000
GPP_R6 (0x6E,0x3E) 0x44000200 0x00000037 0x00000000 0x00000000
GPP_R7 (0x6E,0x40) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_R8 (0x6E,0x42) 0x44000102 0x00000039 0x00000000 0x00000000
GPP_R9 (0x6E,0x44) 0x44000702 0x0000003a 0x00000000 0x00000000
GPP_R10 (0x6E,0x46) 0x44000200 0x0000003b 0x00000000 0x00000000
GPP_R11 (0x6E,0x48) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_R12 (0x6E,0x4A) 0x44000200 0x0000003d 0x00000000 0x00000000
GPP_R13 (0x6E,0x4C) 0x44000200 0x0000003e 0x00000000 0x00000000
GPP_R14 (0x6E,0x4E) 0x44000200 0x0000003f 0x00000000 0x00000000
GPP_R15 (0x6E,0x50) 0x44000200 0x00000040 0x00000000 0x00000000
GPP_R16 (0x6E,0x52) 0x44000201 0x00000041 0x00000000 0x00000000
GPP_R17 (0x6E,0x54) 0x44000200 0x00000042 0x00000000 0x00000000
GPP_R18 (0x6E,0x56) 0x44000200 0x00000043 0x00000000 0x00000000
GPP_R19 (0x6E,0x58) 0x44000200 0x00000044 0x00000000 0x00000000
GPP_R20 (0x6E,0x5A) 0x44000200 0x00000045 0x00000000 0x00000000
GPP_R21 (0x6E,0x5C) 0x44000200 0x00000046 0x00000000 0x00000000
GPP_J0 (0x6E,0x60) 0x44000500 0x00000047 0x00000000 0x00000000
GPP_J1 (0x6E,0x62) 0x44000700 0x00000048 0x00000000 0x00000000
GPP_J2 (0x6E,0x64) 0x44000500 0x00000049 0x00000000 0x00000000
GPP_J3 (0x6E,0x66) 0x44000502 0x0000304a 0x00000000 0x00000000
GPP_J4 (0x6E,0x68) 0x44000500 0x0000004b 0x00000000 0x00000000
GPP_J5 (0x6E,0x6A) 0x44000500 0x0000304c 0x00000000 0x00000000
GPP_J6 (0x6E,0x6C) 0x44000500 0x0000004d 0x00000000 0x00000000
GPP_J7 (0x6E,0x6E) 0x44000500 0x0000004e 0x00000000 0x00000000
GPP_J8 (0x6E,0x70) 0x44000102 0x00000050 0x00000000 0x00000000
GPP_J9 (0x6E,0x72) 0x44000200 0x00000051 0x00000000 0x00000000
GPP_J10 (0x6E,0x74) 0x44000200 0x00000052 0x00000000 0x00000000
GPP_J11 (0x6E,0x76) 0x44000200 0x00000053 0x00000000 0x00000000
GPP_B0 (0x6D,0x00) 0x82900102 0x00000050 0x00000000 0x00000000
GPP_B1 (0x6D,0x02) 0x44000200 0x00000051 0x00000000 0x00000000
GPP_B2 (0x6D,0x04) 0x44000102 0x00000052 0x00000000 0x00000000
GPP_B3 (0x6D,0x06) 0x44000201 0x00000053 0x00000000 0x00000000
GPP_B4 (0x6D,0x08) 0x44000200 0x00000054 0x00000000 0x00000000
GPP_B5 (0x6D,0x0A) 0x44000200 0x00000055 0x00000000 0x00000000
GPP_B6 (0x6D,0x0C) 0x44000200 0x00000056 0x00000000 0x00000000
GPP_B7 (0x6D,0x0E) 0x44000200 0x00000057 0x00000000 0x00000000
GPP_B8 (0x6D,0x10) 0x44000200 0x00000058 0x00000000 0x00000000
GPP_B9 (0x6D,0x12) 0x44000200 0x00000059 0x00000000 0x00000000
GPP_B10 (0x6D,0x14) 0x44000200 0x0000005a 0x00000000 0x00000000
GPP_B11 (0x6D,0x16) 0x44000200 0x0000005b 0x00000000 0x00000000
GPP_B12 (0x6D,0x18) 0x44000700 0x0000005c 0x00000000 0x00000000
GPP_B13 (0x6D,0x1A) 0x44000700 0x0000005d 0x00000000 0x00000000
GPP_B14 (0x6D,0x1C) 0x44000600 0x0000005e 0x00000000 0x00000000
GPP_B15 (0x6D,0x1E) 0x44000200 0x0000005f 0x00000000 0x00000000
GPP_B16 (0x6D,0x20) 0x44000200 0x00000060 0x00000000 0x00000000
GPP_B17 (0x6D,0x22) 0x04000201 0x00000061 0x00000000 0x00000000
GPP_B18 (0x6D,0x24) 0x04000702 0x00000062 0x00000000 0x00000000
GPP_B19 (0x6D,0x26) 0x44000201 0x00000063 0x00000000 0x00000000
GPP_B20 (0x6D,0x28) 0x44000200 0x00000064 0x00000000 0x00000000
GPP_B21 (0x6D,0x2A) 0x44000200 0x00000065 0x00000000 0x00000000
GPP_B22 (0x6D,0x2C) 0x44000201 0x00000066 0x00000000 0x00000000
GPP_B23 (0x6D,0x2E) 0x44000102 0x00000067 0x00000800 0x00000000
GPP_G0 (0x6D,0x30) 0x04000200 0x00000068 0x00000000 0x00000000
GPP_G1 (0x6D,0x32) 0x44000100 0x00000069 0x00000000 0x00000000
GPP_G2 (0x6D,0x34) 0x44000100 0x0000106a 0x00000000 0x00000000
GPP_G3 (0x6D,0x36) 0x44000102 0x0000006b 0x00000000 0x00000000
GPP_G4 (0x6D,0x38) 0x44000100 0x0000006c 0x00000000 0x00000000
GPP_G5 (0x6D,0x3A) 0x44000700 0x0000006d 0x00000000 0x00000000
GPP_G6 (0x6D,0x3C) 0x44000100 0x0000006e 0x00000000 0x00000000
GPP_G7 (0x6D,0x3E) 0x42800102 0x0000006f 0x00000000 0x00000000
GPP_H0 (0x6D,0x40) 0x44000102 0x00000070 0x00000000 0x00000000
GPP_H1 (0x6D,0x42) 0x44000200 0x00000071 0x00000000 0x00000000
GPP_H2 (0x6D,0x44) 0x44000100 0x00000072 0x00000000 0x00000000
GPP_H3 (0x6D,0x46) 0x44000702 0x00000073 0x00000000 0x00000000
GPP_H4 (0x6D,0x48) 0x44000700 0x00000074 0x00000000 0x00000000
GPP_H5 (0x6D,0x4A) 0x44000702 0x00000075 0x00000000 0x00000000
GPP_H6 (0x6D,0x4C) 0x44000300 0x00000076 0x00000000 0x00000000
GPP_H7 (0x6D,0x4E) 0x44000700 0x00000077 0x00000000 0x00000000
GPP_H8 (0x6D,0x50) 0x44000700 0x00000018 0x00000000 0x00000000
GPP_H9 (0x6D,0x52) 0x44000702 0x00000019 0x00000000 0x00000000
GPP_H10 (0x6D,0x54) 0x44000502 0x00000020 0x00000000 0x00000000
GPP_H11 (0x6D,0x56) 0x44000502 0x00000021 0x00000000 0x00000000
GPP_H12 (0x6D,0x58) 0x44000102 0x00000022 0x00000000 0x00000000
GPP_H13 (0x6D,0x5A) 0x44000502 0x00000023 0x00000000 0x00000000
GPP_H14 (0x6D,0x5C) 0x44000500 0x00000024 0x00000000 0x00000000
GPP_H15 (0x6D,0x5E) 0x44000102 0x00000025 0x00000800 0x00000000
GPP_H16 (0x6D,0x60) 0x44000102 0x00000026 0x00000000 0x00000000
GPP_H17 (0x6D,0x62) 0x44000201 0x00000027 0x00000000 0x00000000
GPP_H18 (0x6D,0x64) 0x44000102 0x00000028 0x00000000 0x00000000
GPP_H19 (0x6D,0x66) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_H20 (0x6D,0x68) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_H21 (0x6D,0x6A) 0x44000201 0x0000002b 0x00000000 0x00000000
GPP_H22 (0x6D,0x6C) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_H23 (0x6D,0x6E) 0x44000102 0x0000002d 0x00000000 0x00000000
GPD0 (0x6C,0x00) 0x04000702 0x00003060 0x00000000 0x00000000
GPD1 (0x6C,0x02) 0x04000702 0x00003c61 0x00000000 0x00000000
GPD2 (0x6C,0x04) 0x42880102 0x00000062 0x00000000 0x00000000
GPD3 (0x6C,0x06) 0x04000702 0x00003063 0x00000010 0x00000000
GPD4 (0x6C,0x08) 0x04000600 0x00000064 0x00000000 0x00000000
GPD5 (0x6C,0x0A) 0x04000600 0x00000065 0x00000000 0x00000000
GPD6 (0x6C,0x0C) 0x04000600 0x00000066 0x00000000 0x00000000
GPD7 (0x6C,0x0E) 0x04000100 0x00000067 0x00000000 0x00000000
GPD8 (0x6C,0x10) 0x04000700 0x00000068 0x00000000 0x00000000
GPD9 (0x6C,0x12) 0x04000200 0x00000069 0x00000000 0x00000000
GPD10 (0x6C,0x14) 0x04000600 0x0000006a 0x00000000 0x00000000
GPD11 (0x6C,0x16) 0x44000200 0x0000006b 0x00000000 0x00000000
GPD12 (0x6C,0x18) 0x44000200 0x0000006c 0x00000000 0x00000000
GPP_A0 (0x6B,0x12) 0x44000700 0x00003018 0x00000000 0x00000000
GPP_A1 (0x6B,0x14) 0x44000702 0x00003019 0x00000000 0x00000000
GPP_A2 (0x6B,0x16) 0x44000700 0x00003020 0x00000000 0x00000000
GPP_A3 (0x6B,0x18) 0x44000700 0x00003021 0x00000000 0x00000000
GPP_A4 (0x6B,0x1A) 0x44000700 0x00003022 0x00000000 0x00000000
GPP_A5 (0x6B,0x1C) 0x44000700 0x00001023 0x00000000 0x00000000
GPP_A6 (0x6B,0x1E) 0x44000700 0x00000024 0x00000000 0x00000000
GPP_A7 (0x6B,0x20) 0x44000200 0x00000025 0x00000000 0x00000000
GPP_A8 (0x6B,0x22) 0x44000200 0x00000026 0x00000000 0x00000000
GPP_A9 (0x6B,0x24) 0x44000200 0x00000027 0x00000000 0x00000000
GPP_A10 (0x6B,0x26) 0x44000500 0x00000028 0x00000000 0x00000000
GPP_A11 (0x6B,0x28) 0x44000102 0x00003029 0x00000000 0x00000000
GPP_A12 (0x6B,0x2A) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_A13 (0x6B,0x2C) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_A14 (0x6B,0x2E) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_C0 (0x6B,0x32) 0x44000502 0x0000002d 0x00000000 0x00000000
GPP_C1 (0x6B,0x34) 0x44000502 0x0000002e 0x00000000 0x00000000
GPP_C2 (0x6B,0x36) 0x84000102 0x0000002f 0x00000800 0x00000000
GPP_C3 (0x6B,0x38) 0x44000200 0x00000030 0x00000000 0x00000000
GPP_C4 (0x6B,0x3A) 0x44000200 0x00000031 0x00000000 0x00000000
GPP_C5 (0x6B,0x3C) 0x44000502 0x00000032 0x00000000 0x00000000
GPP_C6 (0x6B,0x3E) 0x44000200 0x00000033 0x00000000 0x00000000
GPP_C7 (0x6B,0x40) 0x44000200 0x00000034 0x00000000 0x00000000
GPP_C8 (0x6B,0x42) 0x44000102 0x00000035 0x00000000 0x00000000
GPP_C9 (0x6B,0x44) 0x44000200 0x00000036 0x00000000 0x00000000
GPP_C10 (0x6B,0x46) 0x44000200 0x00000037 0x00000000 0x00000000
GPP_C11 (0x6B,0x48) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_C12 (0x6B,0x4A) 0x44000200 0x00000039 0x00000000 0x00000000
GPP_C13 (0x6B,0x4C) 0x44000200 0x0000003a 0x00000000 0x00000000
GPP_C14 (0x6B,0x4E) 0x44000200 0x0000003b 0x00000000 0x00000000
GPP_C15 (0x6B,0x50) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_C16 (0x6B,0x52) 0x44000502 0x0000003d 0x00000000 0x00000000
GPP_C17 (0x6B,0x54) 0x44000502 0x0000003e 0x00000000 0x00000000
GPP_C18 (0x6B,0x56) 0x44000502 0x0000003f 0x00000000 0x00000000
GPP_C19 (0x6B,0x58) 0x44000502 0x00000040 0x00000000 0x00000000
GPP_C20 (0x6B,0x5A) 0x44000102 0x00000041 0x00000000 0x00000000
GPP_C21 (0x6B,0x5C) 0x44000102 0x00000042 0x00000000 0x00000000
GPP_C22 (0x6B,0x5E) 0x44000200 0x00000043 0x00000000 0x00000000
GPP_C23 (0x6B,0x60) 0x44000200 0x00000044 0x00000000 0x00000000
GPP_S0 (0x6A,0x00) 0x44000200 0x01800030 0x00000000 0x00000000
GPP_S1 (0x6A,0x02) 0x44000200 0x01800031 0x00000000 0x00000000
GPP_S2 (0x6A,0x04) 0x44000200 0x01800032 0x00000000 0x00000000
GPP_S3 (0x6A,0x06) 0x44000200 0x01800033 0x00000000 0x00000000
GPP_S4 (0x6A,0x08) 0x44000200 0x01800034 0x00000000 0x00000000
GPP_S5 (0x6A,0x0A) 0x44000200 0x01800035 0x00000000 0x00000000
GPP_S6 (0x6A,0x0C) 0x44000200 0x01800036 0x00000000 0x00000000
GPP_S7 (0x6A,0x0E) 0x44000200 0x01800037 0x00000000 0x00000000
GPP_E0 (0x6A,0x10) 0x44000200 0x00000038 0x00000000 0x00000000
GPP_E1 (0x6A,0x12) 0x44000200 0x00000039 0x00000000 0x00000000
GPP_E2 (0x6A,0x14) 0x44000200 0x0000003a 0x00000000 0x00000000
GPP_E3 (0x6A,0x16) 0x44000200 0x0000003b 0x00000000 0x00000000
GPP_E4 (0x6A,0x18) 0x44000200 0x0000003c 0x00000000 0x00000000
GPP_E5 (0x6A,0x1A) 0x44000200 0x0000003d 0x00000000 0x00000000
GPP_E6 (0x6A,0x1C) 0x44000200 0x0000003e 0x00000000 0x00000000
GPP_E7 (0x6A,0x1E) 0x80100102 0x0000003f 0x00000000 0x00000000
GPP_E8 (0x6A,0x20) 0x44000500 0x00000040 0x00000000 0x00000000
GPP_E9 (0x6A,0x22) 0x44000300 0x00000041 0x00000800 0x00000000
GPP_E10 (0x6A,0x24) 0x44000300 0x00000042 0x00000800 0x00000000
GPP_E11 (0x6A,0x26) 0x44000300 0x00000043 0x00000800 0x00000000
GPP_E12 (0x6A,0x28) 0x44000300 0x00000044 0x00000000 0x00000000
GPP_E13 (0x6A,0x2A) 0x44000200 0x00000045 0x00000000 0x00000000
GPP_E14 (0x6A,0x2C) 0x44000200 0x00000046 0x00000000 0x00000000
GPP_E15 (0x6A,0x2E) 0x44000200 0x00000047 0x00000000 0x00000000
GPP_E16 (0x6A,0x30) 0x44000200 0x00000048 0x00000000 0x00000000
GPP_E17 (0x6A,0x32) 0x44000200 0x00000049 0x00000000 0x00000000
GPP_E18 (0x6A,0x34) 0x44000201 0x0000004a 0x00000000 0x00000000
GPP_E19 (0x6A,0x36) 0x44000200 0x0000004b 0x00000000 0x00000000
GPP_E20 (0x6A,0x38) 0x44000200 0x0000004c 0x00000000 0x00000000
GPP_E21 (0x6A,0x3A) 0x44000200 0x0000004d 0x00000000 0x00000000
GPP_K0 (0x6A,0x3E) 0x44000200 0x0000004e 0x00000000 0x00000000
GPP_K1 (0x6A,0x40) 0x44000200 0x00000050 0x00000000 0x00000000
GPP_K2 (0x6A,0x42) 0x44000200 0x00000051 0x00000000 0x00000000
GPP_K3 (0x6A,0x44) 0x44000200 0x00000052 0x00000000 0x00000000
GPP_K4 (0x6A,0x46) 0x44000200 0x00000053 0x00000000 0x00000000
GPP_K5 (0x6A,0x48) 0x44000200 0x00000054 0x00000000 0x00000000
GPP_K6 (0x6A,0x4A) 0x44000a02 0x00000055 0x00000000 0x00000000
GPP_K7 (0x6A,0x4C) 0x44000a02 0x00000056 0x00000000 0x00000000
GPP_K8 (0x6A,0x4E) 0x44000700 0x00000057 0x00000000 0x00000000
GPP_K9 (0x6A,0x50) 0x44000700 0x00000058 0x00000000 0x00000000
GPP_K10 (0x6A,0x52) 0x44000a02 0x00000059 0x00000000 0x00000000
GPP_K11 (0x6A,0x54) 0x44000200 0x0000005a 0x00000000 0x00000000
GPP_F0 (0x6A,0x5C) 0x44000200 0x0000005b 0x00000000 0x00000000
GPP_F1 (0x6A,0x5E) 0x44000200 0x0000005c 0x00000000 0x00000000
GPP_F2 (0x6A,0x60) 0x44000200 0x0000005d 0x00000000 0x00000000
GPP_F3 (0x6A,0x62) 0x44000200 0x0000005e 0x00000000 0x00000000
GPP_F4 (0x6A,0x64) 0x44000200 0x00000060 0x00000000 0x00000000
GPP_F5 (0x6A,0x66) 0x84000200 0x00000061 0x00000000 0x00000000
GPP_F6 (0x6A,0x68) 0x44000200 0x00000062 0x00000000 0x00000000
GPP_F7 (0x6A,0x6A) 0x44000200 0x00000063 0x00000000 0x00000000
GPP_F8 (0x6A,0x6C) 0x44000100 0x00000064 0x00000000 0x00000000
GPP_F9 (0x6A,0x6E) 0x42880102 0x00000065 0x00000000 0x00000000
GPP_F10 (0x6A,0x70) 0x44000200 0x00000066 0x00000000 0x00000000
GPP_F11 (0x6A,0x72) 0x44000200 0x00000067 0x00000000 0x00000000
GPP_F12 (0x6A,0x74) 0x44000200 0x00000068 0x00000000 0x00000000
GPP_F13 (0x6A,0x76) 0x44000200 0x00000069 0x00000000 0x00000000
GPP_F14 (0x6A,0x78) 0x44000200 0x0000006a 0x00000000 0x00000000
GPP_F15 (0x6A,0x7A) 0x44000100 0x0000006b 0x00000000 0x00000000
GPP_F16 (0x6A,0x7C) 0x44000200 0x0000006c 0x00000000 0x00000000
GPP_F17 (0x6A,0x7E) 0x44000200 0x0000006d 0x00000000 0x00000000
GPP_F18 (0x6A,0x80) 0x44000200 0x0000006e 0x00000000 0x00000000
GPP_F19 (0x6A,0x82) 0x44000700 0x0000006f 0x00000000 0x00000000
GPP_F20 (0x6A,0x84) 0x44000700 0x00000070 0x00000000 0x00000000
GPP_F21 (0x6A,0x86) 0x44000700 0x00000071 0x00000000 0x00000000
GPP_F22 (0x6A,0x88) 0x44000201 0x00000072 0x00000000 0x00000000
GPP_F23 (0x6A,0x8A) 0x44000200 0x00000073 0x00000000 0x00000000
GPP_D0 (0x69,0x20) 0x44000200 0x00000026 0x00000000 0x00000000
GPP_D1 (0x69,0x22) 0x44000200 0x00000027 0x00000000 0x00000000
GPP_D2 (0x69,0x24) 0x44000200 0x00000028 0x00000000 0x00000000
GPP_D3 (0x69,0x26) 0x44000200 0x00000029 0x00000000 0x00000000
GPP_D4 (0x69,0x28) 0x44000200 0x0000002a 0x00000000 0x00000000
GPP_D5 (0x69,0x2A) 0x44000200 0x0000002b 0x00000000 0x00000000
GPP_D6 (0x69,0x2C) 0x44000200 0x0000002c 0x00000000 0x00000000
GPP_D7 (0x69,0x2E) 0x44000200 0x0000002d 0x00000000 0x00000000
GPP_D8 (0x69,0x30) 0x40000300 0x00000000 0x00000000 0x00000000
GPP_D9 (0x69,0x32) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D10 (0x69,0x34) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D11 (0x69,0x36) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D12 (0x69,0x38) 0x40000702 0x00003c00 0x00000000 0x00000000
GPP_D13 (0x69,0x3A) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D14 (0x69,0x3C) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D15 (0x69,0x3E) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D16 (0x69,0x40) 0x40000700 0x00003c00 0x00000800 0x00000000
GPP_D17 (0x69,0x42) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D18 (0x69,0x44) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D19 (0x69,0x46) 0x40000700 0x00003c00 0x00000000 0x00000000
GPP_D20 (0x69,0x48) 0x40000700 0x00000000 0x00000000 0x00000000
GPP_D21 (0x69,0x4A) 0x40000700 0x00000000 0x00000000 0x00000000
GPP_D22 (0x69,0x4C) 0x40000702 0x00000000 0x00000000 0x00000000
GPP_D23 (0x69,0x4E) 0x40000700 0x00000000 0x00000000 0x00000000
## HDAUDIO ##
hdaudioC0D0
vendor_name: Realtek
chip_name: ALC1220
vendor_id: 0x10ec1220
subsystem_id: 0x15583702
revision_id: 0x100101
0x12: 0x90a60130
0x14: 0x0421101f
0x15: 0x40000000
0x16: 0x411111f0
0x17: 0x411111f0
0x18: 0x04a11040
0x19: 0x411111f0
0x1a: 0x411111f0
0x1b: 0x90170110
0x1d: 0x40b7952d
0x1e: 0x04451150
hdaudioC0D2
vendor_name: Intel
chip_name: Raptorlake HDMI
vendor_id: 0x80862818
subsystem_id: 0x80860101
revision_id: 0x100000
0x04: 0x18560010
0x06: 0x18560010
0x08: 0x18560010
0x0a: 0x18560010
0x0b: 0x18560010
0x0c: 0x18560010
0x0d: 0x18560010
0x0e: 0x18560010
0x0f: 0x18560010
hdaudioC1D0
vendor_name: Nvidia
chip_name: Generic HDMI
vendor_id: 0x10de00a5
subsystem_id: 0x10de0000
revision_id: 0x100100
0x04: 0x585600f0
0x05: 0x185600f0
0x06: 0x185600f0
0x07: 0x185600f0

View File

@ -0,0 +1,19 @@
CONFIG_VENDOR_SYSTEM76=y
CONFIG_BOARD_SYSTEM76_BONW15_B=y
CONFIG_CCACHE=y
CONFIG_CONSOLE_SERIAL=n
CONFIG_CPU_MICROCODE_CBFS_DEFAULT_BINS=y
CONFIG_HAVE_IFD_BIN=y
CONFIG_HAVE_ME_BIN=y
CONFIG_IFD_BIN_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/fd.rom"
CONFIG_ME_BIN_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/me.rom"
CONFIG_PAYLOAD_ELF=y
CONFIG_PAYLOAD_FILE="$(FIRMWARE_OPEN_UEFIPAYLOAD)"
CONFIG_PCIEXP_HOTPLUG_MEM=0x6000000
CONFIG_PCIEXP_HOTPLUG_PREFETCH_MEM=0x400000000
CONFIG_POST_IO=n
CONFIG_SMMSTORE=y
CONFIG_SMMSTORE_V2=y
CONFIG_USE_OPTION_TABLE=y
CONFIG_VALIDATE_INTEL_DESCRIPTOR=y
#CONFIG_CONSOLE_SYSTEM76_EC=y

View File

@ -0,0 +1 @@
BOARD=system76/bonw15-b

89
models/bonw15-b/ecspy.txt Normal file
View File

@ -0,0 +1,89 @@
id 5570 rev 6
A0: data 1 mirror 1 pot 0 control 80
A1: data 0 mirror 0 pot 0 control 00
A2: data 1 mirror 0 pot 0 control 00
A3: data 0 mirror 0 pot 0 control 00
A4: data 0 mirror 1 pot 0 control 00
A5: data 0 mirror 0 pot 0 control 00
A6: data 0 mirror 0 pot 0 control 00
A7: data 0 mirror 0 pot 0 control 00
B0: data 0 mirror 0 pot 0 control 84
B1: data 1 mirror 1 pot 0 control 84
B2: data 1 mirror 1 pot 0 control 84
B3: data 1 mirror 1 pot 0 control 80
B4: data 1 mirror 1 pot 0 control 40
B5: data 1 mirror 1 pot 0 control 40
B6: data 1 mirror 1 pot 0 control 44
B7: data 1 mirror 1 pot 0 control 80
C0: data 1 mirror 1 pot 0 control 80
C1: data 1 mirror 1 pot 0 control 04
C2: data 1 mirror 1 pot 0 control 04
C3: data 0 mirror 0 pot 0 control 04
C4: data 0 mirror 0 pot 0 control 84
C5: data 0 mirror 0 pot 0 control 04
C6: data 1 mirror 1 pot 0 control 40
C7: data 1 mirror 1 pot 0 control 44
D0: data 1 mirror 1 pot 0 control 40
D1: data 1 mirror 1 pot 0 control 44
D2: data 1 mirror 1 pot 0 control 00
D3: data 0 mirror 0 pot 0 control 40
D4: data 0 mirror 0 pot 0 control 40
D5: data 1 mirror 1 pot 0 control 44
D6: data 0 mirror 0 pot 0 control 02
D7: data 1 mirror 1 pot 0 control 02
E0: data 1 mirror 1 pot 0 control 04
E1: data 1 mirror 1 pot 0 control 44
E2: data 1 mirror 1 pot 0 control 84
E3: data 1 mirror 1 pot 0 control 40
E4: data 1 mirror 1 pot 0 control 42
E5: data 1 mirror 1 pot 0 control 40
E6: data 0 mirror 0 pot 0 control 80
E7: data 1 mirror 1 pot 0 control 04
F0: data 0 mirror 0 pot 0 control 44
F1: data 1 mirror 1 pot 0 control 44
F2: data 1 mirror 1 pot 0 control 44
F3: data 1 mirror 1 pot 0 control 40
F4: data 1 mirror 1 pot 0 control 04
F5: data 1 mirror 1 pot 0 control 04
F6: data 1 mirror 1 pot 0 control 40
F7: data 1 mirror 1 pot 0 control 80
G0: data 1 mirror 1 pot 0 control 80
G1: data 1 mirror 1 pot 0 control 40
G2: data 1 mirror 1 pot 0 control 80
G3: data 0 mirror 0 pot 0 control 00
G4: data 0 mirror 0 pot 0 control 00
G5: data 0 mirror 0 pot 0 control 00
G6: data 0 mirror 0 pot 0 control 44
G7: data 0 mirror 0 pot 0 control 00
H0: data 0 mirror 0 pot 0 control 80
H1: data 1 mirror 1 pot 0 control 80
H2: data 0 mirror 0 pot 0 control 44
H3: data 1 mirror 1 pot 0 control 80
H4: data 0 mirror 0 pot 0 control 80
H5: data 0 mirror 0 pot 0 control 44
H6: data 1 mirror 1 pot 0 control 40
H7: data 1 mirror 1 pot 0 control 80
I0: data 0 mirror 0 pot 0 control 00
I1: data 0 mirror 0 pot 0 control 00
I2: data 0 mirror 0 pot 0 control 80
I3: data 0 mirror 0 pot 0 control 00
I4: data 0 mirror 0 pot 0 control 00
I5: data 1 mirror 1 pot 0 control 40
I6: data 0 mirror 0 pot 0 control 00
I7: data 0 mirror 0 pot 0 control 00
J0: data 1 mirror 1 pot 0 control 44
J1: data 1 mirror 1 pot 0 control 40
J2: data 1 mirror 1 pot 0 control 80
J3: data 0 mirror 0 pot 0 control 80
J4: data 1 mirror 1 pot 0 control 40
J5: data 1 mirror 1 pot 0 control 80
J6: data 0 mirror 0 pot 0 control 44
J7: data 0 mirror 0 pot 0 control 84
M0: data 0 mirror 0 control 06
M1: data 0 mirror 0 control 06
M2: data 1 mirror 1 control 06
M3: data 1 mirror 1 control 06
M4: data 0 mirror 1 control 06
M5: data 0 mirror 0 control 00
M6: data 0 mirror 0 control 86
M7: data 0 mirror 0 control 00

View File

@ -0,0 +1,9 @@
BOOTLOADER=COREBOOT
DISABLE_SERIAL_TERMINAL=TRUE
PLATFORM_BOOT_TIMEOUT=2
PS2_KEYBOARD_ENABLE=TRUE
SECURE_BOOT_ENABLE=TRUE
SERIAL_DRIVER_ENABLE=FALSE
SHELL_TYPE=NONE
TPM_ENABLE=TRUE
#SYSTEM76_EC_LOGGING=TRUE

BIN
models/bonw15-b/fd.rom (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/bonw15-b/me.rom (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/bonw15-b/vbt.rom (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
../addw3/AlderLakeFspBinPkg

View File

@ -17,10 +17,3 @@ CONFIG_SMMSTORE_V2=y
CONFIG_USE_OPTION_TABLE=y
CONFIG_VALIDATE_INTEL_DESCRIPTOR=y
#CONFIG_CONSOLE_SYSTEM76_EC=y
# Custom FSP
CONFIG_ADD_FSP_BINARIES=y
CONFIG_FSP_FD_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/AlderLakeFspBinPkg/Fsp.fd"
CONFIG_FSP_FULL_FD=y
CONFIG_FSP_HEADER_PATH="$(FIRMWARE_OPEN_MODEL_DIR)/AlderLakeFspBinPkg/Include"
CONFIG_FSP_USE_REPO=n

Some files were not shown because too many files have changed in this diff Show More