From patchwork Thu Dec 13 01:55:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 205705 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 48B982C0093 for ; Thu, 13 Dec 2012 12:58:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D1CD44A228; Thu, 13 Dec 2012 02:58:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 uMUZ2+DCXyqK; Thu, 13 Dec 2012 02:58:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F2CF4A1D5; Thu, 13 Dec 2012 02:57:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 463EA4A1CE for ; Thu, 13 Dec 2012 02:57:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 vkdoBXORomXh for ; Thu, 13 Dec 2012 02:57:46 +0100 (CET) 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 mail-wi0-f202.google.com (mail-wi0-f202.google.com [209.85.212.202]) by theia.denx.de (Postfix) with ESMTPS id 84A064A1B9 for ; Thu, 13 Dec 2012 02:57:44 +0100 (CET) Received: by mail-wi0-f202.google.com with SMTP id hn17so75030wib.3 for ; Wed, 12 Dec 2012 17:57:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=K4GhpZrZ0PXN1wqU90W7IGQSlhXbLO3QkJQHXkjMOaM=; b=SsF5AjiM9737siCfYt4EXaOXeZVbIAb3mW8Hlg+eQNPCqh7N0ZZvLjAMWAfhZLFzot QkyoATk4O2kS3QWt2Z9SnEmMpnRMXjflmMeWskdS/HPgqa1TNO/Cn2Q4HPuNm3fltzZQ /LIOk9yIrVuT10yGatr6gGpTKQOqaptqZXG/e6l+QI1U2BUC3OxcNjHYd2U4D+MvvT9P ls+KFSj9BSameQEWalaVSPNYCYqGA9UJQB4NPRt87AbuHBI91D4PDN+YrO5gGZycL1DM k+spWQu6wJMZ2hQMTvRUljlChTxp7H1S3/9PPsAEXY2TSG//fLvxT/xKosrjHKTB9nr0 jexw== Received: by 10.14.214.197 with SMTP id c45mr269637eep.7.1355363863350; Wed, 12 Dec 2012 17:57:43 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id g9si28932eeo.1.2012.12.12.17.57.43 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 12 Dec 2012 17:57:43 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id F3C6520004E; Wed, 12 Dec 2012 17:57:42 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 434A0160097; Wed, 12 Dec 2012 17:57:42 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Wed, 12 Dec 2012 17:55:22 -0800 Message-Id: <1355363731-10103-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1355363731-10103-1-git-send-email-sjg@chromium.org> References: <1355363731-10103-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmWcprv4MC7IBcLdbukEBnpsotPPuAP4w5W7ISXGHghifWnPwLgdfhFg7EMpdbCn/T+ABNyMBFsBQoq9Qw4pImVtp6OeFNeaveePL16tjQrIvPu2BnIE4EEwo9eOIeDiZp3gUqCMGoacuZi/1Ti6N3HgXMAGaVU55PR8Sr8GPHjzIondp90YBLtzGP7+MApHRvJs9Bi Cc: Vincent Palatin Subject: [U-Boot] [PATCH 02/11] usb: ehci: Add 64-bit controller support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 From: Vincent Palatin On EHCI controller with 64-bit address space support, we must initialize properly the high word for the PCI bus master accesses. Signed-off-by: Vincent Palatin Signed-off-by: Simon Glass --- drivers/usb/host/ehci-hcd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 7f98a63..20309ad 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -870,6 +870,9 @@ int usb_lowlevel_init(int index, void **controller) if (ehci_hcd_init(index, &ehcic[index].hccr, &ehcic[index].hcor)) return -1; #endif + /* Set the high address word (aka segment) for 64-bit controller */ + if (ehci_readl(&ehcic[index].hccr->cr_hccparams) & 1) + ehci_writel(ehcic[index].hcor->or_ctrldssegment, 0); qh_list = &ehcic[index].qh_list;