printk("get cif ldo failed!\n");
return;
}
- if(on == 0){
- regulator_disable(ldo_28);
+ if(on == 0){
+ while(regulator_is_enabled(ldo_28)>0)
+ regulator_disable(ldo_28);
regulator_put(ldo_28);
- regulator_disable(ldo_18);
+ while(regulator_is_enabled(ldo_18)>0)
+ regulator_disable(ldo_18);
regulator_put(ldo_18);
mdelay(500);
}
#if defined(CONFIG_ARCH_RK2928)
#include <mach/rk2928_camera.h>
+#include <mach/cru.h>
+#include <mach/pmu.h>
+#define SOFT_RST_CIF1 (SOFT_RST_MAX+1)
#endif
#include <asm/cacheflush.h>
static int debug;
}
#if 1
{
-#ifdef CONFIG_ARCH_RK30
+#if (defined(CONFIG_ARCH_RK30) || defined(CONFIG_ARCH_RK2928))
mdelay(100);
if(IS_CIF0()){
// pmu_set_idle_request(IDLE_REQ_VIO, true);