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 |
| 42 | end # domain |
| 43 | end # chip soc/amd/cezanne |