1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 23:34:59 +02:00

u-boot: Disable clocks we don't need

We might gain a few more minutes battery runtime by this.
This commit is contained in:
Lars-Peter Clausen 2009-11-09 00:44:26 +01:00
parent bc0684a065
commit c9cb830945

View File

@ -206,7 +206,7 @@ new file mode 100644
index 0000000..572d22b index 0000000..572d22b
--- /dev/null --- /dev/null
+++ b/board/qi_lb60/qi_lb60.c +++ b/board/qi_lb60/qi_lb60.c
@@ -0,0 +1,93 @@ @@ -0,0 +1,103 @@
+/* +/*
+ * Authors: Xiangfu Liu <xiangfu.z@gmail.com> + * Authors: Xiangfu Liu <xiangfu.z@gmail.com>
+ * + *
@ -284,9 +284,19 @@ index 0000000..572d22b
+ __gpio_enable_pull(GPIO_USB_DETECT); + __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) +void board_early_init(void)
+{ +{
+ gpio_init(); + gpio_init();
+ cpm_init();
+} +}
+ +
+/* U-Boot common routines */ +/* U-Boot common routines */