diff options
author | Sahin Okur | 2019-07-02 10:33:04 -0500 |
---|---|---|
committer | Tinku Mannan | 2019-08-06 06:52:14 -0500 |
commit | 1976a8779e76adf57ddaf6c02be5f4f7e0c258c1 (patch) | |
tree | 5030e1802ebc96b977c604ee4c5866de49747b5b | |
parent | 72cbee83c84a97417b309f19e3795754f7def379 (diff) | |
download | emac-lld-1976a8779e76adf57ddaf6c02be5f4f7e0c258c1.tar.gz emac-lld-1976a8779e76adf57ddaf6c02be5f4f7e0c258c1.tar.xz emac-lld-1976a8779e76adf57ddaf6c02be5f4f7e0c258c1.zip |
implementing RMIISpeedSelect function
-rw-r--r-- | soc/omapl138/emac_soc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/soc/omapl138/emac_soc.c b/soc/omapl138/emac_soc.c index b1ed5f1..1d55fcc 100644 --- a/soc/omapl138/emac_soc.c +++ b/soc/omapl138/emac_soc.c | |||
@@ -138,5 +138,9 @@ int32_t EMAC_socSetInitCfg(uint32_t port_num, const EMAC_HwAttrs_V0 *cfg) | |||
138 | */ | 138 | */ |
139 | uint32_t EMAC_RMIISpeedSelect(uint32_t tmpval) | 139 | uint32_t EMAC_RMIISpeedSelect(uint32_t tmpval) |
140 | { | 140 | { |
141 | if (0 != (EMACInitCfg[0].modeFlags & EMAC_CONFIG_MODEFLG_RMIISPEED)) | ||
142 | { | ||
143 | CSL_FINST(tmpval, EMAC_MACCONTROL_RMIISPEED, 100MBIT); | ||
144 | } | ||
141 | return tmpval; | 145 | return tmpval; |
142 | } | 146 | } |