/* Defines. */
+/* Maximum number of Ethernet MACs. */
+#define BP_MAX_ENET_MACS 2
+
/* Default psi size in K bytes */
#define BP_PSI_DEFAULT_SIZE 24
-#define USR9108
/* Typedefs */
typedef struct boardparameters
{
char szBoardId[BP_BOARD_ID_LEN]; /* board id string */
ETHERNET_MAC_INFO EnetMacInfos[BP_MAX_ENET_MACS];
+ VOIP_DSP_INFO VoIPDspInfo[BP_MAX_VOIP_DSP];
unsigned short usSdramSize; /* SDRAM size and type */
unsigned short usPsiSize; /* persistent storage in K bytes */
unsigned short usGpioRj11InnerPair; /* GPIO pin or not defined */
unsigned short usGpioRj11OuterPair; /* GPIO pin or not defined */
unsigned short usGpioPressAndHoldReset; /* GPIO pin or not defined */
- unsigned short usGpioVoipReset; /* GPIO pin or not defined */
- unsigned short usGpioVoipIntr; /* GPIO pin or not defined */
+ unsigned short usGpioPSTN; /* GPIO pin or not defined */
+ unsigned short usGpioLedDiag; /* GPIO pin or not defined */
unsigned short usGpioPcmciaReset; /* GPIO pin or not defined */
unsigned short usGpioUartRts; /* GPIO pin or not defined */
unsigned short usGpioUartCts; /* GPIO pin or not defined */
unsigned short usGpioLedWanData; /* GPIO pin or not defined */
unsigned short usGpioLedPpp; /* GPIO pin or not defined */
unsigned short usGpioLedPppFail; /* GPIO pin or not defined */
- unsigned short usGpioLedVoip; /* GPIO pin or not defined */
unsigned short usGpioLedBlPowerOn; /* GPIO pin or not defined */
unsigned short usGpioLedBlAlarm; /* GPIO pin or not defined */
unsigned short usGpioLedBlResetCfg; /* GPIO pin or not defined */
unsigned short usGpioLedBlStop; /* GPIO pin or not defined */
unsigned short usExtIntrWireless; /* ext intr or not defined */
unsigned short usExtIntrAdslDyingGasp; /* ext intr or not defined */
- unsigned short usExtIntrVoip; /* ext intr or not defined */
unsigned short usExtIntrHpna; /* ext intr or not defined */
- unsigned short usCsHpna; /* chip select not not defined */
- unsigned short usCsVoip; /* chip select not not defined */
+ unsigned short usCsHpna; /* chip select not defined */
unsigned short usAntInUseWireless; /* antenna in use or not defined */
unsigned short usGpioSesBtnWireless; /* GPIO pin or not defined */
unsigned short usExtIntrSesBtnWireless; /* ext intr or not defined */
/* Variables */
#if defined(_BCM96338_) || defined(CONFIG_BCM96338)
-static BOARD_PARAMETERS g_bcm96338sv =
-{
- "96338SV", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_16MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_NOT_DEFINED, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_NOT_DEFINED, /* usGpioLedWanData */
- BP_NOT_DEFINED, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_NOT_DEFINED, /* usGpioLedBlResetCfg */
- BP_NOT_DEFINED, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-static BOARD_PARAMETERS g_bcm96338l2m8m =
+static BOARD_PARAMETERS g_bcmRTA1320 =
{
- "96338L-2M-8M", /* szBoardId */
+ "RTA1320", /* szBoardId */
{{BP_ENET_INTERNAL_PHY, /* ucPhyType */
0x01, /* ucPhyAddress */
BP_NOT_DEFINED, /* usGpioPhySpiSck */
0x01, /* numSwitchPorts */
BP_ENET_CONFIG_MDIO, /* usConfigType */
BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_NOT_DEFINED, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_GPIO_0_AL, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-static PBOARD_PARAMETERS g_BoardParms[] =
- {&g_bcm96338sv, &g_bcm96338l2m8m, 0};
-#endif
-
-#if defined(_BCM96345_) || defined(CONFIG_BCM96345)
-static BOARD_PARAMETERS g_bcm96345r =
-{
- "96345R", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_GPIO_11_AH, /* usGpioRj11InnerPair */
- BP_GPIO_12_AH, /* usGpioRj11OuterPair */
- BP_GPIO_13_AH, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_GPIO_8_AH, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_8_AH, /* usGpioLedWanData */
- BP_GPIO_9_AH, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_10_AH, /* usGpioLedBlAlarm */
- BP_GPIO_9_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_8_AH, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_EXT_INTR_0, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96345gw2 =
-{
- /* A hardware jumper determines whether GPIO 13 is used for Press and Hold
- * Reset or RTS.
- */
- "96345GW2", /* szBoardId */
- {{BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_GPIO_0_AH, /* usGpioPhySpiSck */
- BP_GPIO_4_AH, /* usGpioPhySpiSs */
- BP_GPIO_12_AH, /* usGpioPhySpiMosi */
- BP_GPIO_11_AH, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_GPIO, /* usConfigType */
- BP_ENET_REVERSE_MII}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_16MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_13_AH, /* usGpioPressAndHoldReset */
- BP_GPIO_6_AH, /* usGpioVoipReset */
- BP_GPIO_15_AH, /* usGpioVoipIntr */
- BP_GPIO_2_AH, /* usGpioPcmciaReset */
- BP_GPIO_13_AH, /* usGpioUartRts */
- BP_GPIO_9_AH, /* usGpioUartCts */
- BP_GPIO_8_AH, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_GPIO_7_AH, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_8_AH, /* usGpioLedWanData */
- BP_NOT_DEFINED, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_10_AH, /* usGpioLedBlAlarm */
- BP_GPIO_7_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_8_AH, /* usGpioLedBlStop */
- BP_EXT_INTR_2, /* usExtIntrWireless */
- BP_EXT_INTR_0, /* usExtIntrAdslDyingGasp */
- BP_EXT_INTR_1, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_CS_2, /* usCsVoip */
- BP_WLAN_ANT_MAIN, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96345gw =
-{
- "96345GW", /* szBoardId */
- {{BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
+ {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
0x00, /* ucPhyAddress */
BP_NOT_DEFINED, /* usGpioPhySpiSck */
BP_NOT_DEFINED, /* usGpioPhySpiSs */
BP_NOT_DEFINED, /* usGpioPhySpiMiso */
BP_NOT_DEFINED, /* usGpioPhyReset */
0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_ENET_NO_REVERSE_MII}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_16MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_GPIO_11_AH, /* usGpioRj11InnerPair */
- BP_GPIO_1_AH, /* usGpioRj11OuterPair */
- BP_GPIO_13_AH, /* usGpioPressAndHoldReset */
- BP_GPIO_6_AH, /* usGpioVoipReset */
- BP_GPIO_15_AH, /* usGpioVoipIntr */
- BP_GPIO_2_AH, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_GPIO_8_AH, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_GPIO_10_AH, /* usGpioLedWireless */
- BP_GPIO_7_AH, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_8_AH, /* usGpioLedWanData */
- BP_NOT_DEFINED, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_9_AH, /* usGpioLedBlAlarm */
- BP_GPIO_10_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_8_AH, /* usGpioLedBlStop */
- BP_EXT_INTR_2, /* usExtIntrWireless */
- BP_EXT_INTR_0, /* usExtIntrAdslDyingGasp */
- BP_EXT_INTR_1, /* usExtIntrVoip */
- BP_EXT_INTR_3, /* usExtIntrHpna */
- BP_CS_1, /* usCsHpna */
- BP_CS_2, /* usCsVoip */
- BP_WLAN_ANT_MAIN, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96335r =
-{
- "96335R", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_14_AH, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_GPIO_9_AH, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_9_AH, /* usGpioLedWanData */
- BP_GPIO_8_AH, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_10_AH, /* usGpioLedBlAlarm */
- BP_GPIO_8_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_9_AH, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_NOT_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96345r0 =
-{
- "96345R0", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
+ BP_ENET_CONFIG_SPI_SSB_1, /* usConfigType */
+ BP_ENET_REVERSE_MII}}, /* usReverseMii */
+ {{BP_VOIP_DSP, /* ucDspType */
+ 0x00, /* ucDspAddress */
+ BP_EXT_INTR_2, /* usExtIntrVoip */
+ BP_GPIO_36_AH, /* usGpioVoipReset */
+ BP_GPIO_34_AL, /* usGpioVoipIntr */
+ BP_NOT_DEFINED, /* usGpioLedVoip */
+ BP_CS_2}, /* usCsVoip */
+ {BP_VOIP_NO_DSP}}, /* ucDspType */
BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
BP_PSI_DEFAULT_SIZE, /* usPsiSize */
BP_NOT_DEFINED, /* usGpioRj11InnerPair */
BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_NOT_DEFINED, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
+ BP_GPIO_7_AL, /* usGpioPressAndHoldReset */
+ BP_NOT_DEFINED, /* usGpioPSTN */
+ BP_GPIO_1_AL, /* usGpioLedDiag */
BP_NOT_DEFINED, /* usGpioPcmciaReset */
BP_NOT_DEFINED, /* usGpioUartRts */
BP_NOT_DEFINED, /* usGpioUartCts */
- BP_GPIO_8_AH, /* usGpioLedAdsl */
+ BP_GPIO_3_AL, /* usGpioLedAdsl */
BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
+ BP_GPIO_11_AL, /* usGpioLedWireless */
BP_NOT_DEFINED, /* usGpioLedUsb */
BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_9_AH, /* usGpioLedWanData */
- BP_GPIO_9_AH, /* usGpioLedPpp */
- BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_9_AH, /* usGpioLedBlAlarm */
- BP_GPIO_8_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_8_AH, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_NOT_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96345rs =
-{
- "96345RS", /* szBoardId */
- {{BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_ENET_NO_REVERSE_MII}, /* usReverseMii */
- {BP_ENET_NO_PHY}}, /* ucPhyType */
- BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_GPIO_11_AH, /* usGpioRj11InnerPair */
- BP_GPIO_12_AH, /* usGpioRj11OuterPair */
- BP_GPIO_13_AH, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_GPIO_8_AH, /* usGpioLedAdsl */
- BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_8_AH, /* usGpioLedWanData */
- BP_GPIO_9_AH, /* usGpioLedPpp */
+ BP_NOT_DEFINED, /* usGpioLedWanData */
+ BP_GPIO_4_AL, /* usGpioLedPpp */
BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_GPIO_10_AH, /* usGpioLedBlAlarm */
- BP_GPIO_9_AH, /* usGpioLedBlResetCfg */
- BP_GPIO_8_AH, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_EXT_INTR_0, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static PBOARD_PARAMETERS g_BoardParms[] =
- {&g_bcm96345r, &g_bcm96345gw2, &g_bcm96345gw, &g_bcm96335r, &g_bcm96345r0,
- &g_bcm96345rs, 0};
-#endif
-
-#if defined(_BCM96348_) || defined(CONFIG_BCM96348)
-
-static BOARD_PARAMETERS g_bcm96348r =
-{
- "96348R-A", /* szBoardId */
- {{BP_ENET_NO_PHY}, /* ucPhyType */
- {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_0, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_GPIO_0_AL, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_NOT_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96348r_b =
-{
- "96348R-B", /* szBoardId */
- {{BP_ENET_NO_PHY}, /* ucPhyType */
- {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_0, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_GPIO_0_AL, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96348lv =
-{
- "96348LV", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_EXTERNAL_PHY, /* ucPhyType */
- 0x02, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_GPIO_5_AL, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}}, /* usReverseMii */
- BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_7_AH, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
BP_GPIO_0_AL, /* usGpioLedBlPowerOn */
BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
+ BP_GPIO_7_AL, /* usGpioLedBlResetCfg */
BP_GPIO_1_AL, /* usGpioLedBlStop */
BP_NOT_DEFINED, /* usExtIntrWireless */
BP_NOT_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
BP_NOT_DEFINED, /* usExtIntrHpna */
BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
+ BP_WLAN_ANT_MAIN, /* usAntInUseWireless */
BP_NOT_DEFINED, /* usGpioSesBtnWireless */
BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
BP_NOT_DEFINED /* usGpioLedSesWireless */
};
-static BOARD_PARAMETERS g_bcm96348gw =
-{
- "96348GW-A", /* szBoardId */
- {{BP_ENET_NO_PHY}, /* ucPhyType */
- {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_0, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_GPIO_0_AL, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-
-static BOARD_PARAMETERS g_bcm96348gw_b =
-{
- "96348GW-B", /* szBoardId */
- {{BP_ENET_NO_PHY}, /* ucPhyType */
- {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_0, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_GPIO_0_AL, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* BP_GPIO_35_AH, */ /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* BP_EXT_INTR_3, */ /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* BP_GPIO_0_AL */ /* usGpioLedSesWireless */
-};
-
-
-static BOARD_PARAMETERS g_bcm96348gw_10 =
+static BOARD_PARAMETERS g_bcmRTA1320B =
{
- "96348GW-10", /* szBoardId */
+ "RTA1320B", /* szBoardId */
{{BP_ENET_INTERNAL_PHY, /* ucPhyType */
0x01, /* ucPhyAddress */
BP_NOT_DEFINED, /* usGpioPhySpiSck */
0x01, /* numSwitchPorts */
BP_ENET_CONFIG_MDIO, /* usConfigType */
BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
- 0x00, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x03, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_1, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_GPIO_6_AH, /* usGpioVoipReset */
- BP_GPIO_34_AH, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_GPIO_0_AL, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_EXT_INTR_2, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_CS_2, /* usCsVoip */
- BP_WLAN_ANT_MAIN, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-static BOARD_PARAMETERS g_bcm96348gw_11 =
-{
- "96348GW-11", /* szBoardId */
- {{BP_ENET_NO_PHY}, /* ucPhyType */
{BP_ENET_EXTERNAL_SWITCH, /* ucPhyType */
0x00, /* ucPhyAddress */
BP_NOT_DEFINED, /* usGpioPhySpiSck */
BP_NOT_DEFINED, /* usGpioPhySpiMiso */
BP_NOT_DEFINED, /* usGpioPhyReset */
0x04, /* numSwitchPorts */
- BP_ENET_CONFIG_SPI_SSB_1, /* usConfigType */
- BP_ENET_REVERSE_MII}}, /* usReverseMii */
- BP_MEMORY_16MB_2_CHIP, /* usSdramSize */
- BP_PSI_DEFAULT_SIZE, /* usPsiSize */
- BP_NOT_DEFINED, /* usGpioRj11InnerPair */
- BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_GPIO_33_AL, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
- BP_NOT_DEFINED, /* usGpioPcmciaReset */
- BP_NOT_DEFINED, /* usGpioUartRts */
- BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
- BP_GPIO_2_AL, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
- BP_NOT_DEFINED, /* usGpioLedUsb */
- BP_NOT_DEFINED, /* usGpioLedHpna */
- BP_GPIO_3_AL, /* usGpioLedWanData */
- BP_GPIO_3_AL, /* usGpioLedPpp */
- BP_GPIO_4_AL, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_GPIO_0_AL, /* usGpioLedBlPowerOn */
- BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_GPIO_3_AL, /* usGpioLedBlResetCfg */
- BP_GPIO_1_AL, /* usGpioLedBlStop */
- BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
- BP_NOT_DEFINED, /* usExtIntrHpna */
- BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
- BP_NOT_DEFINED, /* usGpioSesBtnWireless */
- BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
- BP_NOT_DEFINED /* usGpioLedSesWireless */
-};
-
-#ifndef USR9108
-static BOARD_PARAMETERS g_bcm96348sv =
-{
- "96348SV", /* szBoardId */
- {{BP_ENET_INTERNAL_PHY, /* ucPhyType */
- 0x01, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}, /* usReverseMii */
- {BP_ENET_EXTERNAL_PHY, /* ucPhyType */
- 0x1f, /* ucPhyAddress */
- BP_NOT_DEFINED, /* usGpioPhySpiSck */
- BP_NOT_DEFINED, /* usGpioPhySpiSs */
- BP_NOT_DEFINED, /* usGpioPhySpiMosi */
- BP_NOT_DEFINED, /* usGpioPhySpiMiso */
- BP_NOT_DEFINED, /* usGpioPhyReset */
- 0x01, /* numSwitchPorts */
- BP_ENET_CONFIG_MDIO, /* usConfigType */
- BP_NOT_DEFINED}}, /* usReverseMii */
- BP_MEMORY_32MB_2_CHIP, /* usSdramSize */
+ BP_ENET_CONFIG_SPI_SSB_1, /* usConfigType */
+ BP_ENET_REVERSE_MII}}, /* usReverseMii */
+ {{BP_VOIP_DSP, /* ucDspType */
+ 0x00, /* ucDspAddress */
+ BP_EXT_INTR_2, /* usExtIntrVoip */
+ BP_GPIO_36_AH, /* usGpioVoipReset */
+ BP_GPIO_34_AL, /* usGpioVoipIntr */
+ BP_NOT_DEFINED, /* usGpioLedVoip */
+ BP_CS_2}, /* usCsVoip */
+ {BP_VOIP_NO_DSP}}, /* ucDspType */
+ BP_MEMORY_8MB_1_CHIP, /* usSdramSize */
BP_PSI_DEFAULT_SIZE, /* usPsiSize */
BP_NOT_DEFINED, /* usGpioRj11InnerPair */
BP_NOT_DEFINED, /* usGpioRj11OuterPair */
- BP_NOT_DEFINED, /* usGpioPressAndHoldReset */
- BP_NOT_DEFINED, /* usGpioVoipReset */
- BP_NOT_DEFINED, /* usGpioVoipIntr */
+ BP_GPIO_7_AL, /* usGpioPressAndHoldReset */
+ BP_NOT_DEFINED, /* usGpioPSTN */
+ BP_GPIO_1_AL, /* usGpioLedDiag */
BP_NOT_DEFINED, /* usGpioPcmciaReset */
BP_NOT_DEFINED, /* usGpioUartRts */
BP_NOT_DEFINED, /* usGpioUartCts */
- BP_NOT_DEFINED, /* usGpioLedAdsl */
+ BP_GPIO_3_AL, /* usGpioLedAdsl */
BP_NOT_DEFINED, /* usGpioLedAdslFail */
- BP_NOT_DEFINED, /* usGpioLedWireless */
+ BP_GPIO_11_AL, /* usGpioLedWireless */
BP_NOT_DEFINED, /* usGpioLedUsb */
BP_NOT_DEFINED, /* usGpioLedHpna */
BP_NOT_DEFINED, /* usGpioLedWanData */
- BP_NOT_DEFINED, /* usGpioLedPpp */
+ BP_GPIO_4_AL, /* usGpioLedPpp */
BP_NOT_DEFINED, /* usGpioLedPppFail */
- BP_NOT_DEFINED, /* usGpioLedVoip */
- BP_NOT_DEFINED, /* usGpioLedBlPowerOn */
+ BP_GPIO_0_AL, /* usGpioLedBlPowerOn */
BP_NOT_DEFINED, /* usGpioLedBlAlarm */
- BP_NOT_DEFINED, /* usGpioLedBlResetCfg */
- BP_NOT_DEFINED, /* usGpioLedBlStop */
+ BP_GPIO_7_AL, /* usGpioLedBlResetCfg */
+ BP_GPIO_1_AL, /* usGpioLedBlStop */
BP_NOT_DEFINED, /* usExtIntrWireless */
- BP_HW_DEFINED, /* usExtIntrAdslDyingGasp */
- BP_NOT_DEFINED, /* usExtIntrVoip */
+ BP_NOT_DEFINED, /* usExtIntrAdslDyingGasp */
BP_NOT_DEFINED, /* usExtIntrHpna */
BP_NOT_DEFINED, /* usCsHpna */
- BP_NOT_DEFINED, /* usCsVoip */
- BP_NOT_DEFINED, /* usAntInUseWireless */
+ BP_WLAN_ANT_MAIN, /* usAntInUseWireless */
BP_NOT_DEFINED, /* usGpioSesBtnWireless */
BP_NOT_DEFINED, /* usExtIntrSesBtnWireless */
BP_NOT_DEFINED /* usGpioLedSesWireless */
};
-#endif
static PBOARD_PARAMETERS g_BoardParms[] =
- {&g_bcm96348r, &g_bcm96348r_b, &g_bcm96348lv, &g_bcm96348gw,
- &g_bcm96348gw_b, &g_bcm96348gw_10, &g_bcm96348gw_11, /*&g_bcm96348sv,*/ 0};
+ {&g_bcmRTA1320, &g_bcmRTA1320B, 0};
#endif
static PBOARD_PARAMETERS g_pCurrentBp = 0;
return 0;
} /* bpstrcmp */
+/**************************************************************************
+ * Name : BpGetVoipDspConfig
+ *
+ * Description: Gets the DSP configuration from the board parameter
+ * structure for a given DSP index.
+ *
+ * Parameters : [IN] dspNum - DSP index (number)
+ *
+ * Returns : Pointer to DSP configuration block if found/valid, NULL
+ * otherwise.
+ ***************************************************************************/
+VOIP_DSP_INFO *BpGetVoipDspConfig( unsigned char dspNum );
+VOIP_DSP_INFO *BpGetVoipDspConfig( unsigned char dspNum )
+{
+ VOIP_DSP_INFO *pDspConfig = 0;
+ int i;
+
+ if( g_pCurrentBp )
+ {
+ for( i = 0 ; i < BP_MAX_VOIP_DSP ; i++ )
+ {
+ if( g_pCurrentBp->VoIPDspInfo[i].ucDspType != BP_VOIP_NO_DSP &&
+ g_pCurrentBp->VoIPDspInfo[i].ucDspAddress == dspNum )
+ {
+ pDspConfig = &g_pCurrentBp->VoIPDspInfo[i];
+ break;
+ }
+ }
+ }
+
+ return pDspConfig;
+}
+
+
/**************************************************************************
* Name : BpSetBoardId
*
*
* Parameters : [OUT] pusValue - Address of short word that the VOIP reset
* GPIO pin is returned in.
+ * [IN] dspNum - Address of the DSP to query.
*
* Returns : BP_SUCCESS - Success, value is returned.
* BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
* BP_VALUE_NOT_DEFINED - At least one return value is not defined
* for the board.
***************************************************************************/
-int BpGetVoipResetGpio( unsigned short *pusValue )
+int BpGetVoipResetGpio( unsigned char dspNum, unsigned short *pusValue )
{
int nRet;
if( g_pCurrentBp )
{
- *pusValue = g_pCurrentBp->usGpioVoipReset;
+ VOIP_DSP_INFO *pDspInfo = BpGetVoipDspConfig( dspNum );
- if( g_pCurrentBp->usGpioVoipReset != BP_NOT_DEFINED )
+ if( pDspInfo )
+ {
+ *pusValue = pDspInfo->usGpioVoipReset;
+
+ if( *pusValue != BP_NOT_DEFINED ||
+ *pusValue == BP_UNEQUIPPED )
{
nRet = BP_SUCCESS;
}
}
}
else
+ {
+ *pusValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_FOUND;
+ }
+ }
+ else
{
*pusValue = BP_NOT_DEFINED;
nRet = BP_BOARD_ID_NOT_SET;
*
* Parameters : [OUT] pusValue - Address of short word that the VOIP interrupt
* GPIO pin is returned in.
+ * [IN] dspNum - Address of the DSP to query.
*
* Returns : BP_SUCCESS - Success, value is returned.
* BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
* BP_VALUE_NOT_DEFINED - At least one return value is not defined
* for the board.
***************************************************************************/
-int BpGetVoipIntrGpio( unsigned short *pusValue )
+int BpGetVoipIntrGpio( unsigned char dspNum, unsigned short *pusValue )
{
int nRet;
if( g_pCurrentBp )
{
- *pusValue = g_pCurrentBp->usGpioVoipIntr;
+ VOIP_DSP_INFO *pDspInfo = BpGetVoipDspConfig( dspNum );
+
+ if( pDspInfo )
+ {
+ *pusValue = pDspInfo->usGpioVoipIntr;
- if( g_pCurrentBp->usGpioVoipIntr != BP_NOT_DEFINED )
+ if( *pusValue != BP_NOT_DEFINED )
{
nRet = BP_SUCCESS;
}
}
}
else
+ {
+ *pusValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_FOUND;
+ }
+ }
+ else
{
*pusValue = BP_NOT_DEFINED;
nRet = BP_BOARD_ID_NOT_SET;
* BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
* BP_VALUE_NOT_DEFINED - At least one return value is not defined
* for the board.
+ *
+ * Note : The VoIP structure would allow for having one LED per DSP
+ * however, the board initialization function assumes only one
+ * LED per functionality (ie one LED for VoIP). Therefore in
+ * order to keep this tidy and simple we do not make usage of the
+ * one-LED-per-DSP function. Instead, we assume that the LED for
+ * VoIP is unique and associated with DSP 0 (always present on
+ * any VoIP platform). If changing this to a LED-per-DSP function
+ * then one need to update the board initialization driver in
+ * bcmdrivers\opensource\char\board\bcm963xx\impl1
***************************************************************************/
int BpGetVoipLedGpio( unsigned short *pusValue )
{
if( g_pCurrentBp )
{
- *pusValue = g_pCurrentBp->usGpioLedVoip;
+ VOIP_DSP_INFO *pDspInfo = BpGetVoipDspConfig( 0 );
+
+ if( pDspInfo )
+ {
+ *pusValue = pDspInfo->usGpioLedVoip;
- if( g_pCurrentBp->usGpioLedVoip != BP_NOT_DEFINED )
+ if( *pusValue != BP_NOT_DEFINED )
{
nRet = BP_SUCCESS;
}
}
}
else
+ {
+ *pusValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_FOUND;
+ }
+ }
+ else
{
*pusValue = BP_NOT_DEFINED;
nRet = BP_BOARD_ID_NOT_SET;
*
* Parameters : [OUT] pulValue - Address of short word that the VOIP
* external interrupt number is returned in.
+ * [IN] dspNum - Address of the DSP to query.
*
* Returns : BP_SUCCESS - Success, value is returned.
* BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
* BP_VALUE_NOT_DEFINED - At least one return value is not defined
* for the board.
***************************************************************************/
-int BpGetVoipExtIntr( unsigned long *pulValue )
+int BpGetVoipExtIntr( unsigned char dspNum, unsigned long *pulValue )
{
int nRet;
if( g_pCurrentBp )
{
- *pulValue = g_pCurrentBp->usExtIntrVoip;
+ VOIP_DSP_INFO *pDspInfo = BpGetVoipDspConfig( dspNum );
+
+ if( pDspInfo )
+ {
+ *pulValue = pDspInfo->usExtIntrVoip;
- if( g_pCurrentBp->usExtIntrVoip != BP_NOT_DEFINED )
+ if( *pulValue != BP_NOT_DEFINED )
{
nRet = BP_SUCCESS;
}
}
}
else
+ {
+ *pulValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_FOUND;
+ }
+ }
+ else
{
*pulValue = BP_NOT_DEFINED;
nRet = BP_BOARD_ID_NOT_SET;
*
* Parameters : [OUT] pulValue - Address of short word that the VOIP
* chip select number is returned in.
+ * [IN] dspNum - Address of the DSP to query.
*
* Returns : BP_SUCCESS - Success, value is returned.
* BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
* BP_VALUE_NOT_DEFINED - At least one return value is not defined
* for the board.
***************************************************************************/
-int BpGetVoipChipSelect( unsigned long *pulValue )
+int BpGetVoipChipSelect( unsigned char dspNum, unsigned long *pulValue )
{
int nRet;
if( g_pCurrentBp )
{
- *pulValue = g_pCurrentBp->usCsVoip;
+ VOIP_DSP_INFO *pDspInfo = BpGetVoipDspConfig( dspNum );
- if( g_pCurrentBp->usCsVoip != BP_NOT_DEFINED )
+ if( pDspInfo )
{
- nRet = BP_SUCCESS;
+ *pulValue = pDspInfo->usCsVoip;
+
+ if( *pulValue != BP_NOT_DEFINED )
+ {
+ nRet = BP_SUCCESS;
+ }
+ else
+ {
+ nRet = BP_VALUE_NOT_DEFINED;
+ }
}
else
{
- nRet = BP_VALUE_NOT_DEFINED;
+ *pulValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_FOUND;
}
}
else
return( nRet );
} /* BpGetVoipChipSelect */
+/**************************************************************************
+ * Name : BpGetDiagLedGpio
+ *
+ * Description: This function returns the GPIO pin assignment for the Diag
+ * LED.
+ *
+ * Parameters : [OUT] pusValue - Address of short word that the Diag LED
+ * GPIO pin is returned in.
+ *
+ * Returns : BP_SUCCESS - Success, value is returned.
+ * BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
+ * BP_VALUE_NOT_DEFINED - At least one return value is not defined
+ * for the board.
+ ***************************************************************************/
+int BpGetDiagLedGpio( unsigned short *pusValue )
+{
+ int nRet;
+
+ if( g_pCurrentBp )
+ {
+ *pusValue = g_pCurrentBp->usGpioLedDiag;
+
+ if( g_pCurrentBp->usGpioLedDiag != BP_NOT_DEFINED )
+ {
+ nRet = BP_SUCCESS;
+ }
+ else
+ {
+ nRet = BP_VALUE_NOT_DEFINED;
+ }
+ }
+ else
+ {
+ *pusValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_SET;
+ }
+
+ return( nRet );
+} /* BpGetDiagLedGpio */
+
+/**************************************************************************
+ * Name : BpGetPSTNGpio
+ *
+ * Description: This function returns the GPIO pin assignment for switch PSTN.
+ *
+ * Parameters : [OUT] pusValue - Address of short word that the PSTN
+ *
+ * Returns : BP_SUCCESS - Success, value is returned.
+ * BP_BOARD_ID_NOT_SET - Error, BpSetBoardId has not been called.
+ * BP_VALUE_NOT_DEFINED - At least one return value is not defined
+ * for the board.
+ ***************************************************************************/
+int BpGetPSTNGpio( unsigned short *pusValue )
+{
+ int nRet;
+
+ if( g_pCurrentBp )
+ {
+ *pusValue = g_pCurrentBp->usGpioPSTN;
+
+ if( g_pCurrentBp->usGpioPSTN != BP_NOT_DEFINED )
+ {
+ nRet = BP_SUCCESS;
+ }
+ else
+ {
+ nRet = BP_VALUE_NOT_DEFINED;
+ }
+ }
+ else
+ {
+ *pusValue = BP_NOT_DEFINED;
+ nRet = BP_BOARD_ID_NOT_SET;
+ }
+
+ return( nRet );
+} /* BpGetPSTNGpio */
+
+
+
+