summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-07-13 07:40:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-07-13 07:40:30 +0000
commit5f655c93f931236c173700f54e4b329bf709e7cc (patch)
tree7e4edf40a5d59ec356fdc97f8eeef020aa1074dd /apps/main.c
parentac13e52522dac375096a65264ceae00afb3c5973 (diff)
downloadrockbox-5f655c93f931236c173700f54e4b329bf709e7cc.tar.gz
rockbox-5f655c93f931236c173700f54e4b329bf709e7cc.zip
Patch #5639 by Ulrich Pegelow, inits the M5636 USBOTG chip on the X5 to reduce the battery consumption.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10208 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c
index d6e3c342c9..4f31cdb58a 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -92,6 +92,10 @@
92#include "isp1362.h" 92#include "isp1362.h"
93#endif 93#endif
94 94
95#if CONFIG_USBOTG == USBOTG_M5636
96#include "m5636.h"
97#endif
98
95/*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */ 99/*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */
96 100
97const char appsversion[]=APPSVERSION; 101const char appsversion[]=APPSVERSION;
@@ -282,6 +286,8 @@ void init(void)
282 usb_init(); 286 usb_init();
283#if CONFIG_USBOTG == USBOTG_ISP1362 287#if CONFIG_USBOTG == USBOTG_ISP1362
284 isp1362_init(); 288 isp1362_init();
289#elif CONFIG_USBOTG == USBOTG_M5636
290 m5636_init();
285#endif 291#endif
286 292
287 backlight_init(); 293 backlight_init();