#include <linux/gpio.h>
-
+#if 0
#define ft_printk(fmt, arg...) \
printk(KERN_EMERG fmt, ##arg)
//KERN_DEBUG
//KERN_WARNING
#define ft_printk_info(fmt, arg...) \
printk(KERN_EMERG fmt, ##arg)
+#else
+
+#define ft_printk(fmt, arg...) \
+ printk(KERN_EMERG fmt, ##arg)
+ //KERN_DEBUG
+#define ft_printk_dbg(fmt, arg...) {while(0);}
+ //KERN_WARNING
+#define ft_printk_info(fmt, arg...) {while(0);}
+#endif
#define MHZ (1000*1000)
#define TST_SETUPS (4)
-#define FT_END_CNT (0x21)
+#define FT_END_CNT (0x23)
#define ENABLE_FT_TEST_GPIO // for ft seting 1.6G volt
#if defined(CONFIG_ARCH_RK3188)
-#if 1 // Á½µµ²âÊÔ
+#if 0 // Á½µµ²âÊÔ
const static unsigned long arm_setups_rate[TST_SETUPS]={816*MHZ,1608*MHZ*1,0,0};
const static unsigned long l1_tst_cnt[TST_SETUPS]={5*10*1,5*10*1,5*10*21,5*10*1};
const static unsigned long l2_cpy_cnt[TST_SETUPS]={5*1+2,5*2+4,5*2+4,5*2+4};
#else
//const static unsigned long arm_setups_rate[TST_SETUPS]={312*MHZ,1656*MHZ*1,1608*MHZ*1,312*MHZ*1};
-
-const static unsigned long arm_setups_rate[TST_SETUPS]={816*MHZ,1608*MHZ*1,816*MHZ*1,1608*MHZ*1};
+const static unsigned long arm_setups_rate[TST_SETUPS]={816*MHZ,1656*MHZ*1,1608*MHZ*1,312*MHZ*1};
+//const static unsigned long arm_setups_rate[TST_SETUPS]={816*MHZ,1608*MHZ*1,816*MHZ*1,1608*MHZ*1};
const static unsigned long l1_tst_cnt[TST_SETUPS]={5*10*2,5*10*2,5*10*2,5*10*2};
const static unsigned long l2_cpy_cnt[TST_SETUPS]={5*1+2,5*2+4,5*2+4,5*2+4};
#elif defined(CONFIG_SOC_RK3168)
-const static unsigned long arm_setups_rate[4]={552*MHZ,1608*MHZ*1,0,0};
+const static unsigned long arm_setups_rate[4] = {552 * MHZ, 1200 * MHZ, 1608 * MHZ, 0};
+//const static unsigned long arm_setups_rate[4]={552*MHZ,0,0,0};
const static unsigned long l1_tst_cnt[TST_SETUPS]={5*10,5*10,0,0};
const static unsigned long l2_cpy_cnt[TST_SETUPS]={5*3,5*4,0,0};
{
int ret = 0;
- ft_cpu_test_type0_check(0,"KERENL");
+ ft_cpu_test_type0_check(0,"KERNEL");
ft_cpu_test_type1_check(1,"HSPEED");