diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-13 01:00:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 01:00:49 -0500 |
commit | 6f158d5f29b420438e907d72cb111ddb9973f00a (patch) | |
tree | 38d7696c47a706447c6bf8e66f52a5854d781464 /drivers/net/sfc/falcon.c | |
parent | e6fa2eb789f49dc51a20d3db0d410bc8158abb43 (diff) |
sfc: Add support for SFN4111T
Add support code for the SFN4111T 100/1000/10GBASE-T reference design,
based in part on the existing code for the SFE4001.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon.c')
-rw-r--r-- | drivers/net/sfc/falcon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index db8e147f00b2..84771a792099 100644 --- a/drivers/net/sfc/falcon.c +++ b/drivers/net/sfc/falcon.c | |||
@@ -2971,6 +2971,13 @@ int falcon_init_nic(struct efx_nic *efx) | |||
2971 | EFX_SET_OWORD_FIELD(temp, ONCHIP_SRAM, 1); | 2971 | EFX_SET_OWORD_FIELD(temp, ONCHIP_SRAM, 1); |
2972 | falcon_write(efx, &temp, NIC_STAT_REG); | 2972 | falcon_write(efx, &temp, NIC_STAT_REG); |
2973 | 2973 | ||
2974 | /* Set the source of the GMAC clock */ | ||
2975 | if (falcon_rev(efx) == FALCON_REV_B0) { | ||
2976 | falcon_read(efx, &temp, GPIO_CTL_REG_KER); | ||
2977 | EFX_SET_OWORD_FIELD(temp, GPIO_USE_NIC_CLK, true); | ||
2978 | falcon_write(efx, &temp, GPIO_CTL_REG_KER); | ||
2979 | } | ||
2980 | |||
2974 | /* Set buffer table mode */ | 2981 | /* Set buffer table mode */ |
2975 | EFX_POPULATE_OWORD_1(temp, BUF_TBL_MODE, BUF_TBL_MODE_FULL); | 2982 | EFX_POPULATE_OWORD_1(temp, BUF_TBL_MODE, BUF_TBL_MODE_FULL); |
2976 | falcon_write(efx, &temp, BUF_TBL_CFG_REG_KER); | 2983 | falcon_write(efx, &temp, BUF_TBL_CFG_REG_KER); |