mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: franck.jullien@gmail.com
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] Add platform data to the mac device
Date: Mon, 11 Apr 2011 23:52:09 +0200	[thread overview]
Message-ID: <1302558729-3298-4-git-send-email-franck.jullien@gmail.com> (raw)
In-Reply-To: <1302558729-3298-1-git-send-email-franck.jullien@gmail.com>

From: Franck JULLIEN <franck.jullien@gmail.com>

The PHY address must be passed to the driver via platform_data.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
---
 arch/nios2/boards/generic/generic.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c
index 99c855d..7e939ce 100644
--- a/arch/nios2/boards/generic/generic.c
+++ b/arch/nios2/boards/generic/generic.c
@@ -11,11 +11,14 @@ static struct device_d cfi_dev = {
 	.size     = NIOS_SOPC_FLASH_SIZE,
 };
 
+static int phy_address = 1;
+
 static struct device_d mac_dev = {
-	.id       = -1,
-	.name     = "altera_tse",
-	.map_base = NIOS_SOPC_TSE_BASE,
-	.size     = 0x00000400,
+	.id            = -1,
+	.name          = "altera_tse",
+	.map_base      = NIOS_SOPC_TSE_BASE,
+	.size          = 0x00000400,
+	.platform_data = &phy_address,
 };
 
 static struct memory_platform_data ram_pdata = {
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2011-04-11 21:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 21:52 [PATCH 0/3] Add Altera TSE driver franck.jullien
2011-04-11 21:52 ` [PATCH 1/3] Fix coding style in driver/net/Makefile franck.jullien
2011-04-11 21:52 ` [PATCH 2/3] [v3] Nios2: Add Altera TSE driver franck.jullien
2011-04-27 19:14   ` Franck JULLIEN
2011-04-11 21:52 ` franck.jullien [this message]

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=1302558729-3298-4-git-send-email-franck.jullien@gmail.com \
    --to=franck.jullien@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox