From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4] Gbe Controller driver support for kirkwood SOCs
Date: Tue, 26 May 2009 16:56:13 +0200 [thread overview]
Message-ID: <200905261656.13487.sr@denx.de> (raw)
In-Reply-To: <1242937472-30778-4-git-send-email-prafulla@marvell.com>
Hi Prafulla,
On Thursday 21 May 2009 22:24:32 Prafulla Wadaskar wrote:
> Contributors:
> Yotam Admon <yotam@marvell.com>
> Michael Blostein <michaelbl@marvell.com
>
> Reviewed by: Ronen Shitrit <rshitrit@marvell.com>
> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
> ---
> Change log:
> v2: entire rewrite/restructure of v1
> used small names for variable/function names
> readl/writel used to access SoC registers
> Soc registers accssed using pointers through net device struct
> miiphy registration done for external smi read/write access
> miiphy_link used to detect phy link presence
> cleaned for cosmetic changes
Please find a comment below.
> diff --git a/drivers/net/kirkwood_egiga.h b/drivers/net/kirkwood_egiga.h
> new file mode 100644
> index 0000000..9f3908e
> --- /dev/null
> +++ b/drivers/net/kirkwood_egiga.h
> @@ -0,0 +1,828 @@
> +/*
> + * (C) Copyright 2009
> + * Marvell Semiconductor <www.marvell.com>
> + * Prafulla Wadaskar <prafulla@marvell.com>
> + *
> + * based on - Driver for MV64360X ethernet ports
> + * Copyright (C) 2002 rabeeh at galileo.co.il
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
> + * MA 02110-1301 USA
> + */
> +
> +#ifndef __EGIGA_H__
> +#define __EGIGA_H__
> +
> +#define MAX_KWGBE_DEVS 2 /*controller has two ports */
<snip>
> +/* Default port serial control value */
> +#define PORT_SERIAL_CONTROL_VALUE_TMP \
> + KWGBE_FORCE_LINK_PASS | \
> + KWGBE_DIS_AUTO_NEG_FOR_DUPLX | \
> + KWGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
> + KWGBE_ADV_NO_FLOW_CTRL | \
> + KWGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
> + KWGBE_FORCE_BP_MODE_NO_JAM | \
> + (1 << 9) | \
> + KWGBE_DO_NOT_FORCE_LINK_FAIL | \
> + KWGBE_DIS_AUTO_NEG_SPEED_GMII | \
You disable speed auto-negotiation here. Why are you doing this? Using auto-
negotiation should be the default operation mode from my point of view.
> + KWGBE_DTE_ADV_0 | \
> + KWGBE_MIIPHY_MAC_MODE | \
> + KWGBE_AUTO_NEG_NO_CHANGE | \
> + KWGBE_MAX_RX_PACKET_1552BYTE | \
> + KWGBE_CLR_EXT_LOOPBACK | \
> + KWGBE_SET_FULL_DUPLEX_MODE | \
> + KWGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX | \
> + KWGBE_SET_MII_SPEED_TO_100
> +
> +#ifdef CONFIG_SYS_MII_MODE
> +#define PORT_SERIAL_CONTROL_VALUE \
> + PORT_SERIAL_CONTROL_VALUE_TMP | \
> + KWGBE_SET_GMII_SPEED_TO_10_100
> +#else
> +#define PORT_SERIAL_CONTROL_VALUE \
> + PORT_SERIAL_CONTROL_VALUE_TMP | \
> + KWGBE_SET_GMII_SPEED_TO_1000
> +#endif
If you need a fixed link speed configuration we should perhaps add a
configuration option for this. What do you think?
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2009-05-26 14:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 20:24 [U-Boot] [PATCH v10] Marvell Kirkwood family SOC support Prafulla Wadaskar
2009-05-21 20:24 ` [U-Boot] [PATCH] Marvell Sheevaplug Board support Prafulla Wadaskar
2009-05-21 20:24 ` [U-Boot] [PATCH] Marvell MV88E1116 PHY Driver support Prafulla Wadaskar
2009-05-21 20:24 ` [U-Boot] [PATCH v4] Gbe Controller driver support for kirkwood SOCs Prafulla Wadaskar
2009-05-26 6:34 ` Ben Warren
2009-05-26 6:54 ` Prafulla Wadaskar
2009-05-26 14:56 ` Stefan Roese [this message]
2009-05-27 5:26 ` Prafulla Wadaskar
2009-05-27 7:10 ` Stefan Roese
[not found] ` <73173D32E9439E4ABB5151606C3E19E201CFBDC5A1@SC-VEXCH1.marvell.com>
2009-05-30 16:06 ` [U-Boot] [PATCH] Marvell MV88E1116 PHY Driver support Ben Warren
2009-06-02 11:22 ` Prafulla Wadaskar
2009-05-22 8:21 ` [U-Boot] [PATCH] Marvell Sheevaplug Board support Stefan Roese
2009-05-22 11:02 ` Wolfgang Denk
2009-05-22 12:08 ` Prafulla Wadaskar
2009-05-22 12:17 ` Prafulla Wadaskar
2009-05-22 15:22 ` Wolfgang Denk
2009-05-25 4:56 ` [U-Boot] [PATCH v10] Marvell Kirkwood family SOC support Prafulla Wadaskar
2009-05-25 7:11 ` Stefan Roese
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=200905261656.13487.sr@denx.de \
--to=sr@denx.de \
--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.