* [PATCH] ARM: OMAP: VMALLOC Size
@ 2007-11-07 14:12 Choraria, Rohit
2007-11-16 23:51 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Choraria, Rohit @ 2007-11-07 14:12 UTC (permalink / raw)
To: linux-omap-open-source
Hi,
This patch increases the size of VMALLOC to accommodate the bigger DDR and
NOR flashes being used now. Since SRAM is allocated at the end of VMALLOC
area, moving the SRAM virtual address also.
Regards,
Rohit
Signed-off-by: Rohit Choraria <rohitkc@ti.com>
---
arch/arm/plat-omap/sram.c | 6 +++---
include/asm-arm/arch-omap/vmalloc.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
Index: linux-omap/include/asm-arm/arch-omap/vmalloc.h
===================================================================
--- linux-omap.orig/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:19.062643728 -0500
+++ linux-omap/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:58.255685480 -0500
@@ -17,5 +17,5 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
+#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
Index: linux-omap/arch/arm/plat-omap/sram.c
===================================================================
--- linux-omap.orig/arch/arm/plat-omap/sram.c 2007-11-07 06:34:19.062643728 -0500
+++ linux-omap/arch/arm/plat-omap/sram.c 2007-11-07 09:58:34.914471048 -0500
@@ -25,11 +25,11 @@
#include <asm/arch/board.h>
#define OMAP1_SRAM_PA 0x20000000
-#define OMAP1_SRAM_VA 0xd0000000
+#define OMAP1_SRAM_VA VMALLOC_END
#define OMAP2_SRAM_PA 0x40200000
#define OMAP2_SRAM_PUB_PA 0x4020f800
-#define OMAP2_SRAM_VA 0xd0000000
-#define OMAP2_SRAM_PUB_VA 0xd0000800
+#define OMAP2_SRAM_VA VMALLOC_END
+#define OMAP2_SRAM_PUB_VA (VMALLOC_END + 0x800)
#if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
#define SRAM_BOOTLOADER_SZ 0x00
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: VMALLOC Size
2007-11-07 14:12 [PATCH] ARM: OMAP: VMALLOC Size Choraria, Rohit
@ 2007-11-16 23:51 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-11-16 23:51 UTC (permalink / raw)
To: Choraria, Rohit; +Cc: linux-omap-open-source
* Choraria, Rohit <rohitkc@ti.com> [071107 06:13]:
> Hi,
>
> This patch increases the size of VMALLOC to accommodate the bigger DDR and
> NOR flashes being used now. Since SRAM is allocated at the end of VMALLOC
> area, moving the SRAM virtual address also.
>
> Regards,
> Rohit
>
> Signed-off-by: Rohit Choraria <rohitkc@ti.com>
> ---
> arch/arm/plat-omap/sram.c | 6 +++---
> include/asm-arm/arch-omap/vmalloc.h | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> Index: linux-omap/include/asm-arm/arch-omap/vmalloc.h
> ===================================================================
> --- linux-omap.orig/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:19.062643728 -0500
> +++ linux-omap/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:58.255685480 -0500
> @@ -17,5 +17,5 @@
> * along with this program; if not, write to the Free Software
> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> */
> -#define VMALLOC_END (PAGE_OFFSET + 0x10000000)
> +#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
>
> Index: linux-omap/arch/arm/plat-omap/sram.c
> ===================================================================
> --- linux-omap.orig/arch/arm/plat-omap/sram.c 2007-11-07 06:34:19.062643728 -0500
> +++ linux-omap/arch/arm/plat-omap/sram.c 2007-11-07 09:58:34.914471048 -0500
> @@ -25,11 +25,11 @@
> #include <asm/arch/board.h>
>
> #define OMAP1_SRAM_PA 0x20000000
> -#define OMAP1_SRAM_VA 0xd0000000
> +#define OMAP1_SRAM_VA VMALLOC_END
> #define OMAP2_SRAM_PA 0x40200000
> #define OMAP2_SRAM_PUB_PA 0x4020f800
> -#define OMAP2_SRAM_VA 0xd0000000
> -#define OMAP2_SRAM_PUB_VA 0xd0000800
> +#define OMAP2_SRAM_VA VMALLOC_END
> +#define OMAP2_SRAM_PUB_VA (VMALLOC_END + 0x800)
>
> #if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
> #define SRAM_BOOTLOADER_SZ 0x00
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-16 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 14:12 [PATCH] ARM: OMAP: VMALLOC Size Choraria, Rohit
2007-11-16 23:51 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox