diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-30 16:04:14 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-30 16:04:14 -0400 |
| commit | 54413b825ca502b9384edabf972c512c29d64010 (patch) | |
| tree | 7c8eed91a9e720f042aca51f05e4da0d7b062804 /drivers/staging | |
| parent | be1066bbcd443a65df312fdecea7e4959adedb45 (diff) | |
| parent | 64fc74f5f6055e8470208a7d9cfc8d3994fff34d (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (27 commits)
MIPS: Loongson 2F: Fix of problems introduced by -mfix-loongson2f-jump
MIPS: Loongson-2F: Use CONFIG_CPU_JUMP_WORKAROUNDS to control workarounds.
MIPS: Loongson 2F: Enable fixups of the latest binutils
MIPS: Loongson: Add CPU_LOONGSON2F_WORKAROUNDS
MIPS: Kconfig: Make Broadcom SoC support naming consistent
MIPS: BCM63xx: Update defconfig
MIPS: oprofile: Fix breakage when CONFIG_OPROFILE=m
STAGING: octeon-ethernet: Use proper phy addresses for Movidis hardware.
NET: mdio-octeon: Enable the hardware before using it.
I2C: Fix section mismatch errors in i2c-octeon.c
MIPS: Loongson: Fix LOONGSON_ADDRWIN_CFG macro.
MIPS: Loongson: Fix phys_mem_access_prot() check
MIPS: Loongson: Fix find_vga_mem_init()
MIPS: Loongson: Fix typo in gdium mach type string.
MIPS: Use CKSEG1ADDR for uncached handler
MIPS: Check for accesses beyond the end of the PGD.
MIPS: Use uasm_i_ds{r,l}l_safe() instead of uasm_i_ds{r,l}l() in tlbex.c
MIPS: Add uasm_i_dsrl_safe() and uasm_i_dsll_safe() to uasm.
MIPS: die() does not call die notifier chain
MIPS: Swarm, Littlesur: Enable PATA platform driver.
...
Diffstat (limited to 'drivers/staging')
| -rw-r--r-- | drivers/staging/octeon/cvmx-helper-board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/octeon/cvmx-helper-board.c b/drivers/staging/octeon/cvmx-helper-board.c index 3085e38a6f99..00a555b83354 100644 --- a/drivers/staging/octeon/cvmx-helper-board.c +++ b/drivers/staging/octeon/cvmx-helper-board.c | |||
| @@ -153,6 +153,14 @@ int cvmx_helper_board_get_mii_address(int ipd_port) | |||
| 153 | * through switch. | 153 | * through switch. |
| 154 | */ | 154 | */ |
| 155 | return -1; | 155 | return -1; |
| 156 | |||
| 157 | case CVMX_BOARD_TYPE_CUST_WSX16: | ||
| 158 | if (ipd_port >= 0 && ipd_port <= 3) | ||
| 159 | return ipd_port; | ||
| 160 | else if (ipd_port >= 16 && ipd_port <= 19) | ||
| 161 | return ipd_port - 16 + 4; | ||
| 162 | else | ||
| 163 | return -1; | ||
| 156 | } | 164 | } |
| 157 | 165 | ||
| 158 | /* Some unknown board. Somebody forgot to update this function... */ | 166 | /* Some unknown board. Somebody forgot to update this function... */ |
