• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM816x, C6A816x and AM389x Processors Forum » How to change the DSP clock in TI816x
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

How to change the DSP clock in TI816x

How to change the DSP clock in TI816x

This question is not answered
Gabi Gvili
Posted by Gabi Gvili
on Mar 04 2012 10:32 AM
Genius3785 points

Hi,

Does anyone knows how to change the DSP clock in TI816x?
Can it be done on run time?

Thanks,
Gabi 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Anil
    Posted by Anil
    on Mar 05 2012 00:15 AM
    Expert6655 points

    Hi Gabi,

    We can chagne the DSP frequency in u-boot (code), in kernel we have a provision to change the DSP clock rate runtime.

    Details can get from http://processors.wiki.ti.com/index.php?title=TI81XX_PSP_PM_Clock_Framework_User_Guide

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    PSP DSP dm8168 Clock
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Mar 07 2012 09:32 AM
    Genius3785 points

    Hi Anil, 

    Thank you very much for your answer, i have read the wiki you have sent me carefully, i have a few questions, where exactly is the file that i need to modify in order to change the DSP frequency? since i couldn't find it at the wiki, it is explained only how to do it.
    Which device_id should i use for changing the DSP clock frequency?

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Mar 07 2012 12:25 PM
    Expert6655 points

    Hi Gabi,

    Generally frequency modification required for a module, so we can add it in driver or driver initialization code. In case of DSP you can add to "ti8168_evm_init()" in arch/arm/mach-omap2/board-ti8168evm.c file. Refer the same document for adding the necessary clk APIs.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    PSP dm8168 DSP clock
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Mar 08 2012 03:11 AM
    Genius3785 points

    Hi Anil,

    Thank you very much for your answer, now i know that i have to add the code 

    clk = clk_get(dev_id,clk_name);
    rate = clk_get_rate(clk);
    ret = clk_set_rate(clk, new_clk_rate);
    
    
    in the function "ti8168_evm_init()" in the file arch/arm/mach-omap2/board-ti8168evm.c
    but i still don't know what are the values for dev_id and clk_name that i need to put in order to change the DSP clock rate, can you please help with that?
    
    
    Thanks,
    Gabi 



    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Mar 08 2012 05:53 AM
    Expert6655 points

    Hi Gabi,

    Steps for change the DSP frequency.

    clk = clk_get(NULL, "gem_ick");
    rate = clk_get_rate(clk);
    ret = clk_set_rate(clk, new_clk_rate);

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

     
     
    PSP DSP dm8168 Clock
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Mar 08 2012 09:25 AM
    Genius3785 points

    Hi Anil,

    I have changed the fuction "ti8168_evm_init()" as listed below, recompiled the kernel and checked and there is no change in DSP clock rate, please advice.

    static void __init ti8168_evm_init(void)
    {

    struct clk *clk;
    unsigned long rate;

    ti81xx_mux_init(board_mux);
    omap_serial_init();
    ti816x_evm_i2c_init();
    i2c_add_driver(&ti816xevm_cpld_driver);
    ti81xx_register_mcasp(0, &ti8168_evm_snd_data);
    ti816x_spi_init();
    /* initialize usb */
    usb_musb_init(&musb_board_data);
    board_nand_init(ti816x_nand_partitions,
    ARRAY_SIZE(ti816x_nand_partitions), 0, NAND_BUSWIDTH_16);
    omap2_hsmmc_init(mmc);
    board_nor_init(ti816x_evm_norflash_partitions,
    ARRAY_SIZE(ti816x_evm_norflash_partitions), 0);
    ti816x_vpss_init();
    ti816x_gpio_vr_init();
    ti816x_hdmi_init();
    regulator_has_full_constraints();
    regulator_use_dummy_regulator();

    // change DSP clock rate
    clk = clk_get(NULL, "gem_ick");
    rate = clk_get_rate(clk);
    ret = clk_set_rate(clk, 990000000);

    }

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Mar 14 2012 00:50 AM
    Expert6655 points

    Hi Gabi,

    What is the error message you are seeing?

    Lookat "dmesg"

    $ dmesg | tail

    Regards

    AnilKumar

    PSP DSP dm8168 Clock
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Mar 14 2012 02:27 AM
    Genius3785 points

    Hi Anil,

    Thanks for your reply, there is no error in the dmesg, i have looked on all of it.
    It is just that the DSP performances stay the same so i guess that there is no change in the DSP clock.

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Mar 27 2012 15:47 PM
    Genius3785 points

    Hi Anil,

    Can you please refer?

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Mar 30 2012 02:11 AM
    Expert6655 points

    Hi Gabi,

    Sorry for delay in response

    Can you add clk_enable(); before clk_set_rate(), so that you can able to change the rate. Wiki page will be updated with a note.

    // change DSP clock rate
    clk = clk_get(NULL, "gem_ick");
    clk_enable(clk);
    rate = clk_get_rate(clk);
    ret = clk_set_rate(clk, 990000000);

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    PSP dm8168 set_rate
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Apr 03 2012 05:56 AM
    Genius3785 points

    Hi Anil,

    It didn't help, DSP clock doesn't change.

    Gabi

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Apr 03 2012 06:15 AM
    Expert6655 points

    Hi Gabi,

    Which kernel version are you using? I tried with the latest one and its worked for me, I am able to change the rate.

    If you are on the old kernel, can you change it to new one

    http://software-dl.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/TI81XX_04_04/04_04_00_01/index_FDS.html

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    PSP DSP clock TI8168
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Apr 03 2012 06:28 AM
    Genius3785 points

    Hi Anil,

    I have linux-2.6.37-psp04.00.01.13.patch2, shouldn't it work on this version as well?

    Gabi

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Apr 03 2012 07:12 AM
    Expert6655 points

    Hi Gabi,

    I had tested recently, that is the reason why I asked you to test on the same.

    If you don't have any other dependencies can you try with recent kernel, mean while I will check with "psp04.00.01.13.patch2" also

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    PSP DSP dm8168 Clock
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Apr 03 2012 07:34 AM
    Genius3785 points

    Hi Anil,

    Thank you very much for your effort, i am sorry but i have other dependencies, therefore it is impossible for me to update the kernel.

    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use