Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Google Inc. |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 5 | * Copyright (C) 2015 Intel Corp. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <console/console.h> |
| 18 | #include <device/device.h> |
| 19 | #include <device/pci.h> |
Kyösti Mälkki | f1b58b7 | 2019-03-01 13:43:02 +0200 | [diff] [blame] | 20 | #include <device/pci_ops.h> |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 21 | #include <fsp/util.h> |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 22 | #include <soc/pci_devs.h> |
| 23 | #include <soc/ramstage.h> |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 24 | |
Elyes HAOUAS | c338507 | 2019-03-21 15:38:06 +0100 | [diff] [blame^] | 25 | #include "chip.h" |
| 26 | |
Elyes HAOUAS | b13fac3 | 2018-05-24 22:29:44 +0200 | [diff] [blame] | 27 | static void pci_domain_set_resources(struct device *dev) |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 28 | { |
Elyes HAOUAS | a342f39 | 2018-10-17 10:56:26 +0200 | [diff] [blame] | 29 | printk(BIOS_SPEW, "%s/%s (%s)\n", |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 30 | __FILE__, __func__, dev_name(dev)); |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 31 | assign_resources(dev->link_list); |
| 32 | } |
| 33 | |
| 34 | static struct device_operations pci_domain_ops = { |
| 35 | .read_resources = pci_domain_read_resources, |
| 36 | .set_resources = pci_domain_set_resources, |
| 37 | .enable_resources = NULL, |
| 38 | .init = NULL, |
| 39 | .scan_bus = pci_domain_scan_bus, |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | static struct device_operations cpu_bus_ops = { |
Elyes HAOUAS | b6fa7a2 | 2018-12-07 12:21:18 +0100 | [diff] [blame] | 43 | .read_resources = DEVICE_NOOP, |
| 44 | .set_resources = DEVICE_NOOP, |
| 45 | .enable_resources = DEVICE_NOOP, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 46 | .init = soc_init_cpus |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 47 | }; |
| 48 | |
| 49 | |
Elyes HAOUAS | b13fac3 | 2018-05-24 22:29:44 +0200 | [diff] [blame] | 50 | static void enable_dev(struct device *dev) |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 51 | { |
Elyes HAOUAS | a342f39 | 2018-10-17 10:56:26 +0200 | [diff] [blame] | 52 | printk(BIOS_SPEW, "----------\n%s/%s (%s), type: %d\n", |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 53 | __FILE__, __func__, |
| 54 | dev_name(dev), dev->path.type); |
| 55 | printk(BIOS_SPEW, "vendor: 0x%04x. device: 0x%04x\n", |
| 56 | pci_read_config16(dev, PCI_VENDOR_ID), |
| 57 | pci_read_config16(dev, PCI_DEVICE_ID)); |
| 58 | printk(BIOS_SPEW, "class: 0x%02x %s\n" |
| 59 | "subclass: 0x%02x %s\n" |
| 60 | "prog: 0x%02x\n" |
| 61 | "revision: 0x%02x\n", |
| 62 | pci_read_config16(dev, PCI_CLASS_DEVICE) >> 8, |
| 63 | get_pci_class_name(dev), |
| 64 | pci_read_config16(dev, PCI_CLASS_DEVICE) & 0xff, |
| 65 | get_pci_subclass_name(dev), |
| 66 | pci_read_config8(dev, PCI_CLASS_PROG), |
| 67 | pci_read_config8(dev, PCI_REVISION_ID)); |
| 68 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 69 | /* Set the operations if it is a special bus type */ |
| 70 | if (dev->path.type == DEVICE_PATH_DOMAIN) { |
| 71 | dev->ops = &pci_domain_ops; |
| 72 | } else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER) { |
| 73 | dev->ops = &cpu_bus_ops; |
| 74 | } else if (dev->path.type == DEVICE_PATH_PCI) { |
| 75 | /* Handle south cluster enablement. */ |
| 76 | if (PCI_SLOT(dev->path.pci.devfn) > GFX_DEV && |
| 77 | (dev->ops == NULL || dev->ops->enable == NULL)) { |
| 78 | southcluster_enable_dev(dev); |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 83 | __weak void board_silicon_USB2_override(SILICON_INIT_UPD *params) |
Matt DeVillier | 2c8ac22 | 2017-08-26 04:53:35 -0500 | [diff] [blame] | 84 | { |
| 85 | } |
| 86 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 87 | void soc_silicon_init_params(SILICON_INIT_UPD *params) |
| 88 | { |
Kyösti Mälkki | c70eed1 | 2018-05-22 02:18:00 +0300 | [diff] [blame] | 89 | struct device *dev = pcidev_on_root(LPC_DEV, LPC_FUNC); |
Ravi Sarawadi | d077b58 | 2015-09-09 14:12:16 -0700 | [diff] [blame] | 90 | struct soc_intel_braswell_config *config; |
| 91 | |
| 92 | if (!dev) { |
| 93 | printk(BIOS_ERR, |
| 94 | "Error! Device (%s) not found, " |
| 95 | "soc_silicon_init_params!\n", dev_path(dev)); |
| 96 | return; |
| 97 | } |
| 98 | |
| 99 | config = dev->chip_info; |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 100 | |
| 101 | /* Set the parameters for SiliconInit */ |
| 102 | printk(BIOS_DEBUG, "Updating UPD values for SiliconInit\n"); |
| 103 | params->PcdSdcardMode = config->PcdSdcardMode; |
| 104 | params->PcdEnableHsuart0 = config->PcdEnableHsuart0; |
| 105 | params->PcdEnableHsuart1 = config->PcdEnableHsuart1; |
| 106 | params->PcdEnableAzalia = config->PcdEnableAzalia; |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 107 | params->PcdEnableSata = config->PcdEnableSata; |
| 108 | params->PcdEnableXhci = config->PcdEnableXhci; |
| 109 | params->PcdEnableLpe = config->PcdEnableLpe; |
| 110 | params->PcdEnableDma0 = config->PcdEnableDma0; |
| 111 | params->PcdEnableDma1 = config->PcdEnableDma1; |
| 112 | params->PcdEnableI2C0 = config->PcdEnableI2C0; |
| 113 | params->PcdEnableI2C1 = config->PcdEnableI2C1; |
| 114 | params->PcdEnableI2C2 = config->PcdEnableI2C2; |
| 115 | params->PcdEnableI2C3 = config->PcdEnableI2C3; |
| 116 | params->PcdEnableI2C4 = config->PcdEnableI2C4; |
| 117 | params->PcdEnableI2C5 = config->PcdEnableI2C5; |
| 118 | params->PcdEnableI2C6 = config->PcdEnableI2C6; |
Subrata Banik | 13cd331 | 2015-08-07 18:22:54 +0530 | [diff] [blame] | 119 | params->GraphicsConfigPtr = 0; |
| 120 | params->AzaliaConfigPtr = 0; |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 121 | params->PunitPwrConfigDisable = config->PunitPwrConfigDisable; |
| 122 | params->ChvSvidConfig = config->ChvSvidConfig; |
| 123 | params->DptfDisable = config->DptfDisable; |
| 124 | params->PcdEmmcMode = config->PcdEmmcMode; |
| 125 | params->PcdUsb3ClkSsc = config->PcdUsb3ClkSsc; |
| 126 | params->PcdDispClkSsc = config->PcdDispClkSsc; |
| 127 | params->PcdSataClkSsc = config->PcdSataClkSsc; |
| 128 | params->Usb2Port0PerPortPeTxiSet = config->Usb2Port0PerPortPeTxiSet; |
| 129 | params->Usb2Port0PerPortTxiSet = config->Usb2Port0PerPortTxiSet; |
| 130 | params->Usb2Port0IUsbTxEmphasisEn = config->Usb2Port0IUsbTxEmphasisEn; |
| 131 | params->Usb2Port0PerPortTxPeHalf = config->Usb2Port0PerPortTxPeHalf; |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 132 | if (config->D0Usb2Port0PerPortRXISet != 0) |
| 133 | params->D0Usb2Port0PerPortRXISet = config->D0Usb2Port0PerPortRXISet; |
| 134 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 135 | params->Usb2Port1PerPortPeTxiSet = config->Usb2Port1PerPortPeTxiSet; |
| 136 | params->Usb2Port1PerPortTxiSet = config->Usb2Port1PerPortTxiSet; |
| 137 | params->Usb2Port1IUsbTxEmphasisEn = config->Usb2Port1IUsbTxEmphasisEn; |
| 138 | params->Usb2Port1PerPortTxPeHalf = config->Usb2Port1PerPortTxPeHalf; |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 139 | if (config->D0Usb2Port1PerPortRXISet != 0) |
| 140 | params->D0Usb2Port1PerPortRXISet = config->D0Usb2Port1PerPortRXISet; |
| 141 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 142 | params->Usb2Port2PerPortPeTxiSet = config->Usb2Port2PerPortPeTxiSet; |
| 143 | params->Usb2Port2PerPortTxiSet = config->Usb2Port2PerPortTxiSet; |
| 144 | params->Usb2Port2IUsbTxEmphasisEn = config->Usb2Port2IUsbTxEmphasisEn; |
| 145 | params->Usb2Port2PerPortTxPeHalf = config->Usb2Port2PerPortTxPeHalf; |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 146 | if (config->D0Usb2Port2PerPortRXISet != 0) |
| 147 | params->D0Usb2Port2PerPortRXISet = config->D0Usb2Port2PerPortRXISet; |
| 148 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 149 | params->Usb2Port3PerPortPeTxiSet = config->Usb2Port3PerPortPeTxiSet; |
| 150 | params->Usb2Port3PerPortTxiSet = config->Usb2Port3PerPortTxiSet; |
| 151 | params->Usb2Port3IUsbTxEmphasisEn = config->Usb2Port3IUsbTxEmphasisEn; |
| 152 | params->Usb2Port3PerPortTxPeHalf = config->Usb2Port3PerPortTxPeHalf; |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 153 | if (config->D0Usb2Port3PerPortRXISet != 0) |
| 154 | params->D0Usb2Port3PerPortRXISet = config->D0Usb2Port3PerPortRXISet; |
| 155 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 156 | params->Usb2Port4PerPortPeTxiSet = config->Usb2Port4PerPortPeTxiSet; |
| 157 | params->Usb2Port4PerPortTxiSet = config->Usb2Port4PerPortTxiSet; |
| 158 | params->Usb2Port4IUsbTxEmphasisEn = config->Usb2Port4IUsbTxEmphasisEn; |
| 159 | params->Usb2Port4PerPortTxPeHalf = config->Usb2Port4PerPortTxPeHalf; |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 160 | if (config->D0Usb2Port4PerPortRXISet != 0) |
| 161 | params->D0Usb2Port4PerPortRXISet = config->D0Usb2Port4PerPortRXISet; |
| 162 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 163 | params->Usb3Lane0Ow2tapgen2deemph3p5 = |
| 164 | config->Usb3Lane0Ow2tapgen2deemph3p5; |
| 165 | params->Usb3Lane1Ow2tapgen2deemph3p5 = |
| 166 | config->Usb3Lane1Ow2tapgen2deemph3p5; |
| 167 | params->Usb3Lane2Ow2tapgen2deemph3p5 = |
| 168 | config->Usb3Lane2Ow2tapgen2deemph3p5; |
| 169 | params->Usb3Lane3Ow2tapgen2deemph3p5 = |
| 170 | config->Usb3Lane3Ow2tapgen2deemph3p5; |
| 171 | params->PcdSataInterfaceSpeed = config->PcdSataInterfaceSpeed; |
| 172 | params->PcdPchUsbSsicPort = config->PcdPchUsbSsicPort; |
| 173 | params->PcdPchUsbHsicPort = config->PcdPchUsbHsicPort; |
| 174 | params->PcdPcieRootPortSpeed = config->PcdPcieRootPortSpeed; |
| 175 | params->PcdPchSsicEnable = config->PcdPchSsicEnable; |
| 176 | params->PcdLogoPtr = config->PcdLogoPtr; |
| 177 | params->PcdLogoSize = config->PcdLogoSize; |
| 178 | params->PcdRtcLock = config->PcdRtcLock; |
| 179 | params->PMIC_I2CBus = config->PMIC_I2CBus; |
| 180 | params->ISPEnable = config->ISPEnable; |
| 181 | params->ISPPciDevConfig = config->ISPPciDevConfig; |
Divya Sasidharan | 89a6685 | 2015-10-28 15:02:35 -0700 | [diff] [blame] | 182 | params->PcdSdDetectChk = config->PcdSdDetectChk; |
Divagar Mohandass | 0c68530 | 2016-02-08 16:09:21 +0530 | [diff] [blame] | 183 | params->I2C0Frequency = config->I2C0Frequency; |
| 184 | params->I2C1Frequency = config->I2C1Frequency; |
| 185 | params->I2C2Frequency = config->I2C2Frequency; |
| 186 | params->I2C3Frequency = config->I2C3Frequency; |
| 187 | params->I2C4Frequency = config->I2C4Frequency; |
| 188 | params->I2C5Frequency = config->I2C5Frequency; |
| 189 | params->I2C6Frequency = config->I2C6Frequency; |
Matt DeVillier | 143a836 | 2017-08-26 04:47:15 -0500 | [diff] [blame] | 190 | |
Matt DeVillier | 2c8ac22 | 2017-08-26 04:53:35 -0500 | [diff] [blame] | 191 | board_silicon_USB2_override(params); |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 192 | } |
| 193 | |
| 194 | void soc_display_silicon_init_params(const SILICON_INIT_UPD *old, |
| 195 | SILICON_INIT_UPD *new) |
| 196 | { |
| 197 | /* Display the parameters for SiliconInit */ |
| 198 | printk(BIOS_SPEW, "UPD values for SiliconInit:\n"); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 199 | fsp_display_upd_value("PcdSdcardMode", 1, old->PcdSdcardMode, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 200 | new->PcdSdcardMode); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 201 | fsp_display_upd_value("PcdEnableHsuart0", 1, old->PcdEnableHsuart0, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 202 | new->PcdEnableHsuart0); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 203 | fsp_display_upd_value("PcdEnableHsuart1", 1, old->PcdEnableHsuart1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 204 | new->PcdEnableHsuart1); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 205 | fsp_display_upd_value("PcdEnableAzalia", 1, old->PcdEnableAzalia, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 206 | new->PcdEnableAzalia); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 207 | fsp_display_upd_value("AzaliaConfigPtr", 4, |
Subrata Banik | 13cd331 | 2015-08-07 18:22:54 +0530 | [diff] [blame] | 208 | (uint32_t)old->AzaliaConfigPtr, |
| 209 | (uint32_t)new->AzaliaConfigPtr); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 210 | fsp_display_upd_value("PcdEnableSata", 1, old->PcdEnableSata, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 211 | new->PcdEnableSata); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 212 | fsp_display_upd_value("PcdEnableXhci", 1, old->PcdEnableXhci, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 213 | new->PcdEnableXhci); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 214 | fsp_display_upd_value("PcdEnableLpe", 1, old->PcdEnableLpe, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 215 | new->PcdEnableLpe); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 216 | fsp_display_upd_value("PcdEnableDma0", 1, old->PcdEnableDma0, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 217 | new->PcdEnableDma0); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 218 | fsp_display_upd_value("PcdEnableDma1", 1, old->PcdEnableDma1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 219 | new->PcdEnableDma1); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 220 | fsp_display_upd_value("PcdEnableI2C0", 1, old->PcdEnableI2C0, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 221 | new->PcdEnableI2C0); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 222 | fsp_display_upd_value("PcdEnableI2C1", 1, old->PcdEnableI2C1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 223 | new->PcdEnableI2C1); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 224 | fsp_display_upd_value("PcdEnableI2C2", 1, old->PcdEnableI2C2, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 225 | new->PcdEnableI2C2); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 226 | fsp_display_upd_value("PcdEnableI2C3", 1, old->PcdEnableI2C3, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 227 | new->PcdEnableI2C3); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 228 | fsp_display_upd_value("PcdEnableI2C4", 1, old->PcdEnableI2C4, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 229 | new->PcdEnableI2C4); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 230 | fsp_display_upd_value("PcdEnableI2C5", 1, old->PcdEnableI2C5, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 231 | new->PcdEnableI2C5); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 232 | fsp_display_upd_value("PcdEnableI2C6", 1, old->PcdEnableI2C6, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 233 | new->PcdEnableI2C6); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 234 | fsp_display_upd_value("PcdGraphicsConfigPtr", 4, |
Subrata Banik | 13cd331 | 2015-08-07 18:22:54 +0530 | [diff] [blame] | 235 | old->GraphicsConfigPtr, new->GraphicsConfigPtr); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 236 | fsp_display_upd_value("GpioFamilyInitTablePtr", 4, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 237 | (uint32_t)old->GpioFamilyInitTablePtr, |
| 238 | (uint32_t)new->GpioFamilyInitTablePtr); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 239 | fsp_display_upd_value("GpioPadInitTablePtr", 4, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 240 | (uint32_t)old->GpioPadInitTablePtr, |
| 241 | (uint32_t)new->GpioPadInitTablePtr); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 242 | fsp_display_upd_value("PunitPwrConfigDisable", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 243 | old->PunitPwrConfigDisable, |
| 244 | new->PunitPwrConfigDisable); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 245 | fsp_display_upd_value("ChvSvidConfig", 1, old->ChvSvidConfig, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 246 | new->ChvSvidConfig); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 247 | fsp_display_upd_value("DptfDisable", 1, old->DptfDisable, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 248 | new->DptfDisable); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 249 | fsp_display_upd_value("PcdEmmcMode", 1, old->PcdEmmcMode, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 250 | new->PcdEmmcMode); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 251 | fsp_display_upd_value("PcdUsb3ClkSsc", 1, old->PcdUsb3ClkSsc, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 252 | new->PcdUsb3ClkSsc); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 253 | fsp_display_upd_value("PcdDispClkSsc", 1, old->PcdDispClkSsc, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 254 | new->PcdDispClkSsc); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 255 | fsp_display_upd_value("PcdSataClkSsc", 1, old->PcdSataClkSsc, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 256 | new->PcdSataClkSsc); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 257 | fsp_display_upd_value("Usb2Port0PerPortPeTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 258 | old->Usb2Port0PerPortPeTxiSet, |
| 259 | new->Usb2Port0PerPortPeTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 260 | fsp_display_upd_value("Usb2Port0PerPortTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 261 | old->Usb2Port0PerPortTxiSet, |
| 262 | new->Usb2Port0PerPortTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 263 | fsp_display_upd_value("Usb2Port0IUsbTxEmphasisEn", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 264 | old->Usb2Port0IUsbTxEmphasisEn, |
| 265 | new->Usb2Port0IUsbTxEmphasisEn); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 266 | fsp_display_upd_value("Usb2Port0PerPortTxPeHalf", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 267 | old->Usb2Port0PerPortTxPeHalf, |
| 268 | new->Usb2Port0PerPortTxPeHalf); |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 269 | fsp_display_upd_value("D0Usb2Port0PerPortRXISet", 1, |
| 270 | old->D0Usb2Port0PerPortRXISet, |
| 271 | new->D0Usb2Port0PerPortRXISet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 272 | fsp_display_upd_value("Usb2Port1PerPortPeTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 273 | old->Usb2Port1PerPortPeTxiSet, |
| 274 | new->Usb2Port1PerPortPeTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 275 | fsp_display_upd_value("Usb2Port1PerPortTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 276 | old->Usb2Port1PerPortTxiSet, |
| 277 | new->Usb2Port1PerPortTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 278 | fsp_display_upd_value("Usb2Port1IUsbTxEmphasisEn", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 279 | old->Usb2Port1IUsbTxEmphasisEn, |
| 280 | new->Usb2Port1IUsbTxEmphasisEn); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 281 | fsp_display_upd_value("Usb2Port1PerPortTxPeHalf", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 282 | old->Usb2Port1PerPortTxPeHalf, |
| 283 | new->Usb2Port1PerPortTxPeHalf); |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 284 | fsp_display_upd_value("D0Usb2Port1PerPortRXISet", 1, |
| 285 | old->D0Usb2Port1PerPortRXISet, |
| 286 | new->D0Usb2Port1PerPortRXISet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 287 | fsp_display_upd_value("Usb2Port2PerPortPeTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 288 | old->Usb2Port2PerPortPeTxiSet, |
| 289 | new->Usb2Port2PerPortPeTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 290 | fsp_display_upd_value("Usb2Port2PerPortTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 291 | old->Usb2Port2PerPortTxiSet, |
| 292 | new->Usb2Port2PerPortTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 293 | fsp_display_upd_value("Usb2Port2IUsbTxEmphasisEn", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 294 | old->Usb2Port2IUsbTxEmphasisEn, |
| 295 | new->Usb2Port2IUsbTxEmphasisEn); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 296 | fsp_display_upd_value("Usb2Port2PerPortTxPeHalf", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 297 | old->Usb2Port2PerPortTxPeHalf, |
| 298 | new->Usb2Port2PerPortTxPeHalf); |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 299 | fsp_display_upd_value("D0Usb2Port2PerPortRXISet", 1, |
| 300 | old->D0Usb2Port2PerPortRXISet, |
| 301 | new->D0Usb2Port2PerPortRXISet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 302 | fsp_display_upd_value("Usb2Port3PerPortPeTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 303 | old->Usb2Port3PerPortPeTxiSet, |
| 304 | new->Usb2Port3PerPortPeTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 305 | fsp_display_upd_value("Usb2Port3PerPortTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 306 | old->Usb2Port3PerPortTxiSet, |
| 307 | new->Usb2Port3PerPortTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 308 | fsp_display_upd_value("Usb2Port3IUsbTxEmphasisEn", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 309 | old->Usb2Port3IUsbTxEmphasisEn, |
| 310 | new->Usb2Port3IUsbTxEmphasisEn); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 311 | fsp_display_upd_value("Usb2Port3PerPortTxPeHalf", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 312 | old->Usb2Port3PerPortTxPeHalf, |
| 313 | new->Usb2Port3PerPortTxPeHalf); |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 314 | fsp_display_upd_value("D0Usb2Port3PerPortRXISet", 1, |
| 315 | old->D0Usb2Port3PerPortRXISet, |
| 316 | new->D0Usb2Port3PerPortRXISet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 317 | fsp_display_upd_value("Usb2Port4PerPortPeTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 318 | old->Usb2Port4PerPortPeTxiSet, |
| 319 | new->Usb2Port4PerPortPeTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 320 | fsp_display_upd_value("Usb2Port4PerPortTxiSet", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 321 | old->Usb2Port4PerPortTxiSet, |
| 322 | new->Usb2Port4PerPortTxiSet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 323 | fsp_display_upd_value("Usb2Port4IUsbTxEmphasisEn", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 324 | old->Usb2Port4IUsbTxEmphasisEn, |
| 325 | new->Usb2Port4IUsbTxEmphasisEn); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 326 | fsp_display_upd_value("Usb2Port4PerPortTxPeHalf", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 327 | old->Usb2Port4PerPortTxPeHalf, |
| 328 | new->Usb2Port4PerPortTxPeHalf); |
Kevin Chiu | 348a6d5 | 2016-06-30 14:50:52 +0800 | [diff] [blame] | 329 | fsp_display_upd_value("D0Usb2Port4PerPortRXISet", 1, |
| 330 | old->D0Usb2Port4PerPortRXISet, |
| 331 | new->D0Usb2Port4PerPortRXISet); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 332 | fsp_display_upd_value("Usb3Lane0Ow2tapgen2deemph3p5", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 333 | old->Usb3Lane0Ow2tapgen2deemph3p5, |
| 334 | new->Usb3Lane0Ow2tapgen2deemph3p5); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 335 | fsp_display_upd_value("Usb3Lane1Ow2tapgen2deemph3p5", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 336 | old->Usb3Lane1Ow2tapgen2deemph3p5, |
| 337 | new->Usb3Lane1Ow2tapgen2deemph3p5); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 338 | fsp_display_upd_value("Usb3Lane2Ow2tapgen2deemph3p5", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 339 | old->Usb3Lane2Ow2tapgen2deemph3p5, |
| 340 | new->Usb3Lane2Ow2tapgen2deemph3p5); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 341 | fsp_display_upd_value("Usb3Lane3Ow2tapgen2deemph3p5", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 342 | old->Usb3Lane3Ow2tapgen2deemph3p5, |
| 343 | new->Usb3Lane3Ow2tapgen2deemph3p5); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 344 | fsp_display_upd_value("PcdSataInterfaceSpeed", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 345 | old->PcdSataInterfaceSpeed, |
| 346 | new->PcdSataInterfaceSpeed); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 347 | fsp_display_upd_value("PcdPchUsbSsicPort", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 348 | old->PcdPchUsbSsicPort, new->PcdPchUsbSsicPort); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 349 | fsp_display_upd_value("PcdPchUsbHsicPort", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 350 | old->PcdPchUsbHsicPort, new->PcdPchUsbHsicPort); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 351 | fsp_display_upd_value("PcdPcieRootPortSpeed", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 352 | old->PcdPcieRootPortSpeed, new->PcdPcieRootPortSpeed); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 353 | fsp_display_upd_value("PcdPchSsicEnable", 1, old->PcdPchSsicEnable, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 354 | new->PcdPchSsicEnable); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 355 | fsp_display_upd_value("PcdLogoPtr", 4, old->PcdLogoPtr, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 356 | new->PcdLogoPtr); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 357 | fsp_display_upd_value("PcdLogoSize", 4, old->PcdLogoSize, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 358 | new->PcdLogoSize); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 359 | fsp_display_upd_value("PcdRtcLock", 1, old->PcdRtcLock, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 360 | new->PcdRtcLock); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 361 | fsp_display_upd_value("PMIC_I2CBus", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 362 | old->PMIC_I2CBus, new->PMIC_I2CBus); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 363 | fsp_display_upd_value("ISPEnable", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 364 | old->ISPEnable, new->ISPEnable); |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 365 | fsp_display_upd_value("ISPPciDevConfig", 1, |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 366 | old->ISPPciDevConfig, new->ISPPciDevConfig); |
Divya Sasidharan | 89a6685 | 2015-10-28 15:02:35 -0700 | [diff] [blame] | 367 | fsp_display_upd_value("PcdSdDetectChk", 1, |
| 368 | old->PcdSdDetectChk, new->PcdSdDetectChk); |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 369 | } |
| 370 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 371 | /* Called at BS_DEV_INIT_CHIPS time -- very early. Just after BS_PRE_DEVICE. */ |
| 372 | static void soc_init(void *chip_info) |
| 373 | { |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 374 | printk(BIOS_SPEW, "%s/%s\n", __FILE__, __func__); |
| 375 | soc_init_pre_device(chip_info); |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 376 | } |
| 377 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 378 | struct chip_operations soc_intel_braswell_ops = { |
| 379 | CHIP_NAME("Intel Braswell SoC") |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 380 | .enable_dev = enable_dev, |
| 381 | .init = soc_init, |
| 382 | }; |
| 383 | |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 384 | struct pci_operations soc_pci_ops = { |
Subrata Banik | 4a0f071 | 2019-03-20 14:29:47 +0530 | [diff] [blame] | 385 | .set_subsystem = &pci_dev_set_subsystem, |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 386 | }; |
Matt DeVillier | 143a836 | 2017-08-26 04:47:15 -0500 | [diff] [blame] | 387 | |
| 388 | /** |
| 389 | Return SoC stepping type |
| 390 | |
| 391 | @retval SOC_STEPPING SoC stepping type |
| 392 | **/ |
| 393 | int SocStepping(void) |
| 394 | { |
Kyösti Mälkki | c70eed1 | 2018-05-22 02:18:00 +0300 | [diff] [blame] | 395 | struct device *dev = pcidev_on_root(LPC_DEV, LPC_FUNC); |
Matt DeVillier | 143a836 | 2017-08-26 04:47:15 -0500 | [diff] [blame] | 396 | u8 revid = pci_read_config8(dev, 0x8); |
| 397 | |
| 398 | switch (revid & B_PCH_LPC_RID_STEPPING_MASK) { |
| 399 | case V_PCH_LPC_RID_A0: |
| 400 | return SocA0; |
| 401 | case V_PCH_LPC_RID_A1: |
| 402 | return SocA1; |
| 403 | case V_PCH_LPC_RID_A2: |
| 404 | return SocA2; |
| 405 | case V_PCH_LPC_RID_A3: |
| 406 | return SocA3; |
| 407 | case V_PCH_LPC_RID_A4: |
| 408 | return SocA4; |
| 409 | case V_PCH_LPC_RID_A5: |
| 410 | return SocA5; |
| 411 | case V_PCH_LPC_RID_A6: |
| 412 | return SocA6; |
| 413 | case V_PCH_LPC_RID_A7: |
| 414 | return SocA7; |
| 415 | case V_PCH_LPC_RID_B0: |
| 416 | return SocB0; |
| 417 | case V_PCH_LPC_RID_B1: |
| 418 | return SocB1; |
| 419 | case V_PCH_LPC_RID_B2: |
| 420 | return SocB2; |
| 421 | case V_PCH_LPC_RID_B3: |
| 422 | return SocB3; |
| 423 | case V_PCH_LPC_RID_B4: |
| 424 | return SocB4; |
| 425 | case V_PCH_LPC_RID_B5: |
| 426 | return SocB5; |
| 427 | case V_PCH_LPC_RID_B6: |
| 428 | return SocB6; |
| 429 | case V_PCH_LPC_RID_B7: |
| 430 | return SocB7; |
| 431 | case V_PCH_LPC_RID_C0: |
| 432 | return SocC0; |
| 433 | case V_PCH_LPC_RID_C1: |
| 434 | return SocC1; |
| 435 | case V_PCH_LPC_RID_C2: |
| 436 | return SocC2; |
| 437 | case V_PCH_LPC_RID_C3: |
| 438 | return SocC3; |
| 439 | case V_PCH_LPC_RID_C4: |
| 440 | return SocC4; |
| 441 | case V_PCH_LPC_RID_C5: |
| 442 | return SocC5; |
| 443 | case V_PCH_LPC_RID_C6: |
| 444 | return SocC6; |
| 445 | case V_PCH_LPC_RID_C7: |
| 446 | return SocC7; |
| 447 | case V_PCH_LPC_RID_D0: |
| 448 | return SocD0; |
| 449 | case V_PCH_LPC_RID_D1: |
| 450 | return SocD1; |
| 451 | case V_PCH_LPC_RID_D2: |
| 452 | return SocD2; |
| 453 | case V_PCH_LPC_RID_D3: |
| 454 | return SocD3; |
| 455 | case V_PCH_LPC_RID_D4: |
| 456 | return SocD4; |
| 457 | case V_PCH_LPC_RID_D5: |
| 458 | return SocD5; |
| 459 | case V_PCH_LPC_RID_D6: |
| 460 | return SocD6; |
| 461 | case V_PCH_LPC_RID_D7: |
| 462 | return SocD7; |
| 463 | default: |
| 464 | return SocSteppingMax; |
| 465 | } |
| 466 | } |