bool "Enable UMP support"
depends on MALI400
---help---
- This enables support for the UMP memory sharing API in the Mali driver.
+ This enables support for the UMP memory sharing API in the Mali driver.
+
+config MALI400_OS_MEMORY_SIZE
+ depends on MALI400
+ int "OS Memory Size(MB)"
+ range 64 2048
+ default 384
+ ---help---
+ The size of mali OS memory with unit of mega byte.
+
+if ARCH_MESON6TV
+config MALI400_4_PP
+ bool "Mali 400 for M6TV With 4 pp core."
+ depends on MALI400
+ ---help---
+ M6TV Lite only have 4 mali pp cores.
+endif
+
endmenu
#define INT_MALI_PP3_MMU (61+32)
#define INT_MALI_PP4_MMU (63+32)
+#ifndef CONFIG_MALI400_4_PP
static struct resource meson_mali_resources[] =
{
MALI_GPU_RESOURCES_MALI400_MP2(0xd0060000,
INT_MALI_PP, INT_MALI_PP_MMU,
INT_MALI_PP2, INT_MALI_PP2_MMU)
};
+#else
+static struct resource meson_mali_resources[] =
+{
+ MALI_GPU_RESOURCES_MALI400_MP4(0xd0060000,
+ INT_MALI_GP, INT_MALI_GP_MMU,
+ INT_MALI_PP, INT_MALI_PP_MMU,
+ INT_MALI_PP2, INT_MALI_PP2_MMU,
+ INT_MALI_PP3, INT_MALI_PP3_MMU,
+ INT_MALI_PP4, INT_MALI_PP4_MMU
+ )
+};
+#endif
#elif MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON6
static struct mali_gpu_device_data mali_gpu_data =
{
- .shared_mem_size =384 * 1024 * 1024, /* 256MB */
+ .shared_mem_size =CONFIG_MALI400_OS_MEMORY_SIZE * 1024 * 1024, /* 256MB */
.fb_start = 0x84000000,
.fb_size = 0x06000000,
};