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.

Could anybody answer my following question about GPIO of AM335x?

Other Parts Discussed in Thread: AM3358

Dear Sir / Madam,

I'm a new to this forum. Really need to solve my problem.

Please help me on it.

Thank you.

Lin

  • Lin,
    what is the original post you are talking about the problems?
  • Here is my original question:

    (How to set the gpmc_ad14 (V13) pin of AM3358 to GPIO output low)

    Hello there,

    I want to set that pin low to turn on an onboard led during the SPL stage. Could you tell me how I can do it?

    Someone told me to modify the mux.c file.

    I modified it as below:

    static struct module_pin_mux nand_pin_led[ ] = {

           //{OFFSET(gpmc_ad14),  (MODE(0) | PULLUDDIS | RXACTIVE) },    /* original AD14 setting  */ 

             {OFFSET(gpmc_ad14),  (MODE(7) | PULLDOWN_EN) },                   /* my modified AD14 setting  */

             {-1},

    };

    Then in the function void enable_board_pin_mux(void) I added:

             configure_module_pin_mux(nand_pin_led); 

    But, the led on board doesn't response at all.

    Is there anything wrong in my above code? Or do I miss anything?

    Appreciate all kinds of input.

    Thanks,

    Lin

  • Here is my original question:

    How to set the GPMC_AD14 (V13) pin of AM3358 to GPIO output low?


    Hello there,

    I want to set that pin low to turn on an onboard led during the SPL stage. Could you tell me how I can do it?

    Someone told me to modify the mux.c file.

    I modified it as below:

    static struct module_pin_mux nand_pin_led[ ] = {

    //{OFFSET(gpmc_ad14), (MODE(0) | PULLUDDIS | RXACTIVE) }, /* original AD14 setting */

    {OFFSET(gpmc_ad14), (MODE(7) | PULLDOWN_EN) }, /* my modified AD14 setting */

    {-1},

    };

    Then in the function void enable_board_pin_mux(void) I added:

    configure_module_pin_mux(nand_pin_led);

    But, the led on board doesn't response at all.

    Is there anything wrong in my above code? Or do I miss anything?

    Appreciate all kinds of input.

    Thanks,

    Lin
  • Closing this. The original thread is here: e2e.ti.com/.../543666 Please do not double-post on this forum.
  • thanks Biser for catching and closing it.