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.

Configuration of CONTROL_PADCONF_X

Other Parts Discussed in Thread: OMAP3530, OMAP-L138

Hello,

This is my first post in here so lets see how this goes.

I want to configure the CONTROL_PADCONF_X of an Omap35x so it has the timer 10 enable and as capture mode.

But I haven't found where to specify the mux of the pins, do I need a specific program to do it or I can do it through the terminal?.

By the way my kernel is 3.5.

Regards

  • Hi,

    You can do the pinmux settings in your board file located at "arch/arm/mach-omap2/<ur board file>"

        omap_mux_init_gpio(<pin desc; name> , <type>);

    Ex:

    < linux-kernel-source-tree>/arch/arm/mach-omap2/board-omap3evm.c

    Ex:

        omap_mux_init_gpio(LCD_PANEL_PWR, OMAP_PIN_INPUT_PULLUP);

    Refer the below pin descriptions declarations for pinmux.

    < linux-kernel-source-tree > arch/arm/mach-omap2/mux34xx.c

     

  • Hi Titus,

    Thank you for your quick response.

    I have cd to the directory /usr/src/linux-headers-3.5.0-2-linaro-omap/arch/arm/mach-omap2/ but there is no file similar to the one that you suggested.

    In that directory there is:

    Kconfig  Makefile  Makefile.boot  include

    The only folder is include and the only thing inside it is mach so I move there. in ../mach-omap2/include/mach the files are:

    am35xx.h                               ctrl_module_pad_wkup_44xx.h  irqs.h
    barriers.h                               ctrl_module_wkup_44xx.h            omap-secure.h
    board-rx51.h                         debug-macro.S                                omap-wakeupgen.h
    board-zoom.h                       gpio.h                                                 smp.h
    ctrl_module_core_44xx.h   hardware.h                                       timex.h
    ctrl_module_pad_core_44xx.h  id.h                                             uncompress.h

    I do not see any .c file, am I in the wrong directory?

    Regards

  • Hi,

    I have few question to answer your question.

    What is your board & processor ?

    If it TI EVM board, Have you downloaded SDK for linux.

    The only folder is include and the only thing inside it is mach so I move there. in ../mach-omap2/include/mach the files are:

    am35xx.h                               ctrl_module_pad_wkup_44xx.h  irqs.h
    barriers.h                               ctrl_module_wkup_44xx.h            omap-secure.h
    board-rx51.h                         debug-macro.S                                omap-wakeupgen.h
    board-zoom.h                       gpio.h                                                 smp.h
    ctrl_module_core_44xx.h   hardware.h                                       timex.h
    ctrl_module_pad_core_44xx.h  id.h                                             uncompress.h

    I could see only 2 board files.

    Where did you download this linux source?

  • I am using the OMAP3530 and the linux source is Linaro from Yocto Project. I downloaded this image from here:

    http://gumstix.org/download-prebuilt-images.html

    Specifically you go to Yocto Project, and the select Overo Series COMS.

    I purchased the board from:

    https://store.gumstix.com/index.php/products/227/

    I have not downloaded the SDK for linux. I will do that now.

  • Just to be clear, I do not have the OAMP35xx EVM.

    It says that the SDK for linux is for the OMAP-L138 not the OMAP35xx.

    Is it ok if I install that one?

    Or should I install any other development kit?

  • Hi Roque,

    If you are using OMAP35xx then you can install beagle board's linux SDK and do defconfig for "omap2_plus_defconfig or omap3_evm_defconfig" in linux make menuconfig option.

     OMAP-L138 is davinci based platforms bnut yours OMAP3 .

    Have a look at it.

    e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/325747.aspx

    Post your queries in OMAP35xx forum for immediate responses.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/447.aspx

    I hope it helps