Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02 Dec 2015 11:45 AM by  mvly
Switching Android buttons mapping on DM3730.
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
mvly
Basic Member
Basic Member
Posts:104


--
30 Nov 2015 12:33 PM

    I produced a board to house the DM3730, but I forgot to wire the back and home button for android OS to the right pins. Is it possible to switch these buttons in the Android build to map it to other GPIO? If so, what is the process?

     

    Thanks!

    mvly
    Basic Member
    Basic Member
    Posts:104


    --
    30 Nov 2015 02:54 PM

    Nevermind. It looks like it is in the file:

     

    board-omap3logic.c under gpio_key_init.

     

    I have not tested yet, but I will test it soon.

    mvly
    Basic Member
    Basic Member
    Posts:104


    --
    30 Nov 2015 03:04 PM

    Where do I find those pin mix signals?

     

    i.e. sys_boot0.gpio2

     

     

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    02 Dec 2015 10:23 AM
    The pin muxing in Linux is done in the board file in the Linux Kernel.

    kernel/arch/arm/mach-omap2/board-omap3logic.c does the work.

    Look for the function omap_mux_init_signal

    There are bunch of examples for the pin muxing.

    The following is already being done in omap3logic_gpio_key_init

    omap_mux_init_signal("sys_boot0.gpio_2", OMAP_PIN_INPUT_PULLUP);

    Does that help?
    mvly
    Basic Member
    Basic Member
    Posts:104


    --
    02 Dec 2015 11:45 AM

    Got it. Thanks.

     

    To add, I found the mux file for the DM3730 module I am using. It is in the same folder as the board-omap3logic.c file. It is called mux34xx.c. This has all the mappings as for as I can tell.

    You are not authorized to post a reply.