wl1251: halt the embedded CPU before loading firmware
[pandora-kernel.git] / drivers / net / wireless / wl12xx / wl1251_boot.c
index 88e9cb0..452d748 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <linux/gpio.h>
 
-#include "reg.h"
+#include "wl1251_reg.h"
 #include "wl1251_boot.h"
 #include "wl1251_io.h"
 #include "wl1251_spi.h"
@@ -465,6 +465,9 @@ int wl1251_boot(struct wl1251 *wl)
        int ret = 0, minor_minor_e2_ver;
        u32 tmp, boot_data;
 
+       /* halt embedded ARM CPU while loading firmware */
+       wl1251_reg_write32(wl, ACX_REG_ECPU_CONTROL, ECPU_CONTROL_HALT);
+
        ret = wl1251_boot_soft_reset(wl);
        if (ret < 0)
                goto out;