From c9cb830945ede3edb75325accf936dc1e2aa52f9 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 9 Nov 2009 00:44:26 +0100 Subject: [PATCH] u-boot: Disable clocks we don't need We might gain a few more minutes battery runtime by this. --- .../patches/0001-add-xburst-platform-files.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch b/target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch index 7727039b9..8ae6556b6 100644 --- a/target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch +++ b/target/linux/xburst/image/u-boot/patches/0001-add-xburst-platform-files.patch @@ -206,7 +206,7 @@ new file mode 100644 index 0000000..572d22b --- /dev/null +++ b/board/qi_lb60/qi_lb60.c -@@ -0,0 +1,93 @@ +@@ -0,0 +1,103 @@ +/* + * Authors: Xiangfu Liu + * @@ -284,9 +284,19 @@ index 0000000..572d22b + __gpio_enable_pull(GPIO_USB_DETECT); +} + ++static void cpm_init(void) ++{ ++ __cpm_stop_ipu(); ++ __cpm_stop_cim(); ++ __cpm_stop_i2c(); ++ __cpm_stop_ssi(); ++ __cpm_stop_uart1(); ++} ++ +void board_early_init(void) +{ + gpio_init(); ++ cpm_init(); +} + +/* U-Boot common routines */