#include "bp_defs.h" #include "boardparms.h" #include "bcmSpiRes.h" extern BpCmdElem moca6802InitSeq[]; /* Only needed for internal GPHYs; by default internal GPHYs do not adv. 1000HD/100HD/10FD/10HD capabilities; * There are some NICs that will not negotiate 100FD - so need to advertise 100HD to link up with those NICs */ #define BCM963148_PHY_BASE 0x8 static bp_elem_t g_bcm963148sv[] = { {bp_cpBoardId, .u.cp = "963148SV"}, {bp_usGpioUart2Sdin, .u.us = BP_GPIO_5_AH}, // uart2 is /dev/ttyS1 {bp_usGpioUart2Sdout, .u.us = BP_GPIO_6_AH}, // stty 115200 < /dev/ttyS1 to set speed {bp_usSerialLedData, .u.us = BP_GPIO_0_AH}, // NOTE: bp_ulGpioOverlay is no longer used {bp_usSerialLedClk, .u.us = BP_GPIO_1_AH}, {bp_usSerialLedMask, .u.us = BP_GPIO_2_AH}, {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_NAND}, // Enable NAND pinmux even on SPI boot {bp_ulAfeId0, .u.ul = BP_AFE_CHIP_CH0 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_ulAfeId1, .u.ul = BP_AFE_CHIP_CH1 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_usGpioIntAFELDPwr, .u.us = BP_GPIO_52_AH}, // Line Driver 0 = "Int" {bp_usGpioIntAFELDData, .u.us = BP_GPIO_53_AH}, {bp_usGpioIntAFELDClk, .u.us = BP_GPIO_55_AH}, {bp_usGpioExtAFELDPwr, .u.us = BP_GPIO_54_AH}, // Line Driver 1 = "Ext" {bp_usGpioExtAFELDData, .u.us = BP_GPIO_9_AH}, {bp_usGpioExtAFELDClk, .u.us = BP_GPIO_10_AH}, {bp_usSpiSlaveSelectNum, .u.us = 1}, /* define the SPI select for voice */ {bp_usSpiSlaveSelectGpioNum, .u.us = 127}, {bp_usSpiSlaveSelectNum, .u.us = 2}, {bp_usSpiSlaveSelectGpioNum, .u.us = 25}, {bp_usSpiSlaveSelectNum, .u.us = 4}, {bp_usSpiSlaveSelectGpioNum, .u.us = 8}, {bp_usGphyBaseAddress, .u.us = BCM963148_PHY_BASE}, // use phy addressses on SF2 with base address 0x8 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x0f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AL}, {bp_usLinkLed, .u.us = BP_GPIO_28_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AL}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulMemoryConfig, .u.ul = BP_DDR_SPEED_800_11_11_11 | BP_DDR_TOTAL_SIZE_1024MB| BP_DDR_DEVICE_WIDTH_8}, {bp_last} }; static bp_elem_t g_bcm963148dvt[] = { {bp_cpBoardId, .u.cp = "963148DVT"}, {bp_usSerialLedData, .u.us = BP_GPIO_0_AH}, // NOTE: bp_ulGpioOverlay is no longer used {bp_usSerialLedClk, .u.us = BP_GPIO_1_AH}, {bp_usSerialLedMask, .u.us = BP_GPIO_2_AH}, {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_NAND}, // Enable NAND pinmux even on SPI boot {bp_usGpioLedBlPowerOn, .u.us = BP_GPIO_29_AL}, {bp_usGpioLedBlStop, .u.us = BP_GPIO_30_AL}, {bp_usGpioLedPwmReserved, .u.us = BP_GPIO_17_AL}, // pinmux for PWM2 LED {bp_usGpioLedWanData, .u.us = BP_GPIO_15_AL}, {bp_usGpioLedWanError, .u.us = BP_GPIO_16_AL}, {bp_usGpioLedAdsl, .u.us = BP_GPIO_31_AL}, {bp_usGpioSecLedAdsl, .u.us = BP_GPIO_18_AL}, {bp_usExtIntrSesBtnWireless, .u.us = BP_EXT_INTR_1}, {bp_usGpioLedSesWireless, .u.us = BP_GPIO_24_AL}, {bp_usGpioVoip1Led, .u.us = BP_SERIAL_GPIO_20_AL}, // LED register bit 20, shifted serially {bp_ulAfeId0, .u.ul = BP_AFE_CHIP_CH0 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_ulAfeId1, .u.ul = BP_AFE_CHIP_CH1 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_usGpioIntAFELDPwr, .u.us = BP_GPIO_52_AH}, // Line Driver 0 = "Int" {bp_usGpioIntAFELDData, .u.us = BP_GPIO_53_AH}, {bp_usGpioIntAFELDClk, .u.us = BP_GPIO_55_AH}, {bp_usGpioExtAFELDPwr, .u.us = BP_GPIO_54_AH}, // Line Driver 1 = "Ext" {bp_usGpioExtAFELDData, .u.us = BP_GPIO_9_AH}, {bp_usGpioExtAFELDClk, .u.us = BP_GPIO_10_AH}, {bp_usSpiSlaveSelectNum, .u.us = 1}, /* define the SPI select for voice */ {bp_usSpiSlaveSelectGpioNum, .u.us = 127}, {bp_usSpiSlaveSelectNum, .u.us = 2}, {bp_usSpiSlaveSelectGpioNum, .u.us = 25}, {bp_usSpiSlaveSelectNum, .u.us = 4}, {bp_usSpiSlaveSelectGpioNum, .u.us = 8}, {bp_usGphyBaseAddress, .u.us = BCM963148_PHY_BASE}, // use phy addressses on SF2 with base address 0x8 // to avoid conflicting P0 and P11 phy address of 1 // the intergrated Quad GPHY address is now 0x8, 0x9, 0xa, 0xb // the intergrated Single GPHY address 0xc {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulCrossbar, .u.ul = 11}, {bp_ulCrossbarPhyId, .u.ul = 0x1 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0xbf}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AL}, {bp_usLinkLed, .u.us = BP_GPIO_28_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AL}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = 0x18 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_ulPhyId5, .u.ul = 0x19 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, // bottom right. {bp_ulPhyId7, .u.ul = 0x0 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_ucDspType0, .u.uc = BP_VOIP_DSP}, {bp_ucDspAddress, .u.uc = 0}, {bp_ulMemoryConfig, .u.ul = BP_DDR_SPEED_800_11_11_11 | BP_DDR_TOTAL_SIZE_512MB| BP_DDR_DEVICE_WIDTH_16}, {bp_last} }; static bp_elem_t g_bcm963148dvt_p300[] = { {bp_cpBoardId, .u.cp = "963148DVT_P300"}, {bp_usExtIntrSesBtnWireless, .u.us = BP_EXT_INTR_0}, {bp_usGpioVoip1Led, .u.us = BP_SERIAL_GPIO_26_AL}, {bp_usGpioVoip2Led, .u.us = BP_SERIAL_GPIO_27_AL}, {bp_usGpioPotsLed, .u.us = BP_SERIAL_GPIO_28_AL}, {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulCrossbar, .u.ul = 11}, {bp_ulCrossbarPhyId, .u.ul = 0x1 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0xbf}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AL}, {bp_usLinkLed, .u.us = BP_GPIO_28_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AL}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = 0x18 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_ulPhyId5, .u.ul = 0x19 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, // bottom right. {bp_ulPhyId7, .u.ul = 0x0 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148dvt}, {bp_last} }; static bp_elem_t g_bcm963148ref[] = { {bp_cpBoardId, .u.cp = "963148REF"}, {bp_usSerialLedData, .u.us = BP_GPIO_0_AH}, // NOTE: bp_ulGpioOverlay is no longer used {bp_usSerialLedClk, .u.us = BP_GPIO_1_AH}, {bp_usSerialLedMask, .u.us = BP_GPIO_2_AH}, {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_NAND}, // Enable NAND pinmux even on SPI boot {bp_usGpioLedPwmReserved, .u.us = BP_GPIO_17_AL}, // pinmux for PWM2 LED {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_8_AL}, // placeholder for SF2 Port4 SPD0 {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_9_AL}, // placeholder for SF2 Port4 SPD1 {bp_usGpioLedBlPowerOn, .u.us = BP_GPIO_29_AL}, {bp_usGpioLedBlStop, .u.us = BP_GPIO_30_AL}, {bp_usExtIntrResetToDefault, .u.us = BP_EXT_INTR_0}, {bp_usExtIntrSesBtnWireless, .u.us = BP_EXT_INTR_1}, {bp_usGpioLedSesWireless, .u.us = BP_GPIO_24_AL}, {bp_usGpioLedAdsl, .u.us = BP_GPIO_31_AL}, {bp_usGpioSecLedAdsl, .u.us = BP_GPIO_27_AL}, {bp_usGpioLedWanData, .u.us = BP_GPIO_15_AL}, {bp_usGpioSecLedWanData, .u.us = BP_GPIO_19_AL}, {bp_ulAfeId0, .u.ul = BP_AFE_CHIP_CH0 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_ulAfeId1, .u.ul = BP_AFE_CHIP_CH1 | BP_AFE_LD_6303 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_usGpioIntAFELDPwr, .u.us = BP_GPIO_52_AH}, // Line Driver 0 = "Int" {bp_usGpioIntAFELDData, .u.us = BP_GPIO_53_AH}, {bp_usGpioIntAFELDClk, .u.us = BP_GPIO_55_AH}, {bp_usGpioExtAFELDPwr, .u.us = BP_GPIO_54_AH}, // Line Driver 1 = "Ext" {bp_usGpioExtAFELDData, .u.us = BP_GPIO_9_AH}, {bp_usGpioExtAFELDClk, .u.us = BP_GPIO_10_AH}, {bp_usGpioI2cSda, .u.us = BP_GPIO_117_AH }, /* i2c and sgmii fiber detect selection for serdes interface */ {bp_usGpioI2cScl, .u.us = BP_GPIO_119_AH }, {bp_usSgmiiDetect, .u.us = BP_GPIO_28_AL}, {bp_usSpiSlaveSelectNum, .u.us = 1}, /* define the SPI select for voice */ {bp_usSpiSlaveSelectGpioNum, .u.us = 127}, {bp_usSpiSlaveSelectNum, .u.us = 4}, {bp_usSpiSlaveSelectGpioNum, .u.us = 8}, {bp_usSpiSlaveSelectNum, .u.us = 5}, {bp_usSpiSlaveSelectGpioNum, .u.us = 7}, {bp_usGphyBaseAddress, .u.us = BCM963148_PHY_BASE}, // use phy addressses on SF2 with base address 0x8 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, /* use the WAN LED from runner */ {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x0f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, #if 0 /* for RGMII daughter card */ {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = 0x18 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, /* make sure the phy id matches the one on the plug in rgmii phy daughter card */ {bp_ulPhyId5, .u.ul = 0x19 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, /* make sure the phy id matches the one on the plug in rgmii phy daughter card */ #endif {bp_ucDspType0, .u.uc = BP_VOIP_DSP}, {bp_ucDspAddress, .u.uc = 0}, {bp_usGpioVoip1Led, .u.us = BP_SERIAL_GPIO_25_AH}, {bp_usGpioVoip2Led, .u.us = BP_SERIAL_GPIO_26_AH}, {bp_usGpioPotsLed, .u.us = BP_SERIAL_GPIO_28_AH}, {bp_ulMemoryConfig, .u.ul = BP_DDR_SPEED_800_11_11_11 | BP_DDR_TOTAL_SIZE_512MB| BP_DDR_DEVICE_WIDTH_16}, {bp_usUsbPwrFlt0, .u.us = BP_GPIO_132_AL}, {bp_usUsbPwrOn0, .u.us = BP_GPIO_133_AL}, {bp_usUsbPwrFlt1, .u.us = BP_GPIO_134_AL}, {bp_usUsbPwrOn1, .u.us = BP_GPIO_135_AL}, {bp_last} }; static bp_elem_t g_bcm963148ref_p502[] = { {bp_cpBoardId, .u.cp = "963148REF_P502"}, {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_8_AH}, // placeholder for SF2 Port4 SPD0 {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_9_AH}, // placeholder for SF2 Port4 SPD1 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, /* use the WAN LED from runner */ {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x0f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AH}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AH}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AH}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, #if 0 /* for RGMII daughter card */ {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = 0x18 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, /* make sure the phy id matches the one on the plug in rgmii phy daughter card */ {bp_ulPhyId5, .u.ul = 0x19 | PHY_INTEGRATED_VALID | MAC_IF_RGMII_1P8V | PHY_EXTERNAL}, /* make sure the phy id matches the one on the plug in rgmii phy daughter card */ #endif {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref}, {bp_last} }; static bp_elem_t g_bcm963148ref_bmu[] = { {bp_cpBoardId, .u.cp = "963148REF_BMU"}, {bp_usBatteryEnable, .u.us = 1}, {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_I2S}, // Enable I2S pinmux {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_NAND}, // Enable NAND pinmux even on SPI boot {bp_usGpioLedBlPowerOn, .u.us = BP_GPIO_22_AL}, {bp_usGpioLedBlStop, .u.us = BP_GPIO_23_AL}, {bp_usExtIntrResetToDefault, .u.us = BP_EXT_INTR_0}, {bp_usExtIntrSesBtnWireless, .u.us = BP_EXT_INTR_1}, {bp_usGpioLedSesWireless, .u.us = BP_GPIO_24_AL}, {bp_usGpioLedAdsl, .u.us = BP_GPIO_17_AL}, {bp_usGpioSecLedAdsl, .u.us = BP_GPIO_21_AL}, {bp_ulAfeId0, .u.ul = BP_AFE_CHIP_CH0 | BP_AFE_LD_6303 | BP_AFE_LD_REV_6303_VR5P3 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_ulAfeId1, .u.ul = BP_AFE_CHIP_CH1 | BP_AFE_LD_6303 | BP_AFE_LD_REV_6303_VR5P3 | BP_AFE_FE_ANNEXA | BP_AFE_FE_REV_6303_REV_12_3_40 }, {bp_usGpioAFEVR5P3PwrEn, .u.us = BP_GPIO_37_AH}, {bp_usGpioIntAFELDPwr, .u.us = BP_GPIO_52_AH}, // Line Driver 0 = "Int" {bp_usGpioIntAFELDData, .u.us = BP_GPIO_53_AH}, {bp_usGpioIntAFELDClk, .u.us = BP_GPIO_55_AH}, {bp_usGpioExtAFELDPwr, .u.us = BP_GPIO_54_AH}, // Line Driver 1 = "Ext" {bp_usGpioExtAFELDData, .u.us = BP_GPIO_9_AH}, {bp_usGpioExtAFELDClk, .u.us = BP_GPIO_10_AH}, {bp_usSpiSlaveSelectNum, .u.us = 1}, /* define the SPI select for voice */ {bp_usSpiSlaveSelectGpioNum, .u.us = 127}, {bp_usSpiSlaveSelectNum, .u.us = 2}, {bp_usSpiSlaveSelectGpioNum, .u.us = 25}, {bp_usSpiSlaveSelectNum, .u.us = 4}, {bp_usSpiSlaveSelectGpioNum, .u.us = 8}, {bp_usVregSync, .u.us = BP_GPIO_18_AH}, {bp_usGphyBaseAddress, .u.us = BCM963148_PHY_BASE}, // use phy addressses on SF2 with base address 0x8 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x4) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x0f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x0) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_0_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_1_AL}, {bp_usLinkLed, .u.us = BP_GPIO_28_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x1) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_2_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x2) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x3) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_GPIO_6_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_7_AL}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ucDspType0, .u.uc = BP_VOIP_DSP}, {bp_ucDspAddress, .u.uc = 0}, {bp_usGpioVoip1Led, .u.us = BP_GPIO_29_AL}, {bp_usGpioVoip2Led, .u.us = BP_GPIO_30_AL}, {bp_usGpioDectLed, .u.us = BP_GPIO_31_AL}, {bp_ulMemoryConfig, .u.ul = BP_DDR_SPEED_800_11_11_11 | BP_DDR_TOTAL_SIZE_1024MB| BP_DDR_DEVICE_WIDTH_8}, {bp_last} }; static bp_elem_t g_bcm963148ref_bmu_i2s[] = { {bp_cpBoardId, .u.cp = "963148_BMUI2S"}, {bp_ulInterfaceEnable, .u.ul = BP_PINMUX_FNTYPE_I2S}, // Enable I2S pinmux {bp_usGpioVoip1Led, .u.us = BP_GPIO_NONE}, {bp_usGpioVoip2Led, .u.us = BP_GPIO_NONE}, {bp_usGpioDectLed, .u.us = BP_GPIO_NONE}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref_bmu}, {bp_last} }; static bp_elem_t g_bcm963148ref_plc[] = { {bp_cpBoardId, .u.cp = "963148REF_PLC"}, {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, /* use the WAN LED from runner */ {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x1f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_PLC}, {bp_ucPhyDevName, .u.cp = "plc%d"}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = RGMII_DIRECT_3P3V }, {bp_ulPortFlags, .u.ul = PORT_FLAG_TX_INTERNAL_DELAY | PORT_FLAG_RX_INTERNAL_DELAY}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref}, {bp_last} }; static bp_elem_t g_bcm963148ref_moca[] = { {bp_cpBoardId, .u.cp = "963148REF_MOCA"}, {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, /* use the WAN LED from runner */ {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x8f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId7, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, {bp_ucPhyDevName, .u.cp = "moca%d"}, {bp_usMocaType0, .u.us = BP_MOCA_TYPE_LAN}, {bp_usMocaRfBand, .u.us = BP_MOCA_RF_BAND_D_LOW}, {bp_usExtIntrMocaHostIntr, .u.us = BP_EXT_INTR_TYPE_IRQ_HIGH_LEVEL | BP_EXT_INTR_4}, #if !defined(_CFE_) {bp_pMocaInit, .u.ptr = (void*)moca6802InitSeq}, #endif {bp_usGpioSpiSlaveReset, .u.us = BP_GPIO_110_AL}, {bp_usGpioSpiSlaveBootMode, .u.us = BP_GPIO_14_AL}, {bp_usSpiSlaveBusNum, .u.us = HS_SPI_BUS_NUM}, {bp_usSpiSlaveSelectNum, .u.us = 3}, {bp_usSpiSlaveSelectGpioNum, .u.us = 26}, {bp_usSpiSlaveMode, .u.us = SPI_MODE_3}, {bp_ulSpiSlaveCtrlState, .u.ul = SPI_CONTROLLER_STATE_GATE_CLK_SSOFF}, {bp_ulSpiSlaveMaxFreq, .u.ul = 12500000}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref}, {bp_last} }; static bp_elem_t g_bcm963148ref_bhr[] = { {bp_cpBoardId, .u.cp = "963148REF_BHR"}, {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ucPhyDevName, .u.cp = "moca%d"}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, /* use the WAN LED from runner */ {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x8f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AL}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AL}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AL}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AL}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AL}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId7, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, {bp_ucPhyDevName, .u.cp = "moca%d"}, {bp_usMocaType0, .u.us = BP_MOCA_TYPE_WAN}, {bp_usMocaRfBand, .u.us = BP_MOCA_RF_BAND_D_HIGH}, {bp_usExtIntrMocaHostIntr, .u.us = BP_EXT_INTR_TYPE_IRQ_HIGH_LEVEL | BP_EXT_INTR_2}, #if !defined(_CFE_) {bp_pMocaInit, .u.ptr = (void*)moca6802InitSeq}, #endif {bp_usGpioSpiSlaveReset, .u.us = BP_GPIO_115_AL}, {bp_usGpioSpiSlaveBootMode, .u.us = BP_GPIO_60_AL}, {bp_usSpiSlaveBusNum, .u.us = HS_SPI_BUS_NUM}, {bp_usSpiSlaveSelectNum, .u.us = 2}, {bp_usSpiSlaveSelectGpioNum, .u.us = 25}, {bp_usSpiSlaveMode, .u.us = SPI_MODE_3}, {bp_ulSpiSlaveCtrlState, .u.ul = SPI_CONTROLLER_STATE_GATE_CLK_SSOFF}, {bp_ulSpiSlaveMaxFreq, .u.ul = 12500000}, {bp_usMocaType1, .u.us = BP_MOCA_TYPE_LAN}, {bp_usMocaRfBand, .u.us = BP_MOCA_RF_BAND_D_LOW}, {bp_usExtIntrMocaHostIntr, .u.us = BP_EXT_INTR_TYPE_IRQ_HIGH_LEVEL | BP_EXT_INTR_4}, #if !defined(_CFE_) {bp_pMocaInit, .u.ptr = (void*)moca6802InitSeq}, #endif {bp_usGpioSpiSlaveReset, .u.us = BP_GPIO_110_AL}, {bp_usGpioSpiSlaveBootMode, .u.us = BP_GPIO_14_AL}, {bp_usSpiSlaveBusNum, .u.us = HS_SPI_BUS_NUM}, {bp_usSpiSlaveSelectNum, .u.us = 3}, {bp_usSpiSlaveSelectGpioNum, .u.us = 26}, {bp_usSpiSlaveMode, .u.us = SPI_MODE_3}, {bp_ulSpiSlaveCtrlState, .u.ul = SPI_CONTROLLER_STATE_GATE_CLK_SSOFF}, {bp_ulSpiSlaveMaxFreq, .u.ul = 12500000}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref}, {bp_last} }; static bp_elem_t g_bcm963148ref_p502_plc[] = { {bp_cpBoardId, .u.cp = "963148P502_PLC"}, {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_8_AH}, // placeholder for SF2 Port4 SPD0 {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_9_AH}, // placeholder for SF2 Port4 SPD1 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, /* use the WAN LED from runner */ {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x1f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AH}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AH}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AH}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId4, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_PLC}, {bp_ucPhyDevName, .u.cp = "plc%d"}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = RGMII_DIRECT_3P3V }, {bp_ulPortFlags, .u.ul = PORT_FLAG_TX_INTERNAL_DELAY | PORT_FLAG_RX_INTERNAL_DELAY}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref_plc}, {bp_last} }; static bp_elem_t g_bcm963148ref_p502_moca[] = { {bp_cpBoardId, .u.cp = "963148P502_MOCA"}, {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_8_AH}, // placeholder for SF2 Port4 SPD0 {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_9_AH}, // placeholder for SF2 Port4 SPD1 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 10}, {bp_ulCrossbarPhyId, .u.ul = (BCM963148_PHY_BASE + 0x04) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, /* use the WAN LED from runner */ {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulCrossbar, .u.ul = 9}, {bp_ulCrossbarPhyId, .u.ul = 6 | PHY_INTEGRATED_VALID | MAC_IF_SERDES}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x8f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AH}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AH}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AH}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId7, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, {bp_ucPhyDevName, .u.cp = "moca%d"}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref_moca}, {bp_last} }; static bp_elem_t g_bcm963148ref_p502_bhr[] = { {bp_cpBoardId, .u.cp = "963148P502_BHR"}, {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_8_AH}, // placeholder for SF2 Port4 SPD0 {bp_usGpioLedReserved, .u.us = BP_SERIAL_GPIO_9_AH}, // placeholder for SF2 Port4 SPD1 {bp_ucPhyType0, .u.uc = BP_ENET_NO_PHY}, // Runner {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, {bp_ucPhyAddress, .u.uc = 0x1e}, {bp_ulPortMap, .u.ul = 0x3}, {bp_ulPhyId0, .u.ul = BP_PHY_ID_NOT_SPECIFIED}, {bp_ulCrossbar, .u.ul = 12}, {bp_ulCrossbarPhyId, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, /* use the WAN LED from runner */ {bp_usSpeedLed100, .u.us = BP_GPIO_20_AL}, {bp_usSpeedLed1000, .u.us = BP_GPIO_21_AL}, {bp_usLinkLed, .u.us = BP_GPIO_22_AL}, {bp_ulPhyId1, .u.ul = GMII_DIRECT | EXTSW_CONNECTED}, {bp_ulPortFlags, .u.ul = PORT_FLAG_MGMT }, // Managment port is on switch {bp_ucPhyType1, .u.uc = BP_ENET_EXTERNAL_SWITCH}, {bp_usConfigType, .u.us = BP_ENET_CONFIG_MMAP}, // Accessing SF2 as MMapped external switch {bp_ulPortMap, .u.ul = 0x8f}, {bp_ulPhyId0, .u.ul = (BCM963148_PHY_BASE + 0x00) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_0_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_1_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_10_AH}, {bp_ulPhyId1, .u.ul = (BCM963148_PHY_BASE + 0x01) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_2_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_3_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_11_AH}, {bp_ulPhyId2, .u.ul = (BCM963148_PHY_BASE + 0x02) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_4_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_5_AH}, {bp_usLinkLed, .u.us = BP_SERIAL_GPIO_12_AH}, {bp_ulPhyId3, .u.ul = (BCM963148_PHY_BASE + 0x03) | (ADVERTISE_ALL_GMII | PHY_ADV_CFG_VALID)}, {bp_usSpeedLed100, .u.us = BP_SERIAL_GPIO_6_AH}, {bp_usSpeedLed1000, .u.us = BP_SERIAL_GPIO_7_AH}, {bp_usLinkLed, .u.us = BP_GPIO_13_AL}, {bp_ulPhyId7, .u.ul = RGMII_DIRECT | MAC_IF_RGMII_2P5V }, {bp_usPhyConnType, .u.us = PHY_CONN_TYPE_MOCA}, {bp_ucPhyDevName, .u.cp = "moca%d"}, {bp_elemTemplate, .u.bp_elemp = g_bcm963148ref_bhr}, {bp_last} }; bp_elem_t * g_BoardParms[] = {g_bcm963148sv, g_bcm963148dvt, g_bcm963148ref, g_bcm963148ref_bmu, g_bcm963148ref_bmu_i2s, g_bcm963148ref_plc, g_bcm963148ref_moca, g_bcm963148ref_bhr, g_bcm963148dvt_p300, g_bcm963148ref_p502, g_bcm963148ref_p502_plc, g_bcm963148ref_p502_moca, g_bcm963148ref_p502_bhr, 0};