diff mbox

[U-Boot,RESEND,10/24] r2dplus: use P1 area space for text base and PCI system memory

Message ID 20161127221536.9577-11-vz@mleia.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Vladimir Zapolskiy Nov. 27, 2016, 10:15 p.m. UTC
While both options are acceptable use P1 area physical addresses
instead of external memory space of text base and PCI system memory
for unification purposes, all other supported superh boards have the
same selection.

This allows to easily ensure that CONFIG_SYS_TEXT_BASE is located
within available DRAM.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
---
 include/configs/r2dplus.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Simon Glass Nov. 30, 2016, 12:33 a.m. UTC | #1
On 27 November 2016 at 15:15, Vladimir Zapolskiy <vz@mleia.com> wrote:
> While both options are acceptable use P1 area physical addresses
> instead of external memory space of text base and PCI system memory
> for unification purposes, all other supported superh boards have the
> same selection.
>
> This allows to easily ensure that CONFIG_SYS_TEXT_BASE is located
> within available DRAM.
>
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> ---
>  include/configs/r2dplus.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

But it is probably nice to move this to DM_PCI.
Tom Rini Dec. 4, 2016, 12:36 a.m. UTC | #2
On Mon, Nov 28, 2016 at 12:15:22AM +0200, Vladimir Zapolskiy wrote:

> While both options are acceptable use P1 area physical addresses
> instead of external memory space of text base and PCI system memory
> for unification purposes, all other supported superh boards have the
> same selection.
> 
> This allows to easily ensure that CONFIG_SYS_TEXT_BASE is located
> within available DRAM.
> 
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h
index 2186915..21bfe72 100644
--- a/include/configs/r2dplus.h
+++ b/include/configs/r2dplus.h
@@ -26,10 +26,10 @@ 
 #define CONFIG_ENV_OVERWRITE	1
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE		(0x8C000000)
-#define CONFIG_SYS_SDRAM_SIZE		(0x04000000)
+#define CONFIG_SYS_SDRAM_BASE		0x8C000000
+#define CONFIG_SYS_SDRAM_SIZE		0x04000000
 
-#define CONFIG_SYS_TEXT_BASE	0x0FFC0000
+#define CONFIG_SYS_TEXT_BASE		0x8FFC0000
 #define CONFIG_SYS_LONGHELP
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256
@@ -99,8 +99,8 @@ 
 #define CONFIG_PCI_IO_BUS	0xFE240000	/* IO space base address */
 #define CONFIG_PCI_IO_PHYS	CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE	0x00040000	/* Size of IO window */
-#define CONFIG_PCI_SYS_BUS	(CONFIG_SYS_SDRAM_BASE & 0x1fffffff)
-#define CONFIG_PCI_SYS_PHYS	(CONFIG_SYS_SDRAM_BASE & 0x1fffffff)
+#define CONFIG_PCI_SYS_BUS	CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_PHYS	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_SIZE	CONFIG_SYS_SDRAM_SIZE
 
 #endif /* __CONFIG_H */