AnsweredAssumed Answered

How to change i.MX6 Sololite SDHC speed?

Question asked by Tsung-Fang Tu on Jun 9, 2014
Latest reply on Jun 12, 2014 by igorpadykov

Hi All,

 

     Our project is designed and developed based on i.mx6 Sololite EVK, Android JB4.3. The wifi chips CWFA108 (RTL8189ES inside) is connected on the SD1. No problem on the wifi driver porting but it's unstable and keep reporting below similar errors:

 

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x00080 val=0x81

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x00080 val=0x40

RTL871X: rpwmtimeout_workitem_callback: FW already leave 32K!

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10210

 

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10522 val=0xff

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x104dc

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284

RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10284 val=0xff

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284

RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284

RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10214 val=0x00

RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10200 val=0x00

RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x00014 val=0x00

RTL871X: =>rtl8188es_hal_deinit

RTL871X: =>hal_poweroff_rtl8188es

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x104ec val=0xfd

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10100 val=0x00

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10045 val=0xff

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10046 val=0xff

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10042 val=0xff

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10043 val=0xff

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10522 val=0x7f

RTL871X: Fail to polling Offset[0x5f8]

RTL871X: hal_poweroff_rtl8188es: run RF OFF flow fail!

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10003 val=0xfb

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10080 val=0x00

RTL871X: SetHwReg8188ES: bMacPwrCtrlOn=0

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x1001f val=0x00

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10023 val=0xff

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10005 val=0xff

RTL871X: Fail to polling Offset[0x5]

RTL871X: hal_poweroff_rtl8188es: run CARD DISABLE flow fail!

RTL871X: <3>sd_write8: FAIL!(-110) addr=0x1001c val=0x0e

RTL871X: <=hal_poweroff_rtl8188es

RTL871X: <=rtl8188es_hal_deinit

 

     Have consulted the FAE and checked the datasheets, found the suggested speed of this chip is 25mhz which is much slower than the default speeds of Sololite (50mhz/100mhz/200mhz). We have reviewed the board-mx6sl_evk.c but got no clue for the SD speed adjusting. Please kindly advise if you know the answer for this urgent project. Many thanks!

 

     BTW, during a.m. code reviewing, we also tried to find the variable definitions in board-mx6sl_evk.c, such as: "mx6sl_sd1_50mhz" and "SD_PAD_MODE_LOW_SPEED", but cannot find the definitions in whole BSP... it's surprised me and raised the question mark for how can the kernel successfully make?

 

-tftu

Outcomes