1 Reply Latest reply on Dec 14, 2017 5:00 AM by 18025314957_2881091

    Porting CYW43438 to Exynos4412 Platfotm

    18025314957_2881091

      Dear Everyone,

      I am porting 43438 to samsuang 4412 platform. I have finished the platform driver , and connect the 43438 device to the Host SDIO port.

      The driver run as below:

      dhd_module_init: Enter

      [  717.489594] tomitest. enable
      CONFIG_WIFI_CONTROL_FUNC

      [  717.495162] ## Calling
      platform_driver_register

      [  717.511256] ## wifi_probe

      [  717.512441] wifi_set_power = 1

      [  717.515692] BCM_wifi_power: 1

      [  717.518427] [CYW43438] +++
      BCM_wifi_power : wlan poweron

      [  717.675453] [CYW] ---BCM_wifi_power

      [  717.677468] wifi_set_carddetect = 1

      [  717.681074] [CYW]
      ---BCM_wifi_set_carddetect

      [  717.685226]
      +sdhci_s3c_sdio_card_detect

      [  717.689026] -sdhci_s3c_sdio_card_detect

      [  717.694531] dhd_bus_register: Enter

      [  717.705095]

      [  717.705099] Dongle Host Driver,
      version 5.90.125.94.1

      [  717.705104] Compiled in
      drivers/net/wireless/bcmdhd on Dec  5 2017 at 01:55:03

      [  717.775049] *******mmc2:
      inserted!!!!!******

      From the log as above, the host SDIO driver has scaned the device, but it can't find 43438 until timeout.

      I catch the SDIO timing sequence  using logic analyzer , it show as below.        

        Time,  

         Value,Description  ,

      1. 0.0169056800,      
        0x400000C0039C, CMD0
      2. 0.0182246400,      
        0x480000C089FC, CMD8
      3. 0.0216734600,      
        0x000000000257, CMD0
      4. 0.0261158800,      
        0x20000006AA1F, CMD32
      5. 0.0274248400,      
        0x14000000016F, CMD20
      6. 0.0276926400,      
        0x14000000016F, CMD20
      7. 0.0279604400,      
        0x14000000016F, CMD20
      8. 0.0282282200,      
        0x14000000016F, CMD20
      9. 0.0296623200,      
        0x70000000065C, CMD48
      10. 0.0309737800,      
        0x70000000065C, CMD48
      11. 0.0322827200,      
        0x70000000065C, CMD48

      ...

      The host has scaned devices using CMD, but the device(43438) coundn't be founded.

      So, who can give me support to fix this issue?