2018-06-18 13:23:27 +02:00
|
|
|
# Cavium's BDK
|
|
|
|
|
|
|
|
## BDK
|
2018-10-22 10:55:34 +02:00
|
|
|
A part of Cavium's BDK can be found in `src/vendorcode/cavium/bdk`.
|
2018-06-18 13:23:27 +02:00
|
|
|
It does the **DRAM init** in romstage and the **PCIe**, **QLM**, **SLI**,
|
|
|
|
**PHY**, **BGX**, **SATA** init in ramstage.
|
|
|
|
|
|
|
|
## Devicetree
|
|
|
|
The BDK does use it's own devicetree, as coreboot's devicetree isn't
|
|
|
|
compatible. The devicetree stores key-value pairs (see **bdk-devicetree.h**
|
|
|
|
for implementation details), where the key and the value are stored as strings.
|
|
|
|
|
|
|
|
The key-value pairs must be advertised in romstage and ramstage using the
|
2018-10-22 10:55:34 +02:00
|
|
|
`bdk_config_set_fdt()` method.
|
2018-06-18 13:23:27 +02:00
|
|
|
|
2018-10-22 10:55:34 +02:00
|
|
|
The tool `util/cavium/devicetree_convert.py` can be used to convert a
|
2018-06-18 13:23:27 +02:00
|
|
|
devicetree to a key-value array.
|
|
|
|
|
|
|
|
## Modifications
|
|
|
|
|
|
|
|
* The BDK has been modified to compile under coreboot's toolchain.
|
|
|
|
* Removed FDT devicetree support.
|
|
|
|
* Dropped files that aren't required for SoC bringup
|
|
|
|
* Added Kconfig values for verbose console output
|
|
|
|
|
|
|
|
## Debugging
|
|
|
|
|
|
|
|
You can enable verbose console output in *menuconfig*:
|
|
|
|
|
|
|
|
Go to **Chipset**, **BDK** and enable one or multiple stages.
|