Exemple #1
0
bool bs_hw_test(void)
{
    bool result = true;

    bs_cmd_wr_reg(0x0304, 0x0123); // frame begin/end length reg
    bs_cmd_wr_reg(0x030A, 0x4567); // line  begin/end length reg
    result &= bs_cmd_ck_reg(0x0304, 0x0123);
    result &= bs_cmd_ck_reg(0x030A, 0x4567 );
    
    bs_cmd_wr_reg(0x0304, 0xFEDC);
    bs_cmd_wr_reg(0x030A, 0xBA98);
    result &= bs_cmd_ck_reg(0x0304, 0xFEDC);
    result &= bs_cmd_ck_reg(0x030A, 0xBA98);
    
    return ( result );
}
Exemple #2
0
bool bs_hw_test(void)
{
    bool result = true;

#if defined(CONFIG_HW_EP3_DVT) || defined(CONFIG_HW_EP4_DVT)
    bs_cmd_wr_reg(0x0304, 0x0404); // frame begin/end length reg
    bs_cmd_wr_reg(0x030A, 0x5004); // line  begin/end length reg
    result &= bs_cmd_ck_reg(0x0304, 0x0404);
    result &= bs_cmd_ck_reg(0x030A, 0x5004 );
    
    bs_cmd_wr_reg(0x0304, 0x0404);
    bs_cmd_wr_reg(0x030A, 0x5004);
    result &= bs_cmd_ck_reg(0x0304, 0x0404);
    result &= bs_cmd_ck_reg(0x030A, 0x5004);
#elif defined(CONFIG_HW_EP1_DVT)  || defined(CONFIG_HW_EP2_DVT)
    bs_cmd_wr_reg(0x0304, 0x0a04); // frame begin/end length reg
/*    
    bs_cmd_wr_reg(0x030A, 0x3004); // line  begin/end length reg
*/    
    result &= bs_cmd_ck_reg(0x0304, 0x0a04);
/*    
    result &= bs_cmd_ck_reg(0x030A, 0x3004 );
*/    
    
    bs_cmd_wr_reg(0x0304, 0x0a04);
/*    
    bs_cmd_wr_reg(0x030A, 0x3004);
*/    
    result &= bs_cmd_ck_reg(0x0304, 0x0a04);
/*    
    result &= bs_cmd_ck_reg(0x030A, 0x3004);
*/    
#else
    bs_cmd_wr_reg(0x0304, 0x0123); // frame begin/end length reg
    bs_cmd_wr_reg(0x030A, 0x4567); // line  begin/end length reg
    result &= bs_cmd_ck_reg(0x0304, 0x0123);
    result &= bs_cmd_ck_reg(0x030A, 0x4567 );
    
    bs_cmd_wr_reg(0x0304, 0xFEDC);
    bs_cmd_wr_reg(0x030A, 0xBA98);
    result &= bs_cmd_ck_reg(0x0304, 0xFEDC);
    result &= bs_cmd_ck_reg(0x030A, 0xBA98);
#endif
    return ( result );
}