Commit 7136e577 authored by Hari Kanigeri's avatar Hari Kanigeri

build support for tesla in omap4

Provide build support for tesla in omap4 setup
Signed-off-by: default avatarHari Kanigeri <h-kanigeri2@ti.com>
parent 615f50a2
...@@ -1479,6 +1479,8 @@ source "drivers/staging/Kconfig" ...@@ -1479,6 +1479,8 @@ source "drivers/staging/Kconfig"
source "drivers/dsp/syslink/Kconfig" source "drivers/dsp/syslink/Kconfig"
source "drivers/dsp/bridge/Kconfig"
endmenu endmenu
source "fs/Kconfig" source "fs/Kconfig"
......
...@@ -84,3 +84,4 @@ obj-y += $(onenand-m) $(onenand-y) ...@@ -84,3 +84,4 @@ obj-y += $(onenand-m) $(onenand-y)
smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o
obj-y += $(smc91x-m) $(smc91x-y) obj-y += $(smc91x-m) $(smc91x-y)
obj-$(CONFIG_MPU_BRIDGE) += dspbridge.o
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <mach/clockdomain.h> #include <mach/clockdomain.h>
#include "clockdomains.h" #include "clockdomains.h"
#endif #endif
#include <dspbridge/host_os.h>
/* /*
* The machine specific code may provide the extra mapping besides the * The machine specific code may provide the extra mapping besides the
* default mapping provided here. * default mapping provided here.
...@@ -246,6 +247,7 @@ void __init omap2_map_common_io(void) ...@@ -246,6 +247,7 @@ void __init omap2_map_common_io(void)
omap2_check_revision(); omap2_check_revision();
omap_sram_init(); omap_sram_init();
omapfb_reserve_sdram(); omapfb_reserve_sdram();
dspbridge_reserve_sdram();
} }
/* /*
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/bootmem.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -90,6 +91,32 @@ EXPORT_SYMBOL(dsp_kfunc_device_register); ...@@ -90,6 +91,32 @@ EXPORT_SYMBOL(dsp_kfunc_device_register);
static inline void omap_init_dsp(void) { } static inline void omap_init_dsp(void) { }
#endif /* CONFIG_OMAP_DSP */ #endif /* CONFIG_OMAP_DSP */
#if defined(CONFIG_MPU_BRIDGE) || defined(CONFIG_MPU_BRIDGE_MODULE)
static unsigned long dspbridge_phys_mempool_base;
void dspbridge_reserve_sdram(void)
{
void *va;
unsigned long size = CONFIG_BRIDGE_MEMPOOL_SIZE;
if (!size)
return;
va = __alloc_bootmem_nopanic(size, SZ_1M, 0);
if (!va) {
pr_err("%s: Failed to bootmem allocation(%lu bytes)\n",
__func__, size);
return;
}
dspbridge_phys_mempool_base = virt_to_phys(va);
}
unsigned long dspbridge_get_mempool_base(void)
{
return dspbridge_phys_mempool_base;
}
EXPORT_SYMBOL(dspbridge_get_mempool_base);
#endif
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE) #if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
......
...@@ -116,3 +116,4 @@ obj-$(CONFIG_NOTIFY_TESLA) += dsp/syslink/notify_tesladriver/ ...@@ -116,3 +116,4 @@ obj-$(CONFIG_NOTIFY_TESLA) += dsp/syslink/notify_tesladriver/
obj-$(CONFIG_NOTIFY_DUCATI) += dsp/syslink/notify_ducatidriver/ obj-$(CONFIG_NOTIFY_DUCATI) += dsp/syslink/notify_ducatidriver/
obj-$(CONFIG_SYSLINK_PROC) += dsp/syslink/procmgr/ obj-$(CONFIG_SYSLINK_PROC) += dsp/syslink/procmgr/
obj-$(CONFIG_SYSLINK_PROC4430) += dsp/syslink/procmgr/proc4430/ obj-$(CONFIG_SYSLINK_PROC4430) += dsp/syslink/procmgr/proc4430/
obj-$(CONFIG_MPU_BRIDGE) += dsp/bridge/
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