Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 1 | /* $NoKeywords:$ */ |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * Family specific PCIe PHY initialization services |
| 6 | * |
| 7 | * |
| 8 | * |
| 9 | * @xrefitem bom "File Content Label" "Release Content" |
| 10 | * @e project: AGESA |
| 11 | * @e sub-project: GNB |
| 12 | * @e \$Revision: 39275 $ @e \$Date: 2010-10-09 08:22:05 +0800 (Sat, 09 Oct 2010) $ |
| 13 | * |
| 14 | */ |
| 15 | /* |
| 16 | ***************************************************************************** |
| 17 | * |
| 18 | * Copyright (c) 2011, Advanced Micro Devices, Inc. |
| 19 | * All rights reserved. |
Edward O'Callaghan | 1542a6f | 2014-07-06 19:24:06 +1000 | [diff] [blame] | 20 | * |
Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 21 | * Redistribution and use in source and binary forms, with or without |
| 22 | * modification, are permitted provided that the following conditions are met: |
| 23 | * * Redistributions of source code must retain the above copyright |
| 24 | * notice, this list of conditions and the following disclaimer. |
| 25 | * * Redistributions in binary form must reproduce the above copyright |
| 26 | * notice, this list of conditions and the following disclaimer in the |
| 27 | * documentation and/or other materials provided with the distribution. |
Edward O'Callaghan | 1542a6f | 2014-07-06 19:24:06 +1000 | [diff] [blame] | 28 | * * Neither the name of Advanced Micro Devices, Inc. nor the names of |
| 29 | * its contributors may be used to endorse or promote products derived |
Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 30 | * from this software without specific prior written permission. |
Edward O'Callaghan | 1542a6f | 2014-07-06 19:24:06 +1000 | [diff] [blame] | 31 | * |
Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 32 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 33 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 34 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 35 | * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY |
| 36 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 37 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 38 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 39 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 40 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 41 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Edward O'Callaghan | 1542a6f | 2014-07-06 19:24:06 +1000 | [diff] [blame] | 42 | * |
Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 43 | * *************************************************************************** |
| 44 | * |
| 45 | */ |
| 46 | |
| 47 | /*---------------------------------------------------------------------------------------- |
| 48 | * M O D U L E S U S E D |
| 49 | *---------------------------------------------------------------------------------------- |
| 50 | */ |
| 51 | #include "AGESA.h" |
| 52 | #include "Ids.h" |
| 53 | #include "Gnb.h" |
| 54 | #include "GnbPcie.h" |
| 55 | #include "GnbRegistersON.h" |
| 56 | #include "OntarioDefinitions.h" |
| 57 | #include "Filecode.h" |
| 58 | #define FILECODE PROC_GNB_PCIE_FAMILY_0X14_F14PCIEPHYSERVICES_FILECODE |
| 59 | /*---------------------------------------------------------------------------------------- |
| 60 | * D E F I N I T I O N S A N D M A C R O S |
| 61 | *---------------------------------------------------------------------------------------- |
| 62 | */ |
| 63 | |
| 64 | |
| 65 | /*---------------------------------------------------------------------------------------- |
| 66 | * T Y P E D E F S A N D S T R U C T U R E S |
| 67 | *---------------------------------------------------------------------------------------- |
| 68 | */ |
| 69 | |
| 70 | |
| 71 | /*---------------------------------------------------------------------------------------- |
| 72 | * P R O T O T Y P E S O F L O C A L F U N C T I O N S |
| 73 | *---------------------------------------------------------------------------------------- |
| 74 | */ |
| 75 | |
efdesign98 | 84cbce2 | 2011-08-04 12:09:17 -0600 | [diff] [blame] | 76 | AGESA_STATUS |
| 77 | PcieFmPhyLetPllPersonalityInit ( |
| 78 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 79 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 80 | ); |
| 81 | |
| 82 | VOID |
| 83 | PcieFmPhyChannelCharacteristic ( |
| 84 | IN PCIe_ENGINE_CONFIG *Engine, |
| 85 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 86 | ); |
| 87 | |
| 88 | VOID |
| 89 | PcieFmAvertClockPickers ( |
| 90 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 91 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 92 | ); |
| 93 | |
| 94 | VOID |
| 95 | PcieFmPhyApplyGanging ( |
| 96 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 97 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 98 | ); |
| 99 | |
| 100 | VOID |
| 101 | PcieFmPifSetRxDetectPowerMode ( |
| 102 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 103 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 104 | ); |
Frank Vibrans | 2b4c831 | 2011-02-14 18:30:54 +0000 | [diff] [blame] | 105 | |
| 106 | /*----------------------------------------------------------------------------------------*/ |
| 107 | /** |
| 108 | * PHY Pll Personality Init |
| 109 | * |
| 110 | * |
| 111 | * |
| 112 | * @param[in] Wrapper Pointer to wrapper config descriptor |
| 113 | * @param[in] Pcie Pointer to global PCIe configuration |
| 114 | */ |
| 115 | AGESA_STATUS |
| 116 | PcieFmPhyLetPllPersonalityInit ( |
| 117 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 118 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 119 | ) |
| 120 | { |
| 121 | // Stub function |
| 122 | return AGESA_SUCCESS; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /*----------------------------------------------------------------------------------------*/ |
| 127 | /** |
| 128 | * Port channel characteristic |
| 129 | * |
| 130 | * |
| 131 | * |
| 132 | * @param[in] Engine Pointer to engine configuration |
| 133 | * @param[in] Pcie Pointer to global PCIe configuration |
| 134 | */ |
| 135 | VOID |
| 136 | PcieFmPhyChannelCharacteristic ( |
| 137 | IN PCIe_ENGINE_CONFIG *Engine, |
| 138 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 139 | ) |
| 140 | { |
| 141 | } |
| 142 | |
| 143 | /*----------------------------------------------------------------------------------------*/ |
| 144 | /** |
| 145 | * Point "virtual" PLL clock picker away from PCIe |
| 146 | * |
| 147 | * |
| 148 | * |
| 149 | * @param[in] Wrapper Pointer to internal configuration data area |
| 150 | * @param[in] Pcie Pointer to global PCIe configuration |
| 151 | */ |
| 152 | VOID |
| 153 | PcieFmAvertClockPickers ( |
| 154 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 155 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 156 | ) |
| 157 | { |
| 158 | // Stub function |
| 159 | } |
| 160 | |
| 161 | /*----------------------------------------------------------------------------------------*/ |
| 162 | /** |
| 163 | * PHY lane ganging |
| 164 | * |
| 165 | * |
| 166 | * |
| 167 | * @param[out] Wrapper Pointer to internal configuration data area |
| 168 | * @param[in] Pcie Pointer to global PCIe configuration |
| 169 | */ |
| 170 | VOID |
| 171 | PcieFmPhyApplyGanging ( |
| 172 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 173 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 174 | ) |
| 175 | { |
| 176 | // Stub function |
| 177 | } |
| 178 | |
| 179 | /*----------------------------------------------------------------------------------------*/ |
| 180 | /** |
| 181 | * Program receiver detection power mode |
| 182 | * |
| 183 | * |
| 184 | * |
| 185 | * @param[in] Wrapper Pointer to wrapper config descriptor |
| 186 | * @param[in] Pcie Pointer to global PCIe configuration |
| 187 | */ |
| 188 | |
| 189 | VOID |
| 190 | PcieFmPifSetRxDetectPowerMode ( |
| 191 | IN PCIe_WRAPPER_CONFIG *Wrapper, |
| 192 | IN PCIe_PLATFORM_CONFIG *Pcie |
| 193 | ) |
| 194 | { |
| 195 | // Stub function |
| 196 | } |