mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
OMAP3 Turn on the GPIO bank clocks
The function and interface clocks for each GPIO bank, except the first, must be explicitly turned on. These are controlled by the config level defines CONFIG_OMAP3_GPIO_n where n is from 2 to 6. Signed-off-by: Tom Rix <Tom.Rix@windriver.com> Acked-by: Dirk Behme <dirk.behme@googlemail.com>
This commit is contained in:
parent
59272620c2
commit
708cfb74b7
1 changed files with 22 additions and 0 deletions
|
@ -357,6 +357,28 @@ void per_clocks_enable(void)
|
|||
sr32(&prcm_base->fclken_per, 11, 1, 0x1);
|
||||
sr32(&prcm_base->iclken_per, 11, 1, 0x1);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OMAP3_GPIO_2
|
||||
sr32(&prcm_base->fclken_per, 13, 1, 1);
|
||||
sr32(&prcm_base->iclken_per, 13, 1, 1);
|
||||
#endif
|
||||
#ifdef CONFIG_OMAP3_GPIO_3
|
||||
sr32(&prcm_base->fclken_per, 14, 1, 1);
|
||||
sr32(&prcm_base->iclken_per, 14, 1, 1);
|
||||
#endif
|
||||
#ifdef CONFIG_OMAP3_GPIO_4
|
||||
sr32(&prcm_base->fclken_per, 15, 1, 1);
|
||||
sr32(&prcm_base->iclken_per, 15, 1, 1);
|
||||
#endif
|
||||
#ifdef CONFIG_OMAP3_GPIO_5
|
||||
sr32(&prcm_base->fclken_per, 16, 1, 1);
|
||||
sr32(&prcm_base->iclken_per, 16, 1, 1);
|
||||
#endif
|
||||
#ifdef CONFIG_OMAP3_GPIO_6
|
||||
sr32(&prcm_base->fclken_per, 17, 1, 1);
|
||||
sr32(&prcm_base->iclken_per, 17, 1, 1);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVER_OMAP34XX_I2C
|
||||
/* Turn on all 3 I2C clocks */
|
||||
sr32(&prcm_base->fclken1_core, 15, 3, 0x7);
|
||||
|
|
Loading…
Reference in a new issue