coreboot-kgpe-d16/src/lib
Nick Vaccaro a62b41819c coreboot tables: Add type-c port info to coreboot table
This change adds type-c port information for USB Type-C ports to the
coreboot table.  This allows depthcharge to know the usb2 and usb3
port number assignments for each available port, as well as the SBU
and data line orientation for the board.

BUG=b:149830546
TEST='emerge-volteer coreboot chromeos-bootimage' and verify it builds
successfully.  Cherry-pick CL to enable this feature for volteer,
flash and boot volteer2 to kernel, log in and check cbmem for type-c
info exported to the payload:
  localhost ~ # cbmem -c | grep type-c
  added type-c port0 info to cbmem: usb2:9 usb3:1 sbu:0 data:0
  added type-c port1 info to cbmem: usb2:4 usb3:2 sbu:1 data:0

Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Change-Id: Ice732be2fa634dbf31ec620552b383c4a5b41451
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57069
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2021-10-04 17:12:48 +00:00
..
gnat lib/gnat/i-c.ads: Add uintptr_t type 2020-11-16 12:13:31 +00:00
asan.c lib/asan.c: Update SPDX license 2021-02-01 08:53:22 +00:00
b64_decode.c
bmp_logo.c drivers/intel/fsp1_1,fsp2_0: Refactor logo display 2021-02-09 07:52:31 +00:00
boot_device.c
bootblock.c security/tpm: Add option to init TPM in bootblock 2021-05-06 08:26:41 +00:00
bootmem.c
bootmode.c
bootsplash.c cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
cb.ads
cbfs.c lib/cbfs,device/pci_rom: Move cbfs_boot_map_optionrom and modernize 2021-07-20 16:51:25 +00:00
cbmem_common.c
cbmem_console.c cbmem: Introduce "early" init hooks for console 2021-05-27 23:30:42 +00:00
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c coreboot tables: Add type-c port info to coreboot table 2021-10-04 17:12:48 +00:00
crc_byte.c
decompressor.c decompressor: Add CBFS_VERIFICATION support 2021-04-06 07:49:15 +00:00
delay.c
device_tree.c lib/device_tree.c: Remove repeated word 2021-01-18 07:38:49 +00:00
dimm_info_util.c
edid.c
edid_fill_fb.c lib/edid_fill_fb: Relax bits_per_pixel constraint 2021-01-24 11:18:23 +00:00
espi_debug.c lib/espi_debug: Add espi_show_slave_peripheral_channel_configuration 2021-04-23 21:20:26 +00:00
ext_stage_cache.c
fallback_boot.c
fit.c
fit_payload.c cbfs: Remove prog_locate() for payloads (SELF and FIT) 2021-03-17 00:13:53 +00:00
fmap.c commonlib/region: Turn addrspace_32bit into a more official API 2021-04-21 02:06:26 +00:00
fw_config.c fw_config: Add helper function fw_config_probe_dev 2021-05-24 16:55:27 +00:00
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
gpio.c
halt.c
hardwaremain.c lib/hardwaremain: change type of "complete" element in boot_state struct 2021-10-04 15:58:32 +00:00
hexdump.c lib/hexdump: remove hexdump32 and use hexdump instead 2021-05-27 15:41:15 +00:00
hexstrtobin.c
hw-time-timer.adb
imd.c
imd_cbmem.c
jpeg.c
jpeg.h
Kconfig lib/prog_loaders: Add payload_preload 2021-07-19 02:42:43 +00:00
Kconfig.cbfs_verification decompressor: Add CBFS_VERIFICATION support 2021-04-06 07:49:15 +00:00
libgcc.c
libgcov.c
list.c
lzma.c
lzmadecode.c
lzmadecode.h
Makefile.inc lib/Makefile.inc: Generate placeholder spd.bin in lib/Makefile.inc 2021-09-23 06:20:59 +00:00
malloc.c lib: Add obvious definition for calloc 2021-04-06 06:50:38 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
metadata_hash.c src: Drop "This file is part of the coreboot project" lines 2021-05-10 15:07:33 +00:00
nhlt.c cbfs: Replace more instances of cbfs_boot_locate() with newer APIs 2021-03-17 08:10:20 +00:00
primitive_memtest.c
prog_loaders.c lib/prog_loaders: Add payload_preload 2021-07-19 02:42:43 +00:00
prog_ops.c
program.ld cbmem: Introduce "early" init hooks for console 2021-05-27 23:30:42 +00:00
ramdetect.c
ramtest.c src: Remove useless comments in "includes" lines 2021-02-04 10:18:49 +00:00
reg_script.c lib/reg_script: Add cast to fix compilation on x86_64 2020-12-01 16:00:57 +00:00
region_file.c
reset.c
rmodule.c cbfs: Make mdata argument to cbfs_allocator_t const 2021-04-05 22:59:02 +00:00
rmodule.ld
romstage_handoff.c ACPI S3: Replace stashed acpi_slp_typ value 2021-01-23 20:19:47 +00:00
rtc.c lib/rtc: Add sanity check for time and date 2021-05-30 20:24:13 +00:00
selfboot.c selfboot: Add support for selfload in romstage 2021-07-02 00:47:23 +00:00
spd_bin.c spd_bin: Replace get_spd_cbfs_rdev() with spd_cbfs_map() 2021-03-17 08:10:35 +00:00
spd_cache.c
stack.c
string.c
thread.c lib/thread,lib/hardwaremain: Lazy initialize threads 2021-07-26 07:28:33 +00:00
timer.c
timer_queue.c
timestamp.c
ubsan.c
uuid.c
version.c
wrdd.c