blob: 7797c3e44d44862c6821c94e6443c0c24c3422f2 [file] [log] [blame]
Ritul Guru286c2f62021-02-05 23:53:28 +05301# SPDX-License-Identifier: GPL-2.0-only
2
3chip soc/amd/picasso
Karthikeyan Ramasubramanian4520aa22021-04-23 11:42:19 -06004 # ACP Configuration
5 register "common_config.acp_config.acp_pin_cfg" = "I2S_PINS_MAX_HDA"
Ritul Guru286c2f62021-02-05 23:53:28 +05306
7 # Set FADT Configuration
8 register "common_config.fadt_boot_arch" = "ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042"
9 register "common_config.fadt_flags" = "ACPI_FADT_SLEEP_BUTTON" # See table 5-34 ACPI 6.3 spec
10
11 register "emmc_config" = "{
12 .timing = SD_EMMC_DISABLE,
13 }"
14
15 register "has_usb2_phy_tune_params" = "1"
16
17 # Controller0 Port0 Default
18 register "usb_2_port_tune_params[0]" = "{
19 .com_pds_tune = 0x03,
20 .sq_rx_tune = 0x3,
21 .tx_fsls_tune = 0x3,
22 .tx_pre_emp_amp_tune = 0x03,
23 .tx_pre_emp_pulse_tune = 0x0,
24 .tx_rise_tune = 0x1,
25 .tx_vref_tune = 0x6,
26 .tx_hsxv_tune = 0x3,
27 .tx_res_tune = 0x01,
28 }"
29
30 # Controller0 Port1 Default
31 register "usb_2_port_tune_params[1]" = "{
32 .com_pds_tune = 0x03,
33 .sq_rx_tune = 0x3,
34 .tx_fsls_tune = 0x3,
35 .tx_pre_emp_amp_tune = 0x03,
36 .tx_pre_emp_pulse_tune = 0x0,
37 .tx_rise_tune = 0x1,
38 .tx_vref_tune = 0x6,
39 .tx_hsxv_tune = 0x3,
40 .tx_res_tune = 0x01,
41 }"
42
43 # Controller0 Port2 Default
44 register "usb_2_port_tune_params[2]" = "{
45 .com_pds_tune = 0x03,
46 .sq_rx_tune = 0x3,
47 .tx_fsls_tune = 0x3,
48 .tx_pre_emp_amp_tune = 0x03,
49 .tx_pre_emp_pulse_tune = 0x0,
50 .tx_rise_tune = 0x1,
51 .tx_vref_tune = 0x6,
52 .tx_hsxv_tune = 0x3,
53 .tx_res_tune = 0x01,
54 }"
55
56 # Controller0 Port3 Default
57 register "usb_2_port_tune_params[3]" = "{
58 .com_pds_tune = 0x03,
59 .sq_rx_tune = 0x3,
60 .tx_fsls_tune = 0x3,
61 .tx_pre_emp_amp_tune = 0x03,
62 .tx_pre_emp_pulse_tune = 0x0,
63 .tx_rise_tune = 0x1,
64 .tx_vref_tune = 0x6,
65 .tx_hsxv_tune = 0x3,
66 .tx_res_tune = 0x01,
67 }"
68
69 # Controller0 Port4 Default
70 register "usb_2_port_tune_params[4]" = "{
71 .com_pds_tune = 0x03,
72 .sq_rx_tune = 0x3,
73 .tx_fsls_tune = 0x3,
74 .tx_pre_emp_amp_tune = 0x02,
75 .tx_pre_emp_pulse_tune = 0x0,
76 .tx_rise_tune = 0x1,
77 .tx_vref_tune = 0x5,
78 .tx_hsxv_tune = 0x3,
79 .tx_res_tune = 0x01,
80 }"
81
82 # Controller0 Port5 Default
83 register "usb_2_port_tune_params[5]" = "{
84 .com_pds_tune = 0x03,
85 .sq_rx_tune = 0x3,
86 .tx_fsls_tune = 0x3,
87 .tx_pre_emp_amp_tune = 0x02,
88 .tx_pre_emp_pulse_tune = 0x0,
89 .tx_rise_tune = 0x1,
90 .tx_vref_tune = 0x5,
91 .tx_hsxv_tune = 0x3,
92 .tx_res_tune = 0x01,
93 }"
94
95 # USB OC pin mapping; all ports share one OC pin
96 register "usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0"
97 register "usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0"
98 register "usb_port_overcurrent_pin[2]" = "USB_OC_PIN_0"
99 register "usb_port_overcurrent_pin[3]" = "USB_OC_PIN_0"
100 register "usb_port_overcurrent_pin[4]" = "USB_OC_PIN_0"
101 register "usb_port_overcurrent_pin[5]" = "USB_OC_PIN_0"
102
103 # SPI Configuration
104 register "common_config.spi_config" = "{
105 .normal_speed = SPI_SPEED_33M, /* MHz */
106 .fast_speed = SPI_SPEED_66M, /* MHz */
107 .altio_speed = SPI_SPEED_33M, /* MHz */
108 .tpm_speed = SPI_SPEED_33M, /* MHz */
109 .read_mode = SPI_READ_MODE_QUAD114,
110 }"
111
112 # eSPI Configuration
113 register "common_config.espi_config" = "{
114 .std_io_decode_bitmap = ESPI_DECODE_IO_0X60_0X64_EN,
115 .generic_io_range[0] = {
116 .base = 0x662,
117 .size = 8,
118 },
119
120 .io_mode = ESPI_IO_MODE_SINGLE,
121 .op_freq_mhz = ESPI_OP_FREQ_33_MHZ,
122 .crc_check_enable = 1,
Raul E Rangel8317e722021-05-05 13:38:27 -0600123 .alert_pin = ESPI_ALERT_PIN_PUSH_PULL,
Ritul Guru286c2f62021-02-05 23:53:28 +0530124 .periph_ch_en = 0,
125 .vw_ch_en = 0,
126 .oob_ch_en = 0,
127 .flash_ch_en = 0,
128 }"
129
130 # genral purpose PCIe clock output configuration
131 register "gpp_clk_config[0]" = "GPP_CLK_REQ"
132 register "gpp_clk_config[1]" = "GPP_CLK_REQ"
133 register "gpp_clk_config[2]" = "GPP_CLK_REQ"
Ritul Gurucb4cae92021-03-22 00:47:27 +0530134 register "gpp_clk_config[3]" = "GPP_CLK_REQ"
Ritul Guru286c2f62021-02-05 23:53:28 +0530135 register "gpp_clk_config[4]" = "GPP_CLK_REQ"
Ritul Gurucb4cae92021-03-22 00:47:27 +0530136 register "gpp_clk_config[5]" = "GPP_CLK_REQ"
137 register "gpp_clk_config[6]" = "GPP_CLK_REQ"
Ritul Guru286c2f62021-02-05 23:53:28 +0530138
Felix Held0fec8672021-05-25 21:07:23 +0200139 register "pspp_policy" = "DXIO_PSPP_POWERSAVE"
140
Ritul Guru286c2f62021-02-05 23:53:28 +0530141 device cpu_cluster 0 on
142 device lapic 0 on end
143 end
144 device domain 0 on
145 subsystemid 0x1022 0x1510 inherit
146 device pci 0.0 on end # Root Complex
147 device pci 0.2 on end # IOMMU
148 device pci 1.0 on end # Dummy Host Bridge
Ritul Gurucb4cae92021-03-22 00:47:27 +0530149 device pci 1.1 on end # GPP Bridge 0
150 device pci 1.2 on end # GPP Bridge 1
151 device pci 1.5 on end # NVMe
Ritul Guru286c2f62021-02-05 23:53:28 +0530152 device pci 8.0 on end # Dummy Host Bridge
153 device pci 8.1 on # Bridge to Bus A
154 device pci 0.0 on end # Internal GPU
155 device pci 0.1 on end # Display HDA
156 device pci 0.2 on end # Crypto Coprocessor
157 device pci 0.3 on end # USB 3.1
158 device pci 0.4 off end # USB 3.1
159 device pci 0.5 on end # Audio
160 device pci 0.6 on end # HDA
161 device pci 0.7 on end # non-Sensor Fusion Hub device
162 end
163 device pci 8.2 on # Bridge to Bus B
164 device pci 0.0 off end # AHCI
165 device pci 0.1 off end # integrated Ethernet MAC
166 device pci 0.2 off end # integrated Ethernet MAC
167 end
168 device pci 14.0 on end # SMBus
169 device pci 14.3 on # D14F3 bridge
170 chip superio/smsc/sio1036 # optional debug card
171 end
172 end
173 device pci 14.6 off end # SDHCI
174 device pci 18.0 on end # Data fabric [0-7]
175 device pci 18.1 on end
176 device pci 18.2 on end
177 device pci 18.3 on end
178 device pci 18.4 on end
179 device pci 18.5 on end
180 device pci 18.6 on end
181 device pci 18.7 on end
182 end # domain
183
184 device mmio 0xfedc9000 on end # UART0
185 device mmio 0xfedca000 on end # UART1
186 device mmio 0xfedce000 off end # UART2
187 device mmio 0xfedcf000 off end # UART3
188
189end # chip soc/amd/picasso