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.

Can I change pin mux while application working?

Other Parts Discussed in Thread: OMAP-L137

Hi, Help please.

I produce custom OMAP-L137 board.
I want to use the pin has two fuctions.

Example, Pin R5 fuction is SPI0 ENA / BOOT_3.

When I Boot start, use BOOT_3 Fuction.

But, application use SPI0 ENA.

What should I do?

  • Kim,

    The boot pins are latched at reset only and are not used after the boot is complete. you can change the pin Mux to use it as a SPI ENABLE pin in your application code.

    Regards,

    Rahul

  • Thanks, Rahul.

    Addition Q.

    Can I change pinmux while boot?(no application)

    If possible,..What do I need to modify?

    Kernel source or U-boot source? where modify?

  • Yes, you can change the pinmux while booting as long as it doesn`t affect the boot media that you are booting from.For example if you are booting from SPI flash, you can change the pinmux as long as you don`t affect the SPI CS, SIMO, SOMI, CLK PINs. On OMAPL137 there are multiple places where you can do this, After the ROM code executes the OMAPL137 runs an DSP user boot loader (UBL) that brings ARM out of reset and then the ARM runs a UBL that initializes UART, boot media and copies uboot. You can introduce the PIn MUX chnage in either of the two UBLs. Also, Uboot allows you to do low level configurations including PINMUX so it can be done there as well.

    The kernel source and drivers assume that the device PINMUX is already been done so there is no provision to change PINMUX there but from application space if u mmap the SYSCFG register portion, you can change the pinmus by directly writing to the PINMUX registers from application space but is not recommended.

    Regards,

    Rahul

  • Thank you for the answer.
    Addtion Q.

    I used Pin Setup Utility.(Version 1.0)
    It make Header File.
    Therefore, How use the Header File?
    It is not been described about used information.
    If you know that how use header file.
    Help me please.
    Regards,

    JG Kim

  • Hi,

    The pin mux utility is generally used only to figure out availability of the pins. If you do create a header file you can use the #defines in the header file to assign those values to the pin mux registers in the system configuration registers.

    If you want to configure it at the time of boot, you can provide them to the AISGen tool or in development you can use the values in the GEL files.

    Regards,

    Rahul

  • Reply Thanks.

    If I want pin setup during boot time, use AISGen tool.

    Then don't kernel source or other source modify. Is that right?