From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 4 Dec 2013 17:05:30 -0500 Subject: [U-Boot] [U-Boot, V2] arm: omap3: Enable clocks for peripherals only if they are used In-Reply-To: <20131130065958.GA2773@panicking> References: <20131130065958.GA2773@panicking> Message-ID: <20131204220530.GL420@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 30, 2013 at 07:59:58AM +0100, Michael Trimarchi wrote: > 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 > Cc: Igor Grinberg > Cc: Tom Rini > Acked-by: Igor Grinberg Applied to u-boot-ti/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: