Settings of LCD _PCLK ON THE MSM7X Platform

Source: Internet
Author: User

In the original code, Pclk is set to 8 m, but for 320*480 LCD needs to be increased to about 10 m.
Therefore, you can directly modify the two parts in the bootloader and kernel.
Lcdc_clock_init (8000000 );
Pinfo-& gt; clk_rate = 8000000;


An error occurred while starting the download. The log is displayed as follows:
Can't set mdp lcdc pixel clock to rate 10000000


Ret = clk_set_rate (pixel_mdp_clk, mfd-> fbi-> var. pixclock );
If (ret ){
Pr_err ("% s: Can't set mdp lcdc pixel clock to rate % u \ n ",
_ Func __, mfd-> fbi-> var. pixclock );
Goto out;
}


Search for pixel_mdp_clk and then display
Pixel_mdp_clk = clk_get (NULL, "mdp_lcdc_pclk_clk ");
CLK_PCOM ("mdp_lcdc_pclk_clk", MDP_LCDC_PCLK_CLK, NULL, 0 ),
After checking this information, we found that clk uses RPC shared memory to call the settings on the arm9-end.


Find MDP_LCDC_PCLK_CLK in the arm9-segment. You can use this clk_regime_sel_mdp_lcdc_clk () function to set pclk.
Search all the way (this code is really depressing)
Boolean clk_regime_bsp_init (void) // assign a value to pclk
Clkrgm_bsp = & clkrgm_bsp_data; // pass the value
Clk_regime_bsp_load_mdp_lcdc_cfgs // pass the value of the array


Find the clkrgm_bsp_7627.c File
Clkrgm_bsp_msm_clk_1__type clkrgm_bsp_msm_1__mdp_lcdc []
{
// Add the pclk you want to use this function. Is this code really painful!
}

Author's "qq413187589 column"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.