All of lore.kernel.org
 help / color / mirror / Atom feed
From: hendrik <hendrik.vastech@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Vitesse Phy not recognized VSC8211
Date: Fri, 13 Feb 2009 14:36:18 +0200	[thread overview]
Message-ID: <49956942.7070707@gmail.com> (raw)

Hi all

In porting from U-Boot 1.2  to U-boot 2009 i noticed that the phys on my 
board was not detected and defulted to Generic/Unrecognised; while 
looking through my code for U-boot 1.2 I found a  phy_info struct for 
the Vitesse phys my board has( in drivers/tsec.c). The Same struck does 
not appear in U-boot 2009 (drivers/net/tsec.c) I presume that my 
predecessor defined the struct "phy_info_VSC8211". can I simply copy the 
struct into the nee U-boot code and how can I confirm that the struct 
contains valid settings?

struct phy_info phy_info_VSC8211 = {
    0xfc4b,
    "Vitesse VSC8211",
    4,
    (struct phy_cmd[]) { /* config */
        /* Override PHY config settings */
        {MIIM_CIS8201_AUX_CONSTAT, MIIM_CIS8201_AUXCONSTAT_INIT, NULL},
        /* Set up the interface mode */
        {MIIM_CIS8201_EXT_CON1, MIIM_CIS8201_EXTCON1_INIT, NULL},
        /* Configure some basic stuff */
        {MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init},
        {miim_end,}
    },
    (struct phy_cmd[]) { /* startup */
        /* Read the Status (2x to make sure link is right) */
        {MIIM_STATUS, miim_read, NULL},
        /* Auto-negotiate */
        {MIIM_STATUS, miim_read, &mii_parse_sr},
        /* Read the status */
        {MIIM_CIS8201_AUX_CONSTAT, miim_read, &mii_parse_cis8201},
        {miim_end,}
    },
    (struct phy_cmd[]) { /* shutdown */
        {miim_end,}
    },
};

When i included the struct as is the my board with the MPC8548 ver1 cpu 
worked correctly but the board with ver2 CPU does not work.
A would appeciate any help

thanks Hendrik

             reply	other threads:[~2009-02-13 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 12:36 hendrik [this message]
2009-02-13 17:50 ` [U-Boot] Vitesse Phy not recognized VSC8211 Andy Fleming
2009-02-16  6:18   ` hendrik
2009-02-17  9:27     ` Pieter

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=49956942.7070707@gmail.com \
    --to=hendrik.vastech@gmail.com \
    --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.