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:
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.
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:
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