All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option
Date: Sun, 27 Jul 2014 23:25:20 +0200	[thread overview]
Message-ID: <1406496323-13093-4-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1406496323-13093-1-git-send-email-hdegoede@redhat.com>

On some boards the phy needs to be powered up through a gpio, add support for
this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/cpu/armv7/sunxi/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c
index 8f2cef3..f2cedbb 100644
--- a/arch/arm/cpu/armv7/sunxi/board.c
+++ b/arch/arm/cpu/armv7/sunxi/board.c
@@ -129,6 +129,11 @@ int cpu_eth_init(bd_t *bis)
 {
 	__maybe_unused int rc;
 
+#ifdef CONFIG_MACPWR
+	gpio_direction_output(CONFIG_MACPWR, 1);
+	mdelay(200);
+#endif
+
 #ifdef CONFIG_SUNXI_EMAC
 	rc = sunxi_emac_initialize(bis);
 	if (rc < 0) {
-- 
2.0.1

  parent reply	other threads:[~2014-07-27 21:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-27 21:25 [U-Boot] [PATCH 1/7] sun4i: add USB EHCI settings Hans de Goede
2014-07-27 21:25 ` [U-Boot] [PATCH 2/7] sun5i: " Hans de Goede
2014-07-28  7:42   ` Ian Campbell
2014-07-28  8:22     ` Hans de Goede
2014-07-27 21:25 ` [U-Boot] [PATCH 3/7] sunxi: Enable EHCI on various sunxi boards Hans de Goede
2014-07-28  7:44   ` Ian Campbell
2014-07-27 21:25 ` Hans de Goede [this message]
2014-07-28  7:48   ` [U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option Ian Campbell
2014-07-28  7:51     ` [U-Boot] [linux-sunxi] " Chen-Yu Tsai
2014-07-28  7:59       ` Ian Campbell
2014-07-28  8:23     ` Hans de Goede
2014-07-28  8:09   ` [U-Boot] " thomas.langer at lantiq.com
2014-07-28  8:59     ` Hans de Goede
2014-07-27 21:25 ` [U-Boot] [PATCH 5/7] sun4i: Add support for a number of new sun4i boards Hans de Goede
2014-07-28  7:54   ` Ian Campbell
2014-07-28  8:46     ` Hans de Goede
2014-07-28  8:50       ` Ian Campbell
2014-09-18 16:07   ` [U-Boot] [linux-sunxi] " Siarhei Siamashka
2014-09-28 15:58     ` Hans de Goede
2014-09-28 19:34       ` Arnd Gronenberg
2014-09-28 22:09         ` Siarhei Siamashka
2014-09-29  8:31           ` Arnd Gronenberg
2014-09-29  5:38       ` Siarhei Siamashka
2014-09-29  5:46         ` Siarhei Siamashka
2014-07-27 21:25 ` [U-Boot] [PATCH 6/7] sun5i: Add support for a number of new sun5i boards Hans de Goede
2014-07-27 21:25 ` [U-Boot] [PATCH 7/7] sun7i: Add support for a number of new sun7i boards Hans de Goede
2014-07-28  7:38 ` [U-Boot] [PATCH 1/7] sun4i: add USB EHCI settings Ian Campbell

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=1406496323-13093-4-git-send-email-hdegoede@redhat.com \
    --to=hdegoede@redhat.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.