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.

omap gpio control bank 8 is missing in u-boot

Guru 20755 points
Other Parts Discussed in Thread: DA8XX

Hello,

 

It seems that bank 8 in [u-boot.git] / arch / arm / include / asm / arch-davinci / gpio_defs.h
is missing. only the following registers are defined:

61 #define davinci_gpio_bank01 ((struct davinci_gpio *)DAVINCI_GPIO_BANK01)
62 #define davinci_gpio_bank23 ((struct davinci_gpio *)DAVINCI_GPIO_BANK23)
63 #define davinci_gpio_bank45 ((struct davinci_gpio *)DAVINCI_GPIO_BANK45)
64 #define davinci_gpio_bank67 ((struct davinci_gpio *)DAVINCI_GPIO_BANK67)
Regards,
Ran
  • Hello,

    Can anyone please help with that (the original message was posted about more 2 month ago in http://e2e.ti.com/support/embedded/f/354/t/96730.aspx ) ?

    Best Regards,

    Ran

  • Haven't looked at this particular SoC... but can you check the datasheet for pin muxing of GPIO bank 8? Is it configured properly at reset or in U-Boot?

    Regards,

    Vaibhav

  • Hi Vaibhab,

    I did not find any configuration at reset. you can see below the changes I made in order to configure set registers  DAVINCI_GPIO_BANK8   , but as I said there is some problem when accesing bank8.
    I am realy puzzled at this for a quite time...

    Regards,

    Ran

    #ifndef CONFIG_SOC_DA8XX
    #define DAVINCI_GPIO_BINTEN    0x01C67008
    #define DAVINCI_GPIO_BANK01    0x01C67010
    #define DAVINCI_GPIO_BANK23    0x01C67038
    #define DAVINCI_GPIO_BANK45    0x01C67060
    #define DAVINCI_GPIO_BANK67    0x01C67088
    + #define DAVINCI_GPIO_BANK8    0x01C670B0
    #else /* CONFIG_SOC_DA8XX */
    #define DAVINCI_GPIO_BINTEN    0x01E26008
    #define DAVINCI_GPIO_BANK01    0x01E26010
    #define DAVINCI_GPIO_BANK23    0x01E26038
    #define DAVINCI_GPIO_BANK45    0x01E26060
    #define DAVINCI_GPIO_BANK67    0x01E26088
    +#define DAVINCI_GPIO_BANK8    0x01E260B0
    #endif /* CONFIG_SOC_DA8XX */

    #define davinci_gpio_bank01 ((struct davinci_gpio *)DAVINCI_GPIO_BANK01)
    #define davinci_gpio_bank23 ((struct davinci_gpio *)DAVINCI_GPIO_BANK23)
    #define davinci_gpio_bank45 ((struct davinci_gpio *)DAVINCI_GPIO_BANK45)
    #define davinci_gpio_bank67 ((struct davinci_gpio *)DAVINCI_GPIO_BANK67)
    +#define davinci_gpio_bank8 ((struct davinci_gpio *)DAVINCI_GPIO_BANK8)

  • Hi Ran,

    The changes you have done are proper. In fact I added the same changes to my U-Boot code and I was able to read from the direction register of GPIO bank 8 on DA850. I am using the U-Boot code from http://arago-project.org/git/projects/?p=u-boot-davinci.git;a=shortlog;h=refs/heads/master. Which platform you are using?

    Regards, Sudhakar

  • Hi Sudhakar, Ok, I found what was the real problem: after configuring the pin direction of one of the GPIO in Bank 8 register, the OMAP (from still unknown reason) , reset itself. Anyway, bank8 address register seems to work well, the reset problem is in somewhere else... Thanks, Ran