openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

phydefs.h (4874B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:     phydefs.h
      8  * Purpose:  Basic defines for PHYs.
      9  *           This should be included after all other SOC include files and
     10  *           before all other PHY include files.
     11  */
     12 #ifndef _PHY_CONFIG_H
     13 #define _PHY_CONFIG_H 
     14 
     15 #include <soc/defs.h>
     16 
     17 /* PHY/Switch dependicies */
     18 #if defined(BCM_DRACO_SUPPORT)
     19 #define INCLUDE_PHY_5690
     20 #endif /* BCM_DRACO_SUPPORT */
     21 
     22 #if defined(BCM_XGS_SUPPORT)
     23 #define INCLUDE_PHY_XGXS1
     24 #endif /* BCM_XGS_SUPPORT */
     25 
     26 #if defined(BCM_EASYRIDER_SUPPORT)
     27 #define INCLUDE_PHY_56XXX
     28 #define INCLUDE_PHY_XGXS5
     29 #endif /* BCM_EASYRIDER_SUPPORT */
     30 
     31 #if defined(BCM_FIREBOLT_SUPPORT)
     32 #define INCLUDE_PHY_56XXX
     33 #define INCLUDE_PHY_XGXS5
     34 #endif /* BCM_FIREBOLT_SUPPORT */
     35 
     36 #if defined(BCM_HUMV_SUPPORT) || defined(BCM_BRADLEY_SUPPORT) 
     37 #define INCLUDE_PHY_XGXS6
     38 #endif /* BCM_HUMV_SUPPORT || BCM_BRADLEY_SUPPORT */
     39 
     40 #if defined(BCM_GOLDWING_SUPPORT)
     41 #define INCLUDE_PHY_56XXX
     42 #define INCLUDE_PHY_XGXS6
     43 #endif /* BCM_GOLDWING_SUPPORT */
     44 
     45 #if defined(BCM_FIREBOLT2_SUPPORT)
     46 #define INCLUDE_SERDES_100FX   
     47 #define INCLUDE_PHY_XGXS5
     48 #endif /* BCM_FIREBOLT2_SUPPORT */
     49 
     50 #if defined(BCM_RAPTOR_SUPPORT)
     51 #define INCLUDE_PHY_56XXX
     52 #define INCLUDE_SERDES_COMBO
     53 #endif /* BCM_RAPTOR_SUPPORT */
     54 
     55 #if defined(BCM_RAVEN_SUPPORT)
     56 #define INCLUDE_SERDES_65LP
     57 #define INCLUDE_SERDES_COMBO65
     58 #endif /* BCM_RAVEN_SUPPORT */
     59 
     60 #if defined(BCM_HAWKEYE_SUPPORT)
     61 #define INCLUDE_XGXS_QSGMII65
     62 #endif /* BCM_HAWKEYE_SUPPORT */
     63 
     64 #if defined(BCM_HURRICANE_SUPPORT)
     65 #define INCLUDE_XGXS_QSGMII65
     66 #define INCLUDE_XGXS_WCMOD
     67 #define INCLUDE_XGXS_TSCMOD
     68 #endif /* BCM_HURRICANE_SUPPORT */
     69 
     70 #if defined(BCM_TRIDENT_SUPPORT) || defined(BCM_SHADOW_SUPPORT)
     71 /* #define INCLUDE_XGXS_WCMOD  :debug WL driver with trident WC B0 board -ravick*/
     72 #define INCLUDE_XGXS_WC40
     73 #endif
     74 
     75 #if defined(BCM_DFE_SUPPORT) || defined(BCM_ARAD_SUPPORT)
     76 #define INCLUDE_XGXS_WCMOD
     77 #endif
     78 
     79 #if defined(BCM_TRIUMPH_SUPPORT)
     80 #define INCLUDE_SERDES_65LP
     81 #define INCLUDE_XGXS_HL65
     82 #define INCLUDE_XGXS_16G
     83 #endif /* BCM_TRIUMPH_SUPPORT */
     84 
     85 #if defined(BCM_SCORPION_SUPPORT)
     86 #define INCLUDE_SERDES_65LP
     87 #define INCLUDE_XGXS_HL65
     88 #define INCLUDE_XGXS_16G
     89 #endif /* BCM_SCORPION_SUPPORT */
     90 
     91 #if defined(BCM_KATANA_SUPPORT)
     92 #define INCLUDE_XGXS_16G
     93 #endif /* BCM_KATANA_SUPPORT */
     94 
     95 #if defined(BCM_TRIUMPH3_SUPPORT)
     96 #define INCLUDE_XGXS_16G
     97 #define INCLUDE_XGXS_WCMOD
     98 #define INCLUDE_XGXS_WC40    /*added for Helix 4 warpCore B0 */
     99 #endif /* BCM_TRIUMPH3_SUPPORT */
    100 
    101 #if defined(BCM_TRIDENT2_SUPPORT)
    102 #define INCLUDE_XGXS_TSCMOD
    103 #endif
    104 
    105 #if defined(BCM_GREYHOUND_SUPPORT)
    106 #if defined(PHYMOD_SUPPORT)
    107 #define INCLUDE_XGXS_TSCE
    108 #define INCLUDE_SERDES_QSGMIIE
    109 #endif
    110 #endif /* BCM_GREYHOUND_SUPPORT */
    111 
    112 #if defined(BCM_GREYHOUND2_SUPPORT)
    113 #if defined(PHYMOD_SUPPORT)
    114 #define INCLUDE_XGXS_VIPER
    115 #define INCLUDE_XGXS_TSCE
    116 #define INCLUDE_XGXS_TSCE_DPLL
    117 #define INCLUDE_SERDES_QSGMIIE
    118 #define INCLUDE_XGXS_TSCF
    119 #endif
    120 #endif /* BCM_GREYHOUND2_SUPPORT */
    121 
    122 #if defined(BCM_HURRICANE3_SUPPORT)
    123 #if defined(PHYMOD_SUPPORT)
    124 #define INCLUDE_SERDES_QTCE
    125 #endif
    126 #endif /* BCM_HURRICANE3_SUPPORT */
    127 
    128 #if defined(BCM_53540_A0)
    129 #if defined(PHYMOD_SUPPORT)
    130 #define INCLUDE_XGXS_VIPER
    131 #endif
    132 #endif /* BCM_53540_A0 (Wolfhound2) */
    133 
    134 #if defined(BCM_88202_A0)
    135 #if defined(PHYMOD_SUPPORT)
    136 #define INCLUDE_XGXS_TSCE
    137 #endif
    138 #endif /* BCM_88202_A0 */
    139 
    140 #if defined(BCM_TOMAHAWK_SUPPORT)
    141 #if defined(PHYMOD_SUPPORT)
    142 #define INCLUDE_XGXS_TSCE
    143 #define INCLUDE_XGXS_TSCF
    144 #endif
    145 #endif /* BCM_TOMAHAWK_SUPPORT */
    146 
    147 #if defined(BCM_SABER2_SUPPORT)
    148 #if defined(PHYMOD_SUPPORT)
    149 #define INCLUDE_XGXS_TSCE
    150 #define INCLUDE_XGXS_VIPER
    151 #define INCLUDE_SERDES_QSGMIIE
    152 #endif
    153 #endif /* BCM_SABER2_SUPPORT */
    154 
    155 
    156 /* PHY/PHY dependencies */
    157 
    158 
    159 #if defined(INCLUDE_PHY_5464) && defined(BCM_ESW_SUPPORT)
    160 #define INCLUDE_PHY_5464_ESW
    161 #endif /* BCM_ESW_SUPPORT */
    162 
    163 #if defined(INCLUDE_PHY_5482) && defined(BCM_ESW_SUPPORT)
    164 #define INCLUDE_PHY_5482_ESW
    165 #endif /* BCM_ESW_SUPPORT */
    166 
    167 /* definition for the SW cablediag supporting on phy54684 */
    168 #if defined(INCLUDE_PHY_54684)
    169 #define INCLUDE_PHY_54684_ESW
    170 #endif /* INCLUDE_PHY_54684 */
    171 
    172 
    173 #if defined(INCLUDE_PHY_XGXS1) || defined(INCLUDE_PHY_XGXS5) || \
    174     defined(INCLUDE_PHY_XGXS6)
    175 #define INCLUDE_PHY_XGXS
    176 #endif 
    177 
    178 #if defined(INCLUDE_SERDES_100FX)  || defined(INCLUDE_SERDES_65LP) || \
    179     defined (INCLUDE_SERDES_COMBO) || defined(INCLUDE_PHY_56XXX) || \
    180     defined(INCLUDE_PHY_53XXX)
    181 #define INCLUDE_SERDES
    182 #endif
    183 
    184 #if defined(INCLUDE_PHY_8703) || defined(INCLUDE_PHY_8705) || \
    185     defined(INCLUDE_PHY_8706) || defined(INCLUDE_PHY_8750) || \
    186     defined(INCLUDE_PHY_84334)|| defined(INCLUDE_PHY_8072) || \
    187     defined(INCLUDE_PHY_8481)
    188 #define INCLUDE_PHY_XEHG
    189 #endif
    190 #endif /* _PHY_DEFS_H */