public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 8/9] usb: Add CFG_OHCI_USE_NPS to common USB-OHCI driver
Date: Tue, 11 Mar 2008 11:06:11 +0100	[thread overview]
Message-ID: <1205229972-23607-8-git-send-email-sr@denx.de> (raw)
In-Reply-To: <1205229972-23607-1-git-send-email-sr@denx.de>

This patch adds CFG_OHCI_USE_NPS to the common USB-OHCI driver. This
way a board just needs to define this new option to enable the "force
NoPowerSwitching mode" instead of adding new CPU/architecture defines
to the USB source itself.

This new option will be used first with the new AMCC 460EX Canyonlands
board port, which will be posted in a few days.

This patch also fixes a small compilation problem when DEBUG is enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
---
 drivers/usb/usb_ohci.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
index fb4726f..829bbca 100644
--- a/drivers/usb/usb_ohci.c
+++ b/drivers/usb/usb_ohci.c
@@ -68,7 +68,8 @@
     defined(CONFIG_S3C2410) || \
     defined(CONFIG_440EP) || \
     defined(CONFIG_PCI_OHCI) || \
-    defined(CONFIG_MPC5200)
+    defined(CONFIG_MPC5200) || \
+    defined(CFG_OHCI_USE_NPS)
 # define OHCI_USE_NPS		/* force NoPowerSwitching mode */
 #endif
 
@@ -415,7 +416,7 @@ static void ohci_dump (ohci_t *controller, int verbose)
 		ep_print_int_eds (controller, "hcca");
 	dbg ("hcca frame #%04x", controller->hcca->frame_no);
 	ohci_dump_roothub (controller, 1);
-
+}
 #endif /* DEBUG */
 
 /*-------------------------------------------------------------------------*
-- 
1.5.4.4

  parent reply	other threads:[~2008-03-11 10:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 10:06 [U-Boot-Users] [PATCH 1/9] rtc: Add M41T62 support Stefan Roese
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 2/9] ppc4xx: miiphy.c reworked Stefan Roese
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 3/9] ppc4xx: program_tlb now uses 64bit physical addess Stefan Roese
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 4/9] ppc4xx: interrupt.c reworked Stefan Roese
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 6/9] ppc4xx: Add AMCC Canyonlands support (460EX) Stefan Roese
2008-03-11 13:26   ` [U-Boot-Users] [PATCH 5/9] ppc4xx: Add basic support for AMCC 460EX/460GT Stefan Roese
2008-03-11 13:35     ` Wolfgang Denk
2008-03-11 13:51       ` Stefan Roese
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 7/9] ppc4xx: Add Canyonlands NAND booting support Stefan Roese
2008-03-11 10:06 ` Stefan Roese [this message]
2008-03-11 10:06 ` [U-Boot-Users] [PATCH 9/9] ppc4xx: Add USB OHCI support to AMCC Canyonlands 460EX eval board 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=1205229972-23607-8-git-send-email-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox