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);