ESP8089 sdio premalloc default config
authorxxh <xxh@rock-chips.com>
Tue, 10 Mar 2015 11:17:29 +0000 (19:17 +0800)
committerxxh <xxh@rock-chip.com>
Tue, 10 Mar 2015 11:17:29 +0000 (19:17 +0800)
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/esp_init.c
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/esp_init_data.h
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/sdio_stub.c
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/slc_host_register.h
drivers/net/wireless/rockchip_wlan/esp8089/esp_premalloc/Makefile

index 5a92e4f756081d274f2b2ab57698f0b5393418dd..a0f1d324e4dabc8ee0762f06dd65710f06f21284 100755 (executable)
@@ -54,7 +54,7 @@ void esp_common_exit(void)
 #endif
 }
 
-static int __init esp_init(void)
+static int /*__init*/ esp_init(void)
 {
         u64 ver;
        int edf_ret = 0;
@@ -82,7 +82,7 @@ static int __init esp_init(void)
        return esp_common_init();
 }
 
-static void __exit esp_exit(void)
+static void /*__exit */ esp_exit(void)
 {
        esp_debugfs_exit();
 #ifdef ESP_CLASS
@@ -92,5 +92,20 @@ static void __exit esp_exit(void)
        esp_common_exit();
 }
 
-module_init(esp_init);
-module_exit(esp_exit);
+int rockchip_wifi_init_module_esp8089(void)
+{
+               
+       return esp_init();              
+}
+
+void rockchip_wifi_exit_module_esp8089(void)
+{
+       esp_exit(); 
+                
+}
+
+EXPORT_SYMBOL(rockchip_wifi_init_module_esp8089);
+EXPORT_SYMBOL(rockchip_wifi_exit_module_esp8089);
+
+//module_init(esp_init);
+//module_exit(esp_exit);
index 6f06ef3fee274718a3a19c48e2bcb32760d93dc8..86406af14bddfaaf33054681e8898db37b89506d 100755 (executable)
@@ -1,8 +1,8 @@
-/* Copyright (c) 2008 -2014 Espressif System.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- */
+/* Copyright (c) 2008 -2014 Espressif System.\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License version 2 as\r
+ * published by the Free Software Foundation.\r
+ *\r
+ */\r
 static char esp_init_data[] = {0x5,0x0,4,2,5,5,5,2,5,0,4,5,5,4,5,5,4,-2,-3,-1,-16,-16,-16,-32,-32,-32,204,1,0xff,0xff,0,0,0,0,82,78,74,68,64,56,0,0,1,1,2,3,4,5,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,240,10,0x0,0x0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
\ No newline at end of file
index 83bc261301381fc79e7c9c93d569770a34fc6a3b..ebf3658e670c47d582b3277dd50888ecbad90f60 100755 (executable)
@@ -22,17 +22,6 @@ extern int rockchip_wifi_set_carddetect(int val);
 extern int rk29sdk_wifi_power(int on);
 extern int rk29sdk_wifi_set_carddetect(int val);
 
-
-int rockchip_wifi_init_module_esp8089(void)
-{
-       return esp_sdio_init();
-}
-
-void rockchip_wifi_exit_module_esp8089(void)
-{
-      esp_sdio_exit();
-}
-
 void sif_platform_rescan_card(unsigned insert)
 {
                //rk29sdk_wifi_set_carddetect(insert); libing
@@ -68,7 +57,7 @@ void sif_platform_target_poweroff(void)
        printk("=======================================================\n");
        printk("==== Dislaunching Wi-Fi driver! (Powered by Rockchip) ====\n");
        printk("=======================================================\n");
-       printk("Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip,Ver %s) init.\n", ESP8089_DRV_VERSION);
+       printk("Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(03/10/2015),Drv: %s) exit.\n", ESP8089_DRV_VERSION);
 
        //rk29sdk_wifi_set_carddetect(0);
        if(sif_get_bt_config() != 1)
@@ -81,7 +70,7 @@ void sif_platform_target_poweron(void)
        printk("=======================================================\n");
        printk("==== Launching Wi-Fi driver! (Powered by Rockchip) ====\n");
        printk("=======================================================\n");
-       printk("Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip,Ver %s) init.\n", ESP8089_DRV_VERSION);
+       printk("Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(03/10/2015),Drv: %s) init.\n", ESP8089_DRV_VERSION);
 
        if(sif_get_bt_config() == 1){
                sif_platform_reset_target();
@@ -119,5 +108,3 @@ void sif_platform_ack_interrupt(struct esp_pub *epub)
 }
 #endif //ESP_ACK_INTERRUPT
 
-EXPORT_SYMBOL(rockchip_wifi_init_module_esp8089);
-EXPORT_SYMBOL(rockchip_wifi_exit_module_esp8089);
index df34758467ef1b738624657ca7ea32b6e2110291..f78bc2c284c71f05457d828e061c5d2cea8d5881 100755 (executable)
@@ -1,9 +1,9 @@
-/* Copyright (c) 2008 -2014 Espressif System.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
+/* Copyright (c) 2008 -2014 Espressif System.\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License version 2 as\r
+ * published by the Free Software Foundation.\r
+ *\r
  *\r
  */\r
 \r
index e8de1bad656a54fec9d533f095bde4d0846b2801..40880645e12a73bb584d1d63f3339337a973e511 100755 (executable)
@@ -9,8 +9,8 @@ MODPATH := $(shell pwd)
 DRIVER_NAME := esp_prealloc
 
 ####################### NORMAL OPTION ########################################
-#EXTRA_CFLAGS += -DESP_PRE_MEM              # normal mode, support SDIO
-EXTRA_CFLAGS += -DESP_PRE_MEM -DESP_SPI   # normal mode, support SPI
+EXTRA_CFLAGS += -DESP_PRE_MEM              # normal mode, support SDIO
+#EXTRA_CFLAGS += -DESP_PRE_MEM -DESP_SPI   # normal mode, support SPI
 ##############################################################################
 
 ####################### ADVANCE OPTION ###########################