net/qede/base: add support for new firmware
[dpdk.git] / drivers / net / qede / base / nvm_cfg.h
index 4edffac..68abc2d 100644 (file)
@@ -13,7 +13,7 @@
  * Description: NVM config file - Generated file from nvm cfg excel.
  *              DO NOT MODIFY !!!
  *
- * Created:     5/9/2016
+ * Created:     9/6/2016
  *
  ****************************************************************************/
 
@@ -477,6 +477,9 @@ struct nvm_cfg1_glob {
                #define NVM_CFG1_GLOB_MANUF1_TIME_OFFSET 6
                #define NVM_CFG1_GLOB_MANUF2_TIME_MASK 0x0003F000
                #define NVM_CFG1_GLOB_MANUF2_TIME_OFFSET 12
+       /*  Max MSIX for Ethernet in default mode */
+               #define NVM_CFG1_GLOB_MAX_MSIX_MASK 0x03FC0000
+               #define NVM_CFG1_GLOB_MAX_MSIX_OFFSET 18
        u32 led_global_settings; /* 0x74 */
                #define NVM_CFG1_GLOB_LED_SWAP_0_MASK 0x0000000F
                #define NVM_CFG1_GLOB_LED_SWAP_0_OFFSET 0
@@ -497,6 +500,14 @@ struct nvm_cfg1_glob {
                #define NVM_CFG1_GLOB_LANE2_SWAP_OFFSET 14
                #define NVM_CFG1_GLOB_LANE3_SWAP_MASK 0x00030000
                #define NVM_CFG1_GLOB_LANE3_SWAP_OFFSET 16
+       /*  Enable option 195 - Overriding the PCIe Preset value */
+               #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_MASK 0x00040000
+               #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_OFFSET 18
+               #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_DISABLED 0x0
+               #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_ENABLED 0x1
+       /*  PCIe Preset value - applies only if option 194 is enabled */
+               #define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_MASK 0x00780000
+               #define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_OFFSET 19
        u32 mbi_version; /* 0x7C */
                #define NVM_CFG1_GLOB_MBI_VERSION_0_MASK 0x000000FF
                #define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET 0
@@ -623,6 +634,44 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ETHERNET 0x1
                #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_FCOE 0x2
                #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ISCSI 0x4
+       /* GPIO for HW reset the PHY. In case it is the same for all ports,
+        * need to set same value for all ports
+        */
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_MASK 0xFF000000
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_OFFSET 24
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_NA 0x0
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO0 0x1
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO1 0x2
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO2 0x3
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO3 0x4
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO4 0x5
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO5 0x6
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO6 0x7
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO7 0x8
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO8 0x9
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO9 0xA
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO10 0xB
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO11 0xC
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO12 0xD
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO13 0xE
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO14 0xF
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO15 0x10
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO16 0x11
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO17 0x12
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO18 0x13
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO19 0x14
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO20 0x15
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO21 0x16
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO22 0x17
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO23 0x18
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO24 0x19
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO25 0x1A
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO26 0x1B
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO27 0x1C
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO28 0x1D
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO29 0x1E
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO30 0x1F
+               #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO31 0x20
        u32 pcie_cfg; /* 0xC */
                #define NVM_CFG1_PORT_RESERVED15_MASK 0x00000007
                #define NVM_CFG1_PORT_RESERVED15_OFFSET 0
@@ -699,6 +748,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_FEC_FORCE_MODE_AUTO 0x7
        u32 phy_cfg; /* 0x1C */
                #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_MASK 0x0000FFFF
                #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_OFFSET 0
@@ -738,9 +788,16 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_MASK 0x000000FF
                #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_OFFSET 0
                #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_NONE 0x0
-               #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_BCM84844 0x1
+               #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_BCM8485X 0x1
                #define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_MASK 0x0000FF00
                #define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_OFFSET 8
+       /*  EEE power saving mode */
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_MASK 0x00FF0000
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_OFFSET 16
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_DISABLED 0x0
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_BALANCED 0x1
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_AGGRESSIVE 0x2
+               #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_LOW_LATENCY 0x3
        u32 mba_cfg1; /* 0x28 */
                #define NVM_CFG1_PORT_PREBOOT_OPROM_MASK 0x00000001
                #define NVM_CFG1_PORT_PREBOOT_OPROM_OFFSET 0
@@ -972,6 +1029,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_AUTO 0x7
        u32 mnm_25g_cap; /* 0x58 */
                #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_MASK \
                        0x0000FFFF
@@ -1049,6 +1107,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_AUTO 0x7
        u32 mnm_40g_cap; /* 0x64 */
                #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_MASK \
                        0x0000FFFF
@@ -1126,6 +1185,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_AUTO 0x7
        u32 mnm_50g_cap; /* 0x70 */
                #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_MASK \
                        0x0000FFFF
@@ -1205,6 +1265,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_AUTO 0x7
        u32 mnm_100g_cap; /* 0x7C */
                #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_MASK \
                        0x0000FFFF
@@ -1279,6 +1340,7 @@ struct nvm_cfg1_port {
                #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_NONE 0x0
                #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_FIRECODE 0x1
                #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_RS 0x2
+               #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_AUTO 0x7
        u32 reserved[116]; /* 0x88 */
 };