]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx51/karo/v1_0/src/tx51_misc.c
TX51 Release 2011-07-27
[karo-tx-redboot.git] / packages / hal / arm / mx51 / karo / v1_0 / src / tx51_misc.c
index c350bbad3e9b7e3ddd429084e62839f4bbcb0899..3bd2987d08cd3c0dc7d04bed071196b09d8afde6 100644 (file)
@@ -476,25 +476,6 @@ void increase_core_voltage(bool i)
        }
 }
 
-static unsigned long random;
-/* provide at least _some_ sort of randomness */
-#define MAX_LOOPS      100
-extern int hal_timer_count(void);
-
-static void random_init(void)
-{
-       unsigned long timer;
-
-       int loops = MAX_LOOPS;
-
-       do {
-               timer = hal_timer_count();
-               srand(random + timer);
-               random = rand();
-       } while ((timer < 5) || ((timer & (random >> (random & 0x1f))) && --loops > 0));
-}
-RedBoot_init(random_init, RedBoot_INIT_FIRST);
-
 static void display_board_type(void)
 {
        diag_printf("\nBoard Type: Ka-Ro TX51-80x%d\n",