All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brilliantov Kirill Vladimirovich <brilliantov@byterg.ru>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] add new PHY chips support
Date: Tue, 04 Oct 2011 10:25:37 +0400	[thread overview]
Message-ID: <4E8AA6E1.1060207@byterg.ru> (raw)

TexasInstruments Davinci DM365/8 processors havn't 1000Mb/s support.
Tested on U-boot 1.3.4

Signed-off-by: Brilliantov Kirill Vladimirovich <brilliantov@byterg.ru>
---
  cpu/arm926ejs/davinci/ether.c |    7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cpu/arm926ejs/davinci/ether.c b/cpu/arm926ejs/davinci/ether.c
index 6dfa955..13292e1 100644
--- a/cpu/arm926ejs/davinci/ether.c
+++ b/cpu/arm926ejs/davinci/ether.c
@@ -382,6 +382,7 @@ static int davinci_eth_hw_init(void)
         }

         phy_id |= tmp & 0x0000ffff;
+       debug_emac("phy_id %#x\n", phy_id);

         switch (phy_id) {
                 case PHY_LXT972:
@@ -528,7 +529,7 @@ static int davinci_eth_open(void)
         if (!phy.get_link_speed(active_phy_addr))
                 return(0);
         else {
-#if defined(CFG_DM6467_EVM) || defined(CFG_DM365_EVM) || 
defined(CFG_DM365_IPNC) || defined(CFG_DM368_IPNC)
+#if defined(CFG_DM6467_EVM)
                 emac_gigabit_enable();
  #endif
         }
@@ -623,7 +624,7 @@ static int davinci_eth_send_packet (volatile void 
*packet, int length)
                 return (ret_status);
         }
         else {
-#if defined(CFG_DM6467_EVM) || defined(CFG_DM365_EVM) || 
defined(CFG_DM365_IPNC) || defined(CFG_DM368_IPNC)
+#if defined(CFG_DM6467_EVM)
                 emac_gigabit_enable();
  #endif
         }
@@ -651,7 +652,7 @@ static int davinci_eth_send_packet (volatile void 
*packet, int length)
                         return (ret_status);
                 }
                 else {
-#if defined(CFG_DM6467_EVM) || defined(CFG_DM365_EVM) || 
defined(CFG_DM365_IPNC) || defined(CFG_DM368_IPNC)
+#if defined(CFG_DM6467_EVM)
                         emac_gigabit_enable();
  #endif
                 }
-- 

-- 
? ?????????,
??????????? ?????? ????????????
?????????????????????????
???????????, ??????????? ?????
??? ?????????
??????????? ??? ? ????????????? ???????? ???????
?????????????????????????
+7(495)221-66-22
http://www.byterg.ru    http://www.bestdvr.ru

             reply	other threads:[~2011-10-04  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04  6:25 Brilliantov Kirill Vladimirovich [this message]
2011-10-21 18:48 ` [U-Boot] [PATCH 1/3] add new PHY chips support Albert ARIBAUD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E8AA6E1.1060207@byterg.ru \
    --to=brilliantov@byterg.ru \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.