coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
platform_descriptors.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef AMD_PICASSO_PLATFORM_DESCRIPTORS_H
4 #define AMD_PICASSO_PLATFORM_DESCRIPTORS_H
5 
6 #include <types.h>
7 #include <platform_descriptors.h>
8 #include <FspsUpd.h>
9 
10 /* These temporary macros apply to emmc0_mode field in FSP_S_CONFIG.
11  * TODO: Remove when official definitions arrive. */
12 #define SD_DISABLE 0
13 #define SD_LOW_SPEED 1
14 #define SD_HIGH_SPEED 2
15 #define SD_UHS_I_SDR_50 3
16 #define SD_UHS_I_DDR_50 4
17 #define SD_UHS_I_SDR_104 5
18 #define EMMC_SDR_26 6
19 #define EMMC_SDR_52 7
20 #define EMMC_DDR_104 8
21 #define EMMC_HS200 9
22 #define EMMC_HS400 10
23 #define EMMC_HS300 11
24 
25 /* Mainboard callback to obtain DXI/PCIe and DDI descriptors. */
27  const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num,
28  const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num);
29 
30 #endif /* AMD_PICASSO_PLATFORM_DESCRIPTORS_H */
void mainboard_get_dxio_ddi_descriptors(const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num, const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)