From: Alban Bedel <albeu@free.fr>
To: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>, Alban Bedel <albeu@free.fr>,
Andrew Bresticker <abrestic@chromium.org>,
Qais Yousef <qais.yousef@imgtec.com>,
Wolfram Sang <wsa@the-dreams.de>,
Sergey Ryazanov <ryazanov.s.a@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 4/5] MIPS: ath79: Fix the PCI memory size and offset of window 7
Date: Fri, 17 Apr 2015 14:36:17 +0200 [thread overview]
Message-ID: <1429274178-4337-5-git-send-email-albeu@free.fr> (raw)
In-Reply-To: <1429274178-4337-1-git-send-email-albeu@free.fr>
The define AR71XX_PCI_MEM_SIZE miss one window, there is 7 windows,
not 6. To make things clearer, and allow simpler code, derive
AR71XX_PCI_MEM_SIZE from the newly introduced AR71XX_PCI_WIN_COUNT
and AR71XX_PCI_WIN_SIZE.
The define AR71XX_PCI_WIN7_OFFS also add a typo, fix it.
Signed-off-by: Alban Bedel <albeu@free.fr>
---
arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
index aa3800c..e2669a8 100644
--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
+++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
@@ -41,7 +41,9 @@
#define AR71XX_RESET_SIZE 0x100
#define AR71XX_PCI_MEM_BASE 0x10000000
-#define AR71XX_PCI_MEM_SIZE 0x07000000
+#define AR71XX_PCI_WIN_COUNT 8
+#define AR71XX_PCI_WIN_SIZE 0x01000000
+#define AR71XX_PCI_MEM_SIZE (AR71XX_PCI_WIN_COUNT * AR71XX_PCI_WIN_SIZE)
#define AR71XX_PCI_WIN0_OFFS 0x10000000
#define AR71XX_PCI_WIN1_OFFS 0x11000000
@@ -50,7 +52,7 @@
#define AR71XX_PCI_WIN4_OFFS 0x14000000
#define AR71XX_PCI_WIN5_OFFS 0x15000000
#define AR71XX_PCI_WIN6_OFFS 0x16000000
-#define AR71XX_PCI_WIN7_OFFS 0x07000000
+#define AR71XX_PCI_WIN7_OFFS 0x17000000
#define AR71XX_PCI_CFG_BASE \
(AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000)
--
2.0.0
next prev parent reply other threads:[~2015-04-17 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-17 12:36 [PATH] MIPS: ath79: Various small fix to prepare OF support Alban Bedel
2015-04-17 12:36 ` [PATCH 1/5] MIPS: ath79: Enable ZBOOT support Alban Bedel
2015-04-17 12:36 ` [PATCH 2/5] MIPS: ath79: Add a missing new line in log message Alban Bedel
2015-04-17 12:36 ` [PATCH 3/5] MIPS: ath79: Correctly name the defines for the PLL_FB register Alban Bedel
2015-04-17 12:36 ` Alban Bedel [this message]
2015-04-18 22:28 ` [PATCH 4/5] MIPS: ath79: Fix the PCI memory size and offset of window 7 Jonas Gorski
2015-04-19 11:20 ` Alban
2015-04-17 12:36 ` [PATCH 5/5] MIPS: ath79: Improve the DDR controller interface Alban Bedel
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=1429274178-4337-5-git-send-email-albeu@free.fr \
--to=albeu@free.fr \
--cc=abrestic@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=qais.yousef@imgtec.com \
--cc=ralf@linux-mips.org \
--cc=ryazanov.s.a@gmail.com \
--cc=wsa@the-dreams.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
all inboxes | Powered by JetHome®