Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | chip soc/amd/picasso |
| 3 | |
| 4 | # Set FADT Configuration |
| 5 | register "fadt_pm_profile" = "PM_MOBILE" |
| 6 | register "fadt_boot_arch" = "ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042" |
| 7 | register "fadt_flags" = "ACPI_FADT_WBINVD | /* See table 5-34 ACPI 6.3 spec */ |
| 8 | ACPI_FADT_C1_SUPPORTED | |
| 9 | ACPI_FADT_SLEEP_BUTTON | |
| 10 | ACPI_FADT_S4_RTC_WAKE | |
| 11 | ACPI_FADT_32BIT_TIMER | |
| 12 | ACPI_FADT_RESET_REGISTER | |
| 13 | ACPI_FADT_SEALED_CASE | |
| 14 | ACPI_FADT_PCI_EXPRESS_WAKE | |
| 15 | ACPI_FADT_REMOTE_POWER_ON" |
| 16 | |
| 17 | register "acp_pin_cfg" = "I2S_PINS_I2S_TDM" |
| 18 | |
| 19 | # Start : OPN Performance Configuration |
| 20 | # (Configuratin that is common for all variants) |
| 21 | # For the below fields, 0 indicates use SOC default |
| 22 | |
| 23 | # PROCHOT_L de-assertion Ramp Time |
| 24 | register "prochot_l_deassertion_ramp_time" = "20" #mS |
| 25 | |
| 26 | # Lower die temperature limit |
| 27 | register "thermctl_limit" = "100" #degrees C |
| 28 | |
| 29 | # FP5 Processor Voltage Supply PSI Currents |
| 30 | register "psi0_current_limit" = "18000" #mA |
| 31 | register "psi0_soc_current_limit" = "12000" #mA |
| 32 | register "vddcr_soc_voltage_margin" = "0" #mV |
| 33 | register "vddcr_vdd_voltage_margin" = "0" #mV |
| 34 | |
| 35 | # VRM Limits |
| 36 | register "vrm_maximum_current_limit" = "0" #mA |
| 37 | register "vrm_soc_maximum_current_limit" = "0" #mA |
| 38 | register "vrm_current_limit" = "0" #mA |
| 39 | register "vrm_soc_current_limit" = "0" #mA |
| 40 | |
| 41 | # Misc SMU settings |
| 42 | register "sb_tsi_alert_comparator_mode_en" = "0" |
| 43 | register "core_dldo_bypass" = "1" |
| 44 | register "min_soc_vid_offset" = "0" |
| 45 | register "aclk_dpm0_freq_400MHz" = "0" |
| 46 | |
| 47 | # End : OPN Performance Configuration |
| 48 | |
| 49 | register "sd_emmc_config" = "SD_EMMC_EMMC_HS400" |
| 50 | |
| 51 | # SPI Configuration |
| 52 | register "common_config.spi_config" = "{ |
| 53 | .normal_speed = SPI_SPEED_66M, /* MHz */ |
| 54 | .fast_speed = SPI_SPEED_66M, /* MHz */ |
| 55 | .altio_speed = SPI_SPEED_66M, /* MHz */ |
| 56 | .tpm_speed = SPI_SPEED_66M, /* MHz */ |
| 57 | .read_mode = SPI_READ_MODE_DUAL112, |
| 58 | }" |
| 59 | |
| 60 | # eSPI Configuration |
| 61 | register "common_config.espi_config" = "{ |
| 62 | .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, |
| 63 | .generic_io_range[0] = { |
| 64 | .base = 0x62, |
| 65 | /* |
| 66 | * Only 0x62 and 0x66 are required. But, this is not supported by |
| 67 | * standard IO decodes and there are only 4 generic I/O windows |
| 68 | * available. Hence, open a window from 0x62-0x67. |
| 69 | */ |
| 70 | .size = 5, |
| 71 | }, |
| 72 | .generic_io_range[1] = { |
| 73 | .base = 0x800, /* EC_HOST_CMD_REGION0 */ |
| 74 | .size = 256, /* EC_HOST_CMD_REGION_SIZE * 2 */ |
| 75 | }, |
| 76 | .generic_io_range[2] = { |
| 77 | .base = 0x900, /* EC_LPC_ADDR_MEMMAP */ |
| 78 | .size = 255, /* EC_MEMMAP_SIZE */ |
| 79 | }, |
| 80 | .generic_io_range[3] = { |
| 81 | .base = 0x200, /* EC_LPC_ADDR_HOST_DATA */ |
| 82 | .size = 8, /* 0x200 - 0x207 */ |
| 83 | }, |
| 84 | |
| 85 | .io_mode = ESPI_IO_MODE_QUAD, |
| 86 | .op_freq_mhz = ESPI_OP_FREQ_33_MHZ, |
| 87 | .crc_check_enable = 1, |
| 88 | .dedicated_alert_pin = 1, |
| 89 | .periph_ch_en = 1, |
| 90 | .vw_ch_en = 1, |
| 91 | .oob_ch_en = 0, |
| 92 | .flash_ch_en = 0, |
| 93 | |
| 94 | .vw_irq_polarity = ESPI_VW_IRQ_LEVEL_LOW(1) | ESPI_VW_IRQ_LEVEL_LOW(12), |
| 95 | }" |
| 96 | |
| 97 | register "i2c_scl_reset" = "GPIO_I2C2_SCL | GPIO_I2C3_SCL" |
| 98 | |
| 99 | register "irq_override" = "{ |
| 100 | /* PS/2 keyboard IRQ1 override */ |
| 101 | {1, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_HIGH}, |
| 102 | |
| 103 | /* PS/2 mouse IRQ12 override */ |
| 104 | {12, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_HIGH}, |
| 105 | }" |
| 106 | |
| 107 | device cpu_cluster 0 on |
| 108 | device lapic 0 on end |
| 109 | end |
| 110 | |
| 111 | # See AMD 55570-B1 Table 13: PCI Device ID Assignments. |
| 112 | device domain 0 on |
| 113 | subsystemid 0x1022 0x1510 inherit |
| 114 | device pci 0.0 on end # Root Complex |
| 115 | device pci 0.2 on end # IOMMU |
| 116 | device pci 1.0 on end # Dummy Host Bridge, must be enabled |
| 117 | device pci 1.1 off end # GPP Bridge 0 |
| 118 | device pci 1.2 on end # GPP Bridge 1 - Wifi |
| 119 | device pci 1.3 on end # GPP Bridge 2 - SD |
| 120 | device pci 1.4 off end # GPP Bridge 3 |
| 121 | device pci 1.5 off end # GPP Bridge 4 |
| 122 | device pci 8.0 on end # Dummy Host Bridge, must be enabled |
| 123 | device pci 8.1 on # Internal GPP Bridge 0 to Bus A |
| 124 | device pci 0.0 on end # Internal GPU |
| 125 | device pci 0.1 on end # Display HDA |
| 126 | device pci 0.2 on end # Crypto Coprocesor |
| 127 | device pci 0.5 on end # Audio |
| 128 | device pci 0.6 on end # HDA |
| 129 | device pci 0.7 on end # non-Sensor Fusion Hub device |
| 130 | end |
| 131 | device pci 8.2 on # Internal GPP Bridge 0 to Bus B |
| 132 | device pci 0.0 on end # AHCI |
| 133 | end |
| 134 | device pci 14.0 on end # SM |
| 135 | device pci 14.3 on # - D14F3 bridge |
| 136 | chip ec/google/chromeec |
| 137 | device pnp 0c09.0 on |
| 138 | chip ec/google/chromeec/i2c_tunnel |
| 139 | register "uid" = "1" |
| 140 | register "remote_bus" = "8" |
| 141 | device generic 0.0 on |
| 142 | chip drivers/i2c/generic |
| 143 | register "hid" = ""10EC5682"" |
| 144 | register "name" = ""RT58"" |
| 145 | register "uid" = "1" |
| 146 | register "desc" = ""Realtek RT5682"" |
| 147 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(62)" |
| 148 | register "property_count" = "1" |
| 149 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 150 | register "property_list[0].name" = ""realtek,jd-src"" |
| 151 | register "property_list[0].integer" = "1" |
| 152 | device i2c 1a on end |
| 153 | end |
| 154 | end |
| 155 | end |
| 156 | chip ec/google/chromeec/i2c_tunnel |
| 157 | register "name" = ""MSTH"" |
| 158 | register "uid" = "1" |
| 159 | register "remote_bus" = "9" |
| 160 | device generic 1.0 on end |
| 161 | end |
| 162 | end |
| 163 | end |
| 164 | end |
| 165 | device pci 18.0 on end # Data fabric [0-7] |
| 166 | device pci 18.1 on end |
| 167 | device pci 18.2 on end |
| 168 | device pci 18.3 on end |
| 169 | device pci 18.4 on end |
| 170 | device pci 18.5 on end |
| 171 | device pci 18.6 on end |
| 172 | end # domain |
| 173 | |
| 174 | chip drivers/generic/max98357a |
| 175 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_91)" |
| 176 | register "sdmode_delay" = "5" |
| 177 | device generic 0.1 on end |
| 178 | end |
| 179 | |
| 180 | device mmio 0xfedc5000 on |
| 181 | chip drivers/i2c/tpm |
| 182 | register "hid" = ""GOOG0005"" |
| 183 | register "desc" = ""Cr50 TPM"" |
| 184 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_3)" |
| 185 | device i2c 50 on end |
| 186 | end |
| 187 | end |
| 188 | |
| 189 | end # chip soc/amd/picasso |