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.

PROCESSOR-SDK-DRA8X-TDA4X: How to access ISP registers?

Part Number: PROCESSOR-SDK-DRA8X-TDA4X

Hi,

I want to ask how to access ISP registers, especially some blocks which have not been supported by DCC 2.1, such as rawfe, EE, NF.

Could you help indicate the position in code?

 

Thanks.

Best regards,

Zhishen

  • Please look at the files in the folder tiovx/tiovx_dev/kernels_j7/hwa/vpac_viss

    You can find functions like tivxVpacVissSetNsf4Config, tivxVpacVissSetRfeConfig etc.

  • Hello Mayank,

    Thanks for your reply. Let me ask in details.

    1. I can find vpac_viss folder in \tiovx\kernels_j7\hwa\vpac_viss, not tiovx/tiovx_dev/kernels_j7/hwa/vpac_viss. Could you help check it?

    2. tivxVpacVissSetRfeConfig function. I paste some codes here.

     vx_status           status = (vx_status)VX_SUCCESS;
        int32_t             fvid2_status = FVID2_SOK;
        Rfe_Control         rfeCtrl;

        if (NULL != vissCfgRef->lPwlCfg)
        {
            /* PWL for Long Input */
            rfeCtrl.module  = RFE_MODULE_PWL1;
            rfeCtrl.pwl1Cfg = vissCfgRef->lPwlCfg;
            fvid2_status = Fvid2_control(vissObj->handle, IOCTL_RFE_SET_CONFIG,
                (void *)&rfeCtrl, NULL);
            if (FVID2_SOK != fvid2_status)
            {
                VX_PRINT(VX_ZONE_ERROR,
                    "tivxVpacVissSetRfeConfig: Failed to set PWL1 Config !!!\n");
            }

            /* Reset Pointer */
            vissCfgRef->lPwlCfg = NULL;
        }

    My question is where Fvid2_control definition is?

    Thanks.

    Best regards,

    Zhishen

  • Hello Zhishen,

    You are looking at the right files. Fvid2_control is a driver API. I guess you are trying to understand where  IOCTL_RFE_SET_CONFIG is handled. Please refer to the file pdk\packages\ti\drv\vhwa\src\drv\vhwa_m2mVissApi.c. The function vhwa_m2mVissControl handles all the control commands from OpenVX node and updates ISP registers accordingly.

    Regards,

    Mayank