const char *uname, int depth, void *data);
void __init rockchip_ion_reserve(void)
{
+#ifdef CONFIG_ION_ROCKCHIP
printk("%s\n", __func__);
of_scan_flat_dt(rockchip_ion_find_reserve_mem, NULL);
+#endif
}
.map_io = rk3188_dt_map_io,
.init_time = rk3188_dt_init_timer,
.dt_compat = rk3188_dt_compat,
+#ifdef CONFIG_PM
.init_late = rockchip_suspend_init,
+#endif
.reserve = rk3188_reserve,
.restart = rk3188_restart,
MACHINE_END
}
arch_initcall_sync(rk3188_ddr_init);
+#ifdef CONFIG_PM
#include "pm-rk3188.c"
-
+#endif
rockchip_boot_mode_init(flag, mode);
}
-extern void secondary_startup(void);
-
static void usb_uart_init(void)
{
u32 soc_status2;
#endif // end of CONFIG_RK_USB_UART
}
+extern void secondary_startup(void);
+
static void __init rk3288_dt_map_io(void)
{
iotable_init(rk3288_io_desc, ARRAY_SIZE(rk3288_io_desc));
/* rkpwm is used instead of old pwm */
//writel_relaxed(0x00010001, RK_GRF_VIRT + RK3288_GRF_SOC_CON2);
+#ifdef CONFIG_SMP
/* enable fast boot */
writel_relaxed(0x01000100, RK_SGRF_VIRT + RK3288_SGRF_SOC_CON0);
writel_relaxed(virt_to_phys(secondary_startup), RK_SGRF_VIRT + RK3288_SGRF_FAST_BOOT_ADDR);
+#endif
rk3288_boot_mode_init();
}
.map_io = rk3288_dt_map_io,
.init_time = rk3288_dt_init_timer,
.dt_compat = rk3288_dt_compat,
+#ifdef CONFIG_PM
.init_late = rockchip_suspend_init,
+#endif
.reserve = rk3288_reserve,
.restart = rk3288_restart,
MACHINE_END