Commit f759ee57 authored by Vineet Gupta's avatar Vineet Gupta

ARC: Ensure DT mem base is same as what kernel is built with

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 483bcc99
...@@ -95,6 +95,6 @@ memory { ...@@ -95,6 +95,6 @@ memory {
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x80000000 0x40000000>; ranges = <0x00000000 0x80000000 0x40000000>;
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x20000000>; /* 512MiB */ reg = <0x80000000 0x20000000>; /* 512MiB */
}; };
}; };
...@@ -98,6 +98,6 @@ memory { ...@@ -98,6 +98,6 @@ memory {
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x80000000 0x40000000>; ranges = <0x00000000 0x80000000 0x40000000>;
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x20000000>; /* 512MiB */ reg = <0x80000000 0x20000000>; /* 512MiB */
}; };
}; };
...@@ -121,6 +121,6 @@ memory { ...@@ -121,6 +121,6 @@ memory {
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x80000000 0x40000000>; ranges = <0x00000000 0x80000000 0x40000000>;
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x20000000>; /* 512MiB */ reg = <0x80000000 0x20000000>; /* 512MiB */
}; };
}; };
...@@ -32,6 +32,6 @@ cpu@0 { ...@@ -32,6 +32,6 @@ cpu@0 {
memory { memory {
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x10000000>; /* 256M */ reg = <0x80000000 0x10000000>; /* 256M */
}; };
}; };
...@@ -56,6 +56,6 @@ memory { ...@@ -56,6 +56,6 @@ memory {
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x80000000 0x40000000>; ranges = <0x00000000 0x80000000 0x40000000>;
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x20000000>; /* 512MiB */ reg = <0x80000000 0x20000000>; /* 512MiB */
}; };
}; };
...@@ -71,6 +71,6 @@ memory { ...@@ -71,6 +71,6 @@ memory {
#size-cells = <1>; #size-cells = <1>;
ranges = <0x00000000 0x80000000 0x40000000>; ranges = <0x00000000 0x80000000 0x40000000>;
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x20000000>; /* 512MiB */ reg = <0x80000000 0x20000000>; /* 512MiB */
}; };
}; };
...@@ -43,6 +43,8 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) ...@@ -43,6 +43,8 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
{ {
arc_mem_sz = size & PAGE_MASK; arc_mem_sz = size & PAGE_MASK;
pr_info("Memory size set via devicetree %ldM\n", TO_MB(arc_mem_sz)); pr_info("Memory size set via devicetree %ldM\n", TO_MB(arc_mem_sz));
BUG_ON(base != CONFIG_LINUX_LINK_BASE);
} }
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment