am243x: hdsl: Fix example initialization when channel 0 is disabled
Fixes: PINDSW-5516 Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
This commit is contained in:
parent
f52620756a
commit
a26376d426
@ -976,7 +976,19 @@ void hdsl_init_300m(void)
|
|||||||
HwiP_construct(&gPRUHwiObject, &hwiPrms);
|
HwiP_construct(&gPRUHwiObject, &hwiPrms);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(CONFIG_HDSL0_CHANNEL0==1)
|
||||||
|
{
|
||||||
HDSL_iep_init(gHdslHandleCh[0]);
|
HDSL_iep_init(gHdslHandleCh[0]);
|
||||||
|
}
|
||||||
|
else if(CONFIG_HDSL0_CHANNEL1==1)
|
||||||
|
{
|
||||||
|
HDSL_iep_init(gHdslHandleCh[1]);
|
||||||
|
}
|
||||||
|
else if(CONFIG_HDSL0_CHANNEL2==1)
|
||||||
|
{
|
||||||
|
HDSL_iep_init(gHdslHandleCh[2]);
|
||||||
|
}
|
||||||
|
|
||||||
ClockP_usleep(5000);
|
ClockP_usleep(5000);
|
||||||
|
|
||||||
if(CONFIG_HDSL0_MODE == 1)
|
if(CONFIG_HDSL0_MODE == 1)
|
||||||
@ -1575,7 +1587,14 @@ void hdsl_diagnostic_main(void *arg)
|
|||||||
#if (CONFIG_HDSL0_CHANNEL2==1)
|
#if (CONFIG_HDSL0_CHANNEL2==1)
|
||||||
HDSL_config_channel_mask(gHdslHandleCh[2], chMask);
|
HDSL_config_channel_mask(gHdslHandleCh[2], chMask);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (CONFIG_HDSL0_CHANNEL0==1)
|
||||||
hdsl_pruss_load_run_fw_300m(gHdslHandleCh[0]);
|
hdsl_pruss_load_run_fw_300m(gHdslHandleCh[0]);
|
||||||
|
#elif (CONFIG_HDSL0_CHANNEL1==1)
|
||||||
|
hdsl_pruss_load_run_fw_300m(gHdslHandleCh[1]);
|
||||||
|
#elif (CONFIG_HDSL0_CHANNEL2==1)
|
||||||
|
hdsl_pruss_load_run_fw_300m(gHdslHandleCh[2]);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
DebugP_log( "\r\n HDSL setup finished\n");
|
DebugP_log( "\r\n HDSL setup finished\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user