u-boot/arch
Michael Trimarchi f33b9bd398 arm: omap3: Enable clocks for peripherals only if they are used
This patch change the per_clocks_enable() function used in OMAP3
code to enable peripherals clocks. Only required clock should be
activated. So if the board use the uart(x) as a console we need
to activate it. The Board's config should include define to enable
every subsystem that the board use. For a complete list
of affected peripherals, registers CM_FCLKEN_PER and CM_ICLKEN_PER
should be checked.
Right now the bootloader can enable and disable clocks for:
uart(x) using CONFIG_SYS_NS16550
gpio bank (x) using CONFIG_OMAP3_GPIO_X with X = { 2, 3, 4, 5, 6 }
i2c bus using CONFIG_DRIVER_OMAP34XX_I2C.

Not required gptimer(x) and mcbsp(x) for booting are disabled by default and
are not supported by any define.
Their activation need to included in the per_clocks_enable if the
peripheral is included. Not booting board should enable the peripheral
clock connected to their driver

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@ti.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
2013-12-06 07:02:32 -05:00
..
arm arm: omap3: Enable clocks for peripherals only if they are used 2013-12-06 07:02:32 -05:00
avr32 avr32: convert makefiles to Kbuild style 2013-10-31 13:26:45 -04:00
blackfin include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
m68k include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
microblaze include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
mips include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
nds32 nds32: convert makefiles to Kbuild style 2013-11-01 11:42:11 -04:00
nios2 nios2: convert makefiles to Kbuild style 2013-11-01 11:42:11 -04:00
openrisc openrisc: convert makefiles to Kbuild style 2013-10-31 13:26:45 -04:00
powerpc include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
sandbox sandbox: convert makefiles to Kbuild style 2013-10-31 13:26:44 -04:00
sh sh: convert to common timer code 2013-11-04 11:08:10 -05:00
sparc include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
x86 cosmetic: remove empty lines at the top of file 2013-11-08 09:41:37 -05:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00