How to use the gamma correction for i.MX6UL

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the gamma correction for i.MX6UL

373 Views
yuuki
Senior Contributor I

Dear all,

We want to make gamma correction in i.MX6UL.

We understand that we have to use the PXP_LUT_CTRL and the PXP_LUT_ADDR registers.

However, We do not understand those how to use.

Would you tell me how to use the gamma correction by using these?

IMX6ULRM.pdf(Rev0):

http://cache.nxp.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf

- 40.7.37 Lookup Table Control Register. (PXP_LUT_CTRL)(P.2420)

- 40.7.38 Lookup Table Control Register. (PXP_LUT_ADDR)(P.2422)

We referred to LinuxBSP.

BSP: fsl-yocto-L3.14.38_6ul-ga.tar.gz

However, We were not able to find these cords.

Would you send it to us if a sample source code exists?

Best Regards,

Yuuki

Labels (2)
0 Kudos
3 Replies

141 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Yuuki

one can look at example pxp_set_lut() :

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

141 Views
yuuki
Senior Contributor I

Dear Igor-san,

Thank you for a quick response.

We referred to the source code.

However, we were not able to find Lookup Table.

Where should we refer to?

Best Regards,

Yuuki

0 Kudos

141 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Yuuki

below part of pxp_set_lut() :

/* Fill out LUT table using colormap values */

...

    /* Initialize LUT address to 0 and set NUM_BYTES to 0 */
   __raw_writel(0, pxp->base + HW_PXP_LUT_ADDR);

..

Best regards

igor