/*===========================================================================
FUNCTION       dmb_test_on_boot
DESCRIPTION
DEPENDENCIES
RETURN VALUE
SIDE EFFECTS
===========================================================================*/
void dmb_test_on_boot(void)
{
  DMB_MSG_TEST("[%s] Test start!!!\n", __func__);

#ifdef CONFIG_SKY_TDMB
  tdmb_bb_power_on();

#ifdef FEATURE_NETBER_TEST_ON_BOOT
  netber_init();
  dmb_mode = TDMB_MODE_NETBER;
#endif

#ifdef FEATURE_COMMAND_TEST_ON_BOOT
 #ifdef FEATURE_TDMB_USE_INC
   t3700_if_test();
 #elif defined(FEATURE_TDMB_USE_FCI)
   fc8050_if_test(1);
 #elif defined(FEATURE_TDMB_USE_TCC)
   tcc3170_rw_test();
 #elif defined(FEATURE_TDMB_USE_RTV)
   mtv350_i2c_test();
 #endif /* FEATURE_TDMB_USE_INC */
#else
  dmb_ch_test();
#if (defined(FEATURE_DMB_EBI_IF) || defined(FEATURE_DMB_SPI_IF))
  tdmb_bb_set_fic_isr(1);
#endif
#endif
#endif /* CONFIG_SKY_TDMB */

#ifdef CONFIG_SKY_ISDBT
  isdbt_bb_power_on();

#ifdef FEATURE_COMMAND_TEST_ON_BOOT  
  #if defined(FEATURE_DMB_SPI_CMD)
      // TO DO
  #else
    #ifdef FEATURE_ISDBT_USE_SHARP
      sharp_i2c_test();
    #endif
  #endif
#else
  dmb_ch_test();
#endif
#endif /* CONFIG_SKY_ISDBT */

  DMB_MSG_TEST("[%s] Test end!!!\n", __func__);
}
Esempio n. 2
0
void tdmb_test_on_boot(void)
{
  TDMB_MSG_TEST("[%s] Test start!!!\n", __func__);

#ifdef FEATURE_NETBER_TEST_ON_BOOT
  netber_init();
  dmb_mode = TDMB_MODE_NETBER;
#endif

#ifdef FEATURE_HW_INPUT_MATCHING_TEST
  tdmb_ch_test(TDMB_TEST);
#elif defined (FEATURE_COMMAND_TEST_ON_BOOT)
  tdmb_bb_power_on();

 #ifdef FEATURE_QTDMB_USE_INC
  #if defined(FEATURE_QTDMB_SPI_CMD)
    t3700_spi_test();
  #elif defined(FEATURE_QTDMB_EBI_CMD)
    t3700_ebi2_test();
  #else
    t3700_i2c_test();
  #endif
 #elif defined(FEATURE_QTDMB_USE_FCI)
  #ifdef FEATURE_QTDMB_I2C_CMD
  fc8050_if_test(1);
  //fc8050_if_test(2);
  //fc8050_if_test(3);
  //fc8050_if_test(4);
  #endif
 #elif defined(FEATURE_QTDMB_USE_TCC)
    tcc3170_rw_test();
 #endif /* FEATURE_QTDMB_USE_INC */
#else
  tdmb_ch_test(TDMB_TEST_CH);
#if (defined(FEATURE_QTDMB_EBI_IF) || defined(FEATURE_QTDMB_SPI_IF))
  tdmb_bb_set_fic_isr(1);
#endif
#endif

  TDMB_MSG_TEST("[%s] Test end!!!\n", __func__);
}