From patchwork Fri Feb 20 10:32:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 8099 X-Patchwork-Delegate: lethal@linux-sh.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1KAVX8v008641 for ; Fri, 20 Feb 2009 10:32:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753821AbZBTKcS (ORCPT ); Fri, 20 Feb 2009 05:32:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754268AbZBTKcS (ORCPT ); Fri, 20 Feb 2009 05:32:18 -0500 Received: from mail.renesas.com ([202.234.163.13]:59869 "EHLO mail06.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753821AbZBTKcS (ORCPT ); Fri, 20 Feb 2009 05:32:18 -0500 X-AuditID: ac14038a-0000000b00001ca1-e0-499e86af45e1 Received: from guardian02.idc.renesas.com ([172.20.8.201]) by mail06.idc.renesas.com (sendmail) with ESMTP id n1KAWFPN020279; Fri, 20 Feb 2009 19:32:15 +0900 (JST) Received: (from root@localhost) by guardian02.idc.renesas.com with id n1KAWFUi020195; Fri, 20 Feb 2009 19:32:15 +0900 (JST) Received: from mta04.idc.renesas.com (localhost [127.0.0.1]) by mta04.idc.renesas.com with ESMTP id n1KAWDcF018982; Fri, 20 Feb 2009 19:32:13 +0900 (JST) Received: from [172.30.8.157] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KFD00AYH19QXG@ims05.idc.renesas.com>; Fri, 20 Feb 2009 19:32:14 +0900 (JST) Date: Fri, 20 Feb 2009 19:32:14 +0900 From: Yoshihiro Shimoda Subject: [PATCH 3/3] sh: pci-sh7780: fix pci memory address for fixed PMB To: Paul Mundt Cc: linux-sh@vger.kernel.org Message-id: <499E86AE.6070209@renesas.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Fix the problem that cannot work a PCI device when 32-bit physical address mode. Signed-off-by: Yoshihiro Shimoda --- I changed this driver before. I think that I must revise it so that a hardcoding... arch/sh/drivers/pci/pci-sh7780.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/drivers/pci/pci-sh7780.c b/arch/sh/drivers/pci/pci-sh7780.c index 078dc44..773d575 100644 --- a/arch/sh/drivers/pci/pci-sh7780.c +++ b/arch/sh/drivers/pci/pci-sh7780.c @@ -127,8 +127,8 @@ int __init sh7780_pcic_init(struct sh4_pci_address_map *map) pci_write_reg(word, SH4_PCILSR0); pci_write_reg(0x00000001, SH4_PCILSR1); /* Set the values on window 0 PCI config registers */ - word = (CONFIG_MEMORY_SIZE > 0x08000000) ? 0x10000000 : 0x08000000; - pci_write_reg(word | 0xa0000000, SH4_PCILAR0); + word = CONFIG_MEMORY_START | (CONFIG_MEMORY_SIZE - 0x01000000); + pci_write_reg(word, SH4_PCILAR0); pci_write_reg(word, SH7780_PCIMBAR0); /* Set the values on window 1 PCI config registers */ pci_write_reg(0x00000000, SH4_PCILAR1);