1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <soc/amd/picasso/chip.h>
5 #include <soc/pci_devs.h>
8 uint32_t usb_oc_map_override
[USB_PORT_COUNT
] = {
11 USB_OC_NONE
, //for camera
17 static const fsp_ddi_descriptor hdmi_ddi_descriptors
[] = {
19 .connector_type
= EDP
,
23 { // DDI1, DP1, DB OPT2 USB-C1 / DB OPT3 MST hub
28 { // DDI2, DP3, USB-C0
35 void variant_get_dxio_ddi_descriptors(const fsp_dxio_descriptor
**dxio_descs
,
37 const fsp_ddi_descriptor
**ddi_descs
,
40 *dxio_descs
= baseboard_get_dxio_descriptors(dxio_num
);
42 *ddi_descs
= &hdmi_ddi_descriptors
[0];
43 *ddi_num
= ARRAY_SIZE(hdmi_ddi_descriptors
);
46 void variant_devtree_update(void)
48 struct soc_amd_picasso_config
*soc_cfg
;
49 soc_cfg
= config_of_soc();
53 For convertible SKU, it will support additional camera on USB1,
54 so we need the different OC map to support.
56 if (variant_is_convertible()) {
57 for (i
= 0; i
< USB_PORT_COUNT
; i
++)
58 soc_cfg
->usb_port_overcurrent_pin
[i
] = usb_oc_map_override
[i
];