This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: How to set the DDR QOS for mcu when bootup with sdcard on VH ?

Part Number: TDA4VM
Other Parts Discussed in Thread: TDA4VH

Have found these settings for sbl, but have not found similar settings for boot with sdcard.

How could we set the DDR QOS for mcu when bootup with sdcard on vh board?

Great thanks!

V8.2.2.0

modules/common/vision_apps/platform/j784s4/rtos/c7x_1/main.c

void setup_dru_qos(void)

{

   uint64_t DRU_BASE = CSL_COMPUTE_CLUSTER0_MMR_DRU4_MMR_CFG_DRU_BASE;

   volatile uint64_t* queue0CFG     = (uint64_t*)(DRU_BASE + 0x8000);

 

   if(gQoS_DRU_Priority > 7 || (gDruQoS_Enable == 0))

   {

     gQoS_DRU_Priority = 0;

   }

   if(gQoS_DRU_OrderID > 15 || (gDruQoS_Enable == 0))

   {

     gQoS_DRU_OrderID = 0;

   }

 

   uint64_t queue0CFG_VAL = 0x0;

   queue0CFG_VAL |= ((uint64_t)gQoS_DRU_OrderID)<<4;

   queue0CFG_VAL |= ((uint64_t)gQoS_DRU_Priority);

 

   *queue0CFG = queue0CFG_VAL;

}

 

ti/ti-processor-sdk-rtos-j784s4-evm-08_02_02_02/pdk_j784s4_08_02_02_04/packages/ti/boot/sbl/soc/k3/sbl_qos.c

static void J721E_SetupQoS()

{

    setup_navss_nb();

    setup_c66_qos();

    /* Workaround to unblock PDK-8359 .

     * setup_main_r5f_qos() results in crashing the UDMA DRU examples on

     * mcu2_0(with SBL uart boot mode) during CSL_REG64_WR(&pRegs->DRUQueues.CFG[queueId], regVal);

     * Hence commenting out the following. */

    //setup_main_r5f_qos();

    setup_vpac_qos();

    setup_dmpac_qos();

    setup_dss_qos();

    setup_gpu_qos();

    setup_encoder_qos();

}

 

/* This function is to be called from other apps (e.g., mcusw boot app) to set QoS settings */

void SBL_SetQoS()

{

#if defined(SOC_J721E)

    J721E_SetupQoS();

#endif

}