Пример #1
0
void __init sci_reserve(void)
{
	int ret;
#ifdef CONFIG_ARCH_SCX30G
	__ddr_training_memblock();
#endif
#ifdef SPRD_ION_BASE_USE_VARIABLE
	/*sprd_reserve_limit is used save arm_lowmem_limit,will be use by ION*/
	sprd_reserve_limit = arm_lowmem_limit;
#endif

#ifndef CONFIG_OF
	ret = __iomem_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for iomem. errno=%d\n", ret);

#if defined(CONFIG_SIPC) && !defined(CONFIG_ARCH_SC8825)
	ret = __sipc_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for sipc. errno=%d\n", ret);
#endif

#ifdef CONFIG_PSTORE_RAM
	ret = __ramconsole_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for ram_console. errno=%d\n", ret);
#endif

#ifdef CONFIG_FB_LCD_RESERVE_MEM
	ret = __fbmem_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for framebuffer . errno=%d\n", ret);
#endif
#endif

#ifdef CONFIG_SPRD_IQ
	ret = __sprd_iq_memblock();
	if (ret != 0)
		printk("Fail to reserve mem for sprd iq. errno=%d\n", ret);
#endif
}
Пример #2
0
void __init sci_reserve(void)
{
#ifndef PROJECT_SPECIAL_LAYOUT
	int ret = __iomem_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for iomem. errno=%d\n", ret);

#ifdef CONFIG_ANDROID_RAM_CONSOLE
	ret = __ramconsole_reserve_memblock();
	if (ret != 0)
		pr_err("Fail to reserve mem for ram_console. errno=%d\n", ret);
#endif
#else
#ifdef CONFIG_HTC_DBG_UNCACHE_FTRACE
	if (htc_get_config(HTC_DBG_FLAG_SUPERMAN) & SUPERMAN_FLAG_FTRACE) {
		int ret = __ftrace_reserve_memblock();
		if (ret)
			pr_err("Fail to reserve mem for FT. errno=%d\n", ret);
	}
#endif
	printk(KERN_INFO "[k] Using project special memory layout \n");
#endif
}