mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / google / zork / variants / shuboz / variant.c
blob2a7bd4f8c459b3894ce367530c28cc2b437366b6
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>
6 #include <static.h>
8 uint32_t usb_oc_map_override[USB_PORT_COUNT] = {
9 USB_OC_PIN_0,
10 USB_OC_PIN_0,
11 USB_OC_NONE, //for camera
12 USB_OC_PIN_1,
13 USB_OC_NONE,
14 USB_OC_NONE
17 static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
18 { // DDI0, DP0, eDP
19 .connector_type = EDP,
20 .aux_index = AUX1,
21 .hdp_index = HDP1
23 { // DDI1, DP1, DB OPT2 USB-C1 / DB OPT3 MST hub
24 .connector_type = DP,
25 .aux_index = AUX2,
26 .hdp_index = HDP2
28 { // DDI2, DP3, USB-C0
29 .connector_type = DP,
30 .aux_index = AUX4,
31 .hdp_index = HDP4,
35 void variant_get_dxio_ddi_descriptors(const fsp_dxio_descriptor **dxio_descs,
36 size_t *dxio_num,
37 const fsp_ddi_descriptor **ddi_descs,
38 size_t *ddi_num)
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();
50 uint8_t i;
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];