]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/omap3/zoom2/zoom2.c
TWL4030 Add power reset button
[karo-tx-uboot.git] / board / omap3 / zoom2 / zoom2.c
index 08fdafb64470946d0bc2de6553cee521c6e54b73..d0fd55bfe9c0bad8046207aec44c271a47cb5f93 100644 (file)
@@ -32,6 +32,7 @@
 #ifdef CONFIG_STATUS_LED
 #include <status_led.h>
 #endif
+#include <twl4030.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/mem.h>
@@ -156,6 +157,19 @@ int misc_init_r(void)
        zoom2_identify();
        power_init_r();
        dieid_num_r();
+
+       /*
+        * Board Reset
+        * The board is reset by holding the the large button
+        * on the top right side of the main board for
+        * eight seconds.
+        *
+        * There are reported problems of some beta boards
+        * continously resetting.  For those boards, disable resetting.
+        */
+       if (ZOOM2_REVISION_PRODUCTION <= zoom2_get_revision())
+               twl4030_power_reset_init();
+
        return 0;
 }