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.

How to change switch(GPIO) for Fastboot on pandaboard

HI all,


I want to understand about how fastboot working on panda board.Currently pandaboard have a switch connected to gpio  for putting board into fastboot, if i want to change that switch to other gpio then where i need to make changes.

I suppose i need to make change in u-boot.I seen pandaboard config file but it not mention any thing about GPIO. So little confused about this.

Regards

Vikram

  • Hello Vikram,

    Since you use fastboot, I suppose you are trying to port Android on your board, right?
    The switch you refer to (SYS_BOOT3, marked as SW1 on pandaboard) is connected to ball E25 of OMAP4460. And the mux mode settings of that ball are made in u-boot  board/omap4430panda/omap4430panda.c as follows:

    MV(CP(SYS_BOOT3),       (PTD | IEN | M3)) /* gpio_187 */ 

    which indeed means that the E25 is set as GPIO, because of setting M3 (defined as 0x3 in mux.h) inside CONTROL_CORE_PAD0_SYS_BOOT3_PAD1_SYS_BOOT4[2:0]SYS_BOOT3_MUXMODE.Therefore we have CONTROL_CORE_PAD0_SYS_BOOT3_PAD1_SYS_BOOT4[2:0]SYS_BOOT3_MUXMODE = 0x3 => GPIO187 (see register description in Control Module chapter in OMAP4460 TRM).

    If you want to connect this switch to different ball of OMAP4460, you need to make similar settings to that ball.

    Best Regards,

    Yordan