From: Gary King Date: Tue, 20 Jul 2010 21:29:27 +0000 (-0700) Subject: [ARM] tegra: add iram heap X-Git-Tag: firefly_0821_release~9834^2~751 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=11d90deeb8299baeb3a96e2e39dccc005a88ea39;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: add iram heap AVP modules expect IRAM to be allocatable through nvmap, so the IRAM heap needs to be created Change-Id: Idd1bdccd5ff05ae655cb59780a89002a122055c9 Signed-off-by: Gary King --- diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index 10d2f5e7e87b..f45542cb68bf 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -51,6 +51,7 @@ #include "gpio-names.h" #include "devices.h" #include "power.h" +#include "nv/include/linux/nvmem_ioctl.h" /* NVidia bootloader tags */ #define ATAG_NVIDIA 0x41000801 @@ -713,6 +714,9 @@ static struct tegra_suspend_platform_data stingray_suspend = { .wake_any = 0, }; +extern int nvmap_add_carveout_heap(unsigned long, size_t, const char *, + unsigned int); + static void __init tegra_stingray_init(void) { struct clk *clk; @@ -769,6 +773,9 @@ static void __init tegra_stingray_init(void) clk = tegra_get_clock_by_name("uartb"); debug_uart_platform_data[0].uartclk = clk_get_rate(clk); + nvmap_add_carveout_heap(TEGRA_IRAM_BASE, TEGRA_IRAM_SIZE, "iram", + NVMEM_HEAP_CARVEOUT_IRAM); + clk = clk_get_sys("3d", NULL); tegra_periph_reset_assert(clk); writel(0x101, IO_ADDRESS(TEGRA_PMC_BASE) + 0x30);