OMAP2430sdp MMC driver for 2.6.2 1
在2007-07-24,"Syed Mohammed, Khasim" 写道:
Quoted 72 lines
Hi folks,
I'm doing on OMAP2430sdp MMC driver for 2.6.21.5. I based on minimal
OMAP2430 patch on this mailing list and ported twl4030 GPIO and virtual
busses drivers form 2.6.14.7. Now kernel works well on my board. I2C also
works well on 2.6.21.5, following is I2C log message:
mmc0: Response
00ff8000Looks like your structure is corrupted, this value is default junk value. I was seeing this error with wrong
INIT_WORKparameters, note thatinit_workparameters are >changed now.
Quoted 1 line
I suggest you to use twl and I2C drivers from OMAP GIT instead of porting it.
I got the latest OMAP GIT tree, and use I2C and twl drivers from this tree. Following is I2C log message:
bus 2 rev3.7 at 2600 kHz
bus 1 rev3.7 at 400 kHz
TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
<6>TWL4030: Driver registration complete.
i2c /dev entries driver
TWL4030 GPIO Demux: IRQ Range 329 to 338, Initialization Success
56: 0 INTC i2c_omap
57: 100 INTC i2c_omap
I think I2C should work well.
Quoted 21 lines
I have a working 2430 MMC code base for Latest OMAP GIT, I am in the process of adopting this to new data structures in
include/asm/arch/mmc.h, some how not fitting >in straight. But the attached code should work with minimal configuration. Need some cleanups before submitting for comments.
Quoted 1 line
I have not validated SD but MMC is validated for sure. Should help you.
Thanks for your patches. I tried it on 2.6.21.5 and OMAP GIT tree for SD card. It seems driver doesn't work well for SD card (2.6.21.5 and OMAP GIT tree). I found the error is CMD1 is timeout. Following is the log message:
mmc0: set_ios: clock 0Hz busmode 1 powermode 0 Vdd 0 Bus Width 0
...
mmc0: set_ios: clock 0Hz busmode 1 powermode 1 Vdd 15 Bus Width 0
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 15 Bus Width 0
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 15 Bus Width 0
mmc0: CMD0, argument 0x00000000
IRQ Status is 1
mmc0: End request, err 0
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 15 Bus Width 0
mmc0: CMD55, argument 0x00000000
IRQ Status is 18000
mmc0: End request, err 1
...
mmc0: CMD55, argument 0x00000000
IRQ Status is 18000
mmc0: End request, err 1
mmc0: CMD55, argument 0x00000000
IRQ Status is 18000
mmc0: End request, err 1
mmc0: CMD55, argument 0x00000000
IRQ Status is 18000
mmc0: End request, err 1
mmc0: CMD1, argument 0x00000000
IRQ Status is 18000
mmc0: End request, err 1
mmc0: set_ios: clock 0Hz busmode 1 powermode 0 Vdd 0 Bus Width 0
I hope this log message is helpful for you. I will try this driver for MMC card, but I have to find a MMC card firstly :-). Thanks.
Best Regards,
Yang Shi
Quoted 9 lines
Quoted 7 lines
Regards,
Khasim
iPod、万 点 巨 额 点 卡、奖 学 金……海 量 奖 品,想 拿 就 拿!