From patchwork Thu Apr 15 09:02:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Upadhyay X-Patchwork-Id: 71754 Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id C6A64EEE8D8 for ; Thu, 15 Apr 2010 11:08:52 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id B61EEC913130 for ; Thu, 15 Apr 2010 11:08:52 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Thu, 15 Apr 2010 11:08:52 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 15 Apr 2010 11:08:50 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Thu, 15 Apr 2010 11:08:50 +0200 Received: from scanner-1.m-online.net (unknown [192.168.8.165]) by mail.m-online.net (Postfix) with ESMTP id 3F02E202EF9; Thu, 15 Apr 2010 11:08:50 +0200 (CEST) Received: from mxin-3.m-online.net ([192.168.6.165]) by scanner-1.m-online.net (scanner-1.m-online.net [192.168.8.165]) (amavisd-new, port 10026) with ESMTP id 02069-07-3; Thu, 15 Apr 2010 11:08:48 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-3.m-online.net (Postfix) with ESMTP id 22A9B47A4FB; Thu, 15 Apr 2010 11:08:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 58EFA2807D; Thu, 15 Apr 2010 11:08:35 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ORJB0tkWVZv2; Thu, 15 Apr 2010 11:08:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EDE02807E; Thu, 15 Apr 2010 11:08:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2AB3D2807B for ; Thu, 15 Apr 2010 11:08:26 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vP9luloHvLHB for ; Thu, 15 Apr 2010 11:08:20 +0200 (CEST) X-Greylist: delayed 396 seconds by postgrey-1.27 at theia; Thu, 15 Apr 2010 11:08:18 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from ahmedabad.einfochips.com (india.einfochips.com [203.88.139.151]) by theia.denx.de (Postfix) with ESMTPS id 0785328078 for ; Thu, 15 Apr 2010 11:08:18 +0200 (CEST) Received: (qmail 6551 invoked by uid 118); 15 Apr 2010 09:05:14 -0000 Received: from 192.168.14.15 by ahm (envelope-from , uid 112) with qmail-scanner-1.25st (spamassassin: 3.1.7-deb. altermime: ???. perlscan: 1.25st. Clear:RC:1(192.168.14.15):. Processed in 0.013121 secs); 15 Apr 2010 09:05:14 -0000 Received: from unknown (HELO localhost.localdomain) (tanmay.upadhyay@einfochips.com@[192.168.14.15]) (envelope-sender ) by ahmedabad.einfochips.com (qmail-ldap-1.03) with SMTP for ; 15 Apr 2010 09:05:13 -0000 From: Tanmay Upadhyay To: u-boot@lists.denx.de Date: Thu, 15 Apr 2010 14:32:14 +0530 Message-Id: <1271322134-15031-1-git-send-email-tanmay.upadhyay@einfochips.com> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: References: Cc: Dhaval Vasa , Tanmay Upadhyay Subject: [U-Boot] [PATCH] OpenRD: Bring PCIe endpoint out of reset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net There exists PCIe endpoints(not all) that remains in reset state till PERST# line (A11 on the PCIe connector) is hold low. They come out of reset only when this line is high. In case of OpenRD, this line was in tri-state. So, some of the PCIe devices would never appear on the PCIe bus. This patch makes PERST# line high while booting to bring such PCIe devices out of reset. XGI Vollari Z11 GPU and Intel WiFi 4965 are the ones who doesn't care about this line. Where as Broadcom's BCM970012 won't appear on the PCIe bus until PERST# is high. With this patch both kinds of device would appear on the PCIe bus. Signed-off-by: Tanmay Upadhyay Signed-off-by: Dhaval Vasa --- board/Marvell/openrd_base/openrd_base.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/Marvell/openrd_base/openrd_base.h b/board/Marvell/openrd_base/openrd_base.h index f3daf17..965bd50 100644 --- a/board/Marvell/openrd_base/openrd_base.h +++ b/board/Marvell/openrd_base/openrd_base.h @@ -30,10 +30,10 @@ #ifndef __OPENRD_BASE_H #define __OPENRD_BASE_H -#define OPENRD_OE_LOW (~(1<<28)) /* RS232 / RS485 */ -#define OPENRD_OE_HIGH (~(1<<2)) /* SD / UART1 */ -#define OPENRD_OE_VAL_LOW (0) /* Sel RS232 */ -#define OPENRD_OE_VAL_HIGH (1 << 2) /* Sel SD */ +#define OPENRD_OE_LOW (~((1<<28) | (1<<7))) /* RS232 / RS485 */ +#define OPENRD_OE_HIGH (~(1<<2)) /* SD / UART1 */ +#define OPENRD_OE_VAL_LOW (1<<7) /* Sel RS232 */ +#define OPENRD_OE_VAL_HIGH (1 << 2) /* Sel SD */ /* PHY related */ #define MV88E1116_LED_FCTRL_REG 10