coreboot/src
Jianjun Wang 270b0b60ac soc/mediatek: Add PCIe support
Add PCIe support for MediaTek platform.

Reference:
  - MT8195 Register Map V0.3-2, Chapter 3.18 PCIe controller (Page 1250)
  - linux/drivers/pci/controller/pcie-mediatek-gen3.c

This code is based on MT8195 platform, but it should be common in each
platform with the same PCIe IP in the future.

TEST=Build pass and boot up to kernel successfully via SSD on Dojo
board, here is the SSD information in boot log:
 == NVME IDENTIFY CONTROLLER DATA ==
    PCI VID   : 0x15b7
    PCI SSVID : 0x15b7
    SN        : 21517J440114
    MN        : WDC PC SN530 SDBPTPZ-256G-1006
    RAB       : 0x4
    AERL      : 0x7
    SQES      : 0x66
    CQES      : 0x44
    NN        : 0x1
Identified NVMe model WDC PC SN530 SDBPTPZ-256G-1006

BUG=b:178565024

Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Change-Id: Ib9b6adaafa20aeee136372ec9564273f86776da0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56791
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2022-03-09 00:48:01 +00:00
..
acpi device/mmio.h: Move readXp/writeXp helpers to device/mmio.h 2022-03-08 08:25:36 +00:00
arch timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
commonlib timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
console console: Fix LOG_FAST macro 2022-02-22 23:13:50 +00:00
cpu timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
device src: Make PCI ID define names shorter 2022-03-07 08:32:09 +00:00
drivers timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
ec ec/starlabs: Guard Max Charge in Kconfig 2022-03-08 16:07:11 +00:00
include device/mmio.h: Move readXp/writeXp helpers to device/mmio.h 2022-03-08 08:25:36 +00:00
lib timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
mainboard ec/starlabs: Guard Max Charge in Kconfig 2022-03-08 16:07:11 +00:00
northbridge timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
security timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
soc soc/mediatek: Add PCIe support 2022-03-09 00:48:01 +00:00
southbridge timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
superio Use the fallthrough statement in switch loops 2022-02-16 21:29:53 +00:00
vendorcode timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
Kconfig src/Kconfig: Update the path to 'c_start.S' for GDB_STUB config 2022-02-22 20:49:10 +00:00