[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 <gking@nvidia.com>
This commit is contained in:
Gary King 2010-07-20 14:29:27 -07:00 committed by Colin Cross
parent 7a8b3a8e0e
commit 11d90deeb8

View File

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