summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorCyril Jourdan2012-08-21 14:48:44 +0200
committerCyril Jourdan2012-09-20 11:21:17 +0200
commit284f82b2964fa8cba3235702b46a0a2f480788bd (patch)
treefee83cbdc9047480f28bc70a076877bbe83b7836 /common
parentfe3e67afee7190e19db864fed1aac1a32c055c76 (diff)
common/inc/asm/arch: add RGMII mode in pkg_cfg NVRAM field, refs #2961
Diffstat (limited to 'common')
-rw-r--r--common/include/asm/arch/nvram.h1
-rw-r--r--common/tools/genNVRAM/genNVRAM.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/common/include/asm/arch/nvram.h b/common/include/asm/arch/nvram.h
index 01f9a54dbe..7ab4fcfae4 100644
--- a/common/include/asm/arch/nvram.h
+++ b/common/include/asm/arch/nvram.h
@@ -234,6 +234,7 @@ static inline void spidcom_nvram_copy(void* dst, void* src, unsigned int length)
#define NVRAM_ETH_MODE_MII 0
#define NVRAM_ETH_MODE_RMII 1
#define NVRAM_ETH_MODE_GMII 2
+#define NVRAM_ETH_MODE_RGMII 3
#define NVRAM_MSE500_MODE_200 1
#define NVRAM_MSE500_MODE_300 2
#define NVRAM_MSE500_MODE_500 3
diff --git a/common/tools/genNVRAM/genNVRAM.c b/common/tools/genNVRAM/genNVRAM.c
index 0cf83ea806..8893beac5f 100644
--- a/common/tools/genNVRAM/genNVRAM.c
+++ b/common/tools/genNVRAM/genNVRAM.c
@@ -526,7 +526,7 @@ static int parse_pkgcfg(char *arg)
}
phy_mode = (nvram.pkg_cfg & 0x0300) >> 8;
- if(phy_mode > 2)
+ if(phy_mode > 3)
{
fprintf (stderr, "Bad pkgcfg value %04x (phy = %d)\n", nvram.pkg_cfg, phy_mode);
return -1;