Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | chip soc/amd/cezanne |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 3 | |
| 4 | # eSPI Configuration |
| 5 | register "common_config.espi_config" = "{ |
| 6 | .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, |
| 7 | .generic_io_range[0] = { |
| 8 | .base = 0x62, |
| 9 | /* |
| 10 | * Only 0x62 and 0x66 are required. But, this is not supported by |
| 11 | * standard IO decodes and there are only 4 generic I/O windows |
| 12 | * available. Hence, open a window from 0x62-0x67. |
| 13 | */ |
| 14 | .size = 5, |
| 15 | }, |
| 16 | .generic_io_range[1] = { |
| 17 | .base = 0x800, /* EC_HOST_CMD_REGION0 */ |
| 18 | .size = 256, /* EC_HOST_CMD_REGION_SIZE * 2 */ |
| 19 | }, |
| 20 | .generic_io_range[2] = { |
| 21 | .base = 0x900, /* EC_LPC_ADDR_MEMMAP */ |
| 22 | .size = 255, /* EC_MEMMAP_SIZE */ |
| 23 | }, |
| 24 | .generic_io_range[3] = { |
| 25 | .base = 0x200, /* EC_LPC_ADDR_HOST_DATA */ |
| 26 | .size = 8, /* 0x200 - 0x207 */ |
| 27 | }, |
| 28 | |
| 29 | .io_mode = ESPI_IO_MODE_QUAD, |
| 30 | .op_freq_mhz = ESPI_OP_FREQ_33_MHZ, |
| 31 | .crc_check_enable = 1, |
| 32 | .dedicated_alert_pin = 1, |
| 33 | .periph_ch_en = 1, |
| 34 | .vw_ch_en = 1, |
| 35 | .oob_ch_en = 0, |
| 36 | .flash_ch_en = 0, |
| 37 | |
| 38 | .vw_irq_polarity = ESPI_VW_IRQ_LEVEL_HIGH(1) | ESPI_VW_IRQ_LEVEL_HIGH(12), |
| 39 | }" |
| 40 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 41 | device domain 0 on |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 42 | device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A |
| 43 | device ref gfx on end # Internal GPU (GFX) |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame^] | 44 | device ref xhci_0 on # USB 3.1 (USB0) |
| 45 | chip drivers/usb/acpi |
| 46 | device ref xhci_0_root_hub on |
| 47 | chip drivers/usb/acpi |
| 48 | register "desc" = ""Right Type-C Port"" |
| 49 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 50 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 51 | device ref usb3_port0 on end |
| 52 | end |
| 53 | chip drivers/usb/acpi |
| 54 | register "desc" = ""Right Type-A Port"" |
| 55 | register "type" = "UPC_TYPE_USB3_A" |
| 56 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 57 | device ref usb3_port1 on end |
| 58 | end |
| 59 | chip drivers/usb/acpi |
| 60 | register "desc" = ""Right Type-C Port"" |
| 61 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 62 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 63 | device ref usb2_port0 on end |
| 64 | end |
| 65 | chip drivers/usb/acpi |
| 66 | register "desc" = ""Right Type-A Port"" |
| 67 | register "type" = "UPC_TYPE_USB3_A" |
| 68 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 69 | device ref usb2_port1 on end |
| 70 | end |
| 71 | chip drivers/usb/acpi |
| 72 | register "desc" = ""User-Facing Camera"" |
| 73 | register "type" = "UPC_TYPE_INTERNAL" |
| 74 | device ref usb2_port2 on end |
| 75 | end |
| 76 | chip drivers/usb/acpi |
| 77 | register "desc" = ""World-Facing Camera"" |
| 78 | register "type" = "UPC_TYPE_INTERNAL" |
| 79 | device ref usb2_port3 on end |
| 80 | end |
| 81 | end |
| 82 | end |
| 83 | end |
| 84 | device ref xhci_1 on # USB 3.1 (USB1) |
| 85 | chip drivers/usb/acpi |
| 86 | device ref xhci_1_root_hub on |
| 87 | chip drivers/usb/acpi |
| 88 | register "desc" = ""Left Type-C Port"" |
| 89 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 90 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 91 | device ref usb3_port4 on end |
| 92 | end |
| 93 | chip drivers/usb/acpi |
| 94 | register "desc" = ""Left Type-A Port"" |
| 95 | register "type" = "UPC_TYPE_USB3_A" |
| 96 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 97 | device ref usb3_port5 on end |
| 98 | end |
| 99 | chip drivers/usb/acpi |
| 100 | register "desc" = ""Left Type-C Port"" |
| 101 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 102 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 103 | device ref usb2_port4 on end |
| 104 | end |
| 105 | chip drivers/usb/acpi |
| 106 | register "desc" = ""Left Type-A Port"" |
| 107 | register "type" = "UPC_TYPE_USB3_A" |
| 108 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 109 | device ref usb2_port5 on end |
| 110 | end |
| 111 | chip drivers/usb/acpi |
| 112 | register "desc" = ""Bluetooth"" |
| 113 | register "type" = "UPC_TYPE_INTERNAL" |
| 114 | device ref usb2_port6 on end |
| 115 | end |
| 116 | end |
| 117 | end |
| 118 | end |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 119 | end |
Mathew King | 78f0301 | 2021-03-05 09:04:44 -0700 | [diff] [blame] | 120 | |
| 121 | device ref lpc_bridge on |
| 122 | chip ec/google/chromeec |
| 123 | device pnp 0c09.0 on end |
| 124 | end |
| 125 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 126 | end # domain |
| 127 | end # chip soc/amd/cezanne |