All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Ellis <scott@jumpnowtek.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Overo GPMC registers
Date: Mon, 25 Jan 2010 10:52:36 -0500	[thread overview]
Message-ID: <1264434756.29002.3.camel@quad> (raw)

Use appropriate GPMC timings for the LAN9221 controller on the 
Gumstix Overo expansion boards not the values in arch-omap3/mem.h 
which are for a different ethernet controller.

Signed-off-by: Scott Ellis <scott <at> jumpnowtek.com>
---
 board/overo/overo.c |   14 +++++++-------
 board/overo/overo.h |    9 +++++++++
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/board/overo/overo.c b/board/overo/overo.c
index d42dc13..5e94a36 100644
--- a/board/overo/overo.c
+++ b/board/overo/overo.c
@@ -100,13 +100,13 @@ static void setup_net_chip(void)
 	struct ctrl *ctrl_base = (struct ctrl *)OMAP34XX_CTRL_BASE;
 
 	/* Configure GPMC registers */
-	writel(NET_GPMC_CONFIG1, &gpmc_cfg->cs[5].config1);
-	writel(NET_GPMC_CONFIG2, &gpmc_cfg->cs[5].config2);
-	writel(NET_GPMC_CONFIG3, &gpmc_cfg->cs[5].config3);
-	writel(NET_GPMC_CONFIG4, &gpmc_cfg->cs[5].config4);
-	writel(NET_GPMC_CONFIG5, &gpmc_cfg->cs[5].config5);
-	writel(NET_GPMC_CONFIG6, &gpmc_cfg->cs[5].config6);
-	writel(NET_GPMC_CONFIG7, &gpmc_cfg->cs[5].config7);
+	writel(NET_LAN9221_GPMC_CONFIG1, &gpmc_cfg->cs[5].config1);
+	writel(NET_LAN9221_GPMC_CONFIG2, &gpmc_cfg->cs[5].config2);
+	writel(NET_LAN9221_GPMC_CONFIG3, &gpmc_cfg->cs[5].config3);
+	writel(NET_LAN9221_GPMC_CONFIG4, &gpmc_cfg->cs[5].config4);
+	writel(NET_LAN9221_GPMC_CONFIG5, &gpmc_cfg->cs[5].config5);
+	writel(NET_LAN9221_GPMC_CONFIG6, &gpmc_cfg->cs[5].config6);
+	writel(NET_LAN9221_GPMC_CONFIG7, &gpmc_cfg->cs[5].config7);
 
 	/* Enable off mode for NWE in PADCONF_GPMC_NWE register */
 	writew(readw(&ctrl_base ->gpmc_nwe) | 0x0E00, &ctrl_base->gpmc_nwe);
diff --git a/board/overo/overo.h b/board/overo/overo.h
index 4c7ac27..1873523 100644
--- a/board/overo/overo.h
+++ b/board/overo/overo.h
@@ -33,6 +33,15 @@ const omap3_sysinfo sysinfo = {
 #endif
 };
 
+/* GPMC CS 5 connected to an SMSC LAN9221 ethernet controller */
+#define NET_LAN9221_GPMC_CONFIG1    0x00001000
+#define NET_LAN9221_GPMC_CONFIG2    0x00080701
+#define NET_LAN9221_GPMC_CONFIG3    0x00020201
+#define NET_LAN9221_GPMC_CONFIG4    0x08030703
+#define NET_LAN9221_GPMC_CONFIG5    0x00060908
+#define NET_LAN9221_GPMC_CONFIG6    0x87030000
+#define NET_LAN9221_GPMC_CONFIG7    0x00000f6c
+
 /*
  * IEN  - Input Enable
  * IDIS - Input Disable

             reply	other threads:[~2010-01-25 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25 15:52 Scott Ellis [this message]
2010-01-26 13:32 ` [U-Boot] [PATCH] Overo GPMC registers Paulraj, Sandeep

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=1264434756.29002.3.camel@quad \
    --to=scott@jumpnowtek.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.