All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: OMAP2430sdp MMC driver for 2.6.21
@ 2007-07-25 17:13 石洋
  2007-07-25 17:17 ` sree
  0 siblings, 1 reply; 8+ messages in thread
From: 石洋 @ 2007-07-25 17:13 UTC (permalink / raw)
  To: sreesamb; +Cc: linux-omap-open-sour...

 Hi Sree,

I saw you enabled SD card successfully on OMAP2430sdp for 2.6.21 on linux-omap mailing list. Did you use the drivers posted by Khasim? Could you please share your patch or give me some hints? I also got the new git kernel, but I can't make SD card work well. I'm blocked here for two weeks. Following is my board's u-boot boot message:

U-Boot 1.1.4 (Sep 18 2006 - 16:46:43)

OMAP2430C-GP revision 3, PRCM #5A
TI 2430SDP 0.1 Version + mDDR (Boot NOR)
DRAM:  128 MB
Flash: 192 MB
Muxed OneNAND 128MB 1.8V 16-bit (0x30)
Scanning device for bad blocks
num of blocks = 2048
Bad eraseblock 120 at 0x00f00000
In:    serial
Out:   serial
Err:   serial
OMAP243X SDP #

Thanks.

Best Regards,
Yang Shi


iPod、万 点 巨 额 点 卡、奖 学 金……海 量 奖 品,想 拿 就 拿! 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* OMAP2430sdp MMC driver for 2.6.21
@ 2007-07-24  2:01 sree
  2007-07-24  4:11 ` Syed Mohammed, Khasim
  0 siblings, 1 reply; 8+ messages in thread
From: sree @ 2007-07-24  2:01 UTC (permalink / raw)
  To: linux-omap-open-source

Hi
Regarding MMC/SD drivers
There is no need of porting the old TWL4030 drivers,
But I took the virtual Bus support from the 2.6.14 kernel
and able to read the data in SD card, and write the SD card with the new git
kernel
and my dmesg looks like

mmc0: starting CMD6 arg 00000002 flags 00000009
mmc0: set_ios: clock 400000Hz busmode 2 powermode 2 Vdd 14 Bus Width 2
MMC/SD card has been selected
mmc0: starting CMD16 arg 00000200 flags 00000009
mmc0: starting CMD16 arg 00000200 flags 00000009
<6>mmcblk0: mmc0:2199 SD512 500224KiB
<6> mmcblk0: mmcblk0:mmc0: starting CMD18 arg 00000000 flags 00000009
mmc0: starting CMD13 arg 21990000 flags 00000009

and I have to clean the driver and also I am having problem with the card
insertion and removal with the IRQ handling
the kernel crashes whenever I remove the card or Insert the card.I am
digging the problem
As soon as I do that I will get back again

the kernel crash :
PC is at queue_delayed_work+0x64/0xd8
PC is at queue_delayed_work+0x64/0xd8
LR is at 0xc1c67fe0
LR is at 0xc1c67fe0
pc : [<c004ed88>]    lr : [<c1c67fe0>]    Not tainted
sp : c0359f10  ip : c1c67fd0  fp : c0359f24
pc : [<c004ed88>]    lr : [<c1c67fe0>]    Not tainted
sp : c0359f10  ip : c1c67fd0  fp : c0359f24
r10: 00000000  r9 : 00000000  r8 : c033fda0
r10: 00000000  r9 : 00000000  r8 : c033fda0
r7 : c019d5b4  r6 : c0358000  r5 : 00000014  r4 : c0336960
r7 : c019d5b4  r6 : c0358000  r5 : 00000014  r4 : c0336960
r3 : c1c67fd4  r2 : 00000000  r1 : 00000000  r0 : c0336960
r3 : c1c67fd4  r2 : 00000000  r1 : 00000000  r0 : c0336960
Flags: nzcvFlags: nzcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: C5387F
Control: C5387F
Table: 8186C000  DAC: 00000017
Table: 8186C000  DAC: 00000017
Process events/0 (pid: 4, stack limit = 0xc0358248)
Process events/0 (pid: 4, stack limit = 0xc0358248)
Stack: (0xc0359f10 to 0xc035a000)
Stack: (0xc0359f10 to 0xc035a000)

It might be because of the different work scheduling in the new kernel
thanks
-sree

^ permalink raw reply	[flat|nested] 8+ messages in thread
* OMAP2430sdp MMC driver for 2.6.21
@ 2007-07-23 10:32 石洋
  2007-07-23 22:04 ` Syed Mohammed, Khasim
  0 siblings, 1 reply; 8+ messages in thread
From: 石洋 @ 2007-07-23 10:32 UTC (permalink / raw)
  To: linux-omap-open-source

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:

i2c_omap i2c_omap.2: bus 2 rev3.7 at 100 kHz
i2c_omap i2c_omap.1: bus 1 rev3.7 at 100 kHz
TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter[1][1]
TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter[1][1]
TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter[1][1]
TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter[1][1]
TWL4030 Power Companion Active
TWL4030: Driver registration complete.

TWL4030 GPIO Demux: IRQ Range 329 to 338, Initialization Success

 56:          0        INTC  i2c_omap
 57:        130        INTC  i2c_omap

So I ported MMC driver from 2.6.14.7. New driver can initialize host coltroller successfully. It seems power supply, clocks and interrupt work well. Following is MMC log message:

Registering OMAP device 'omap2430-mmc12'. Parent at L3

mmc0: set_ios: clock 0Hz busmode 1 powermode 0 Vdd 0 Bus Width 0

Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC).
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: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 15 Bus Width 0
ALSA device list:

OMAP GPIO switch handler initializing
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 14 Bus Width 0
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 14 Bus Width 0
mmc0: set_ios: clock 400000Hz busmode 1 powermode 2 Vdd 14 Bus Width 0

 72:         74        INTC  serial
 83:        114        INTC  omap2430-mmc1
309:       2302        GPIO  eth0

There is a SD card in slot 1 on my board. But drvier can't detect this card. I printed SYSCTL, CAPA, CUR_CAPA and HCTL registers' values(SYSCTL is e0007. CAPA is 6e10080. CUR_CAPA is 0. HCTL is d00.), they are same as 2.6.14.7. And I enabled debug message for MMC driver. I found driver can send CMD1 command, but CMD1's reponse value always is 0x00ff8000. But according manual, the right reponse value should be 0x80ff8000. So CMD2 is always timeout. Following is the debug message:

...
mmc0: CMD1, argument 0x00300000

, 32-bit response,

Status in IRQ 1

mmc0: Response 00ff8000

mmc0: End request, err 0

mmc0: CMD1, argument 0x00300000

, 32-bit response,

Status in IRQ 1

mmc0: Response 00ff8000

mmc0: End request, err 0

mmc0: CMD2, argument 0x00000000

, 128-bit response, CRC

Status in IRQ 18000

mmc0: Response 00000000 00000000 00000000 00ff8000

mmc0: End request, err 1

mmc0: CMD2, argument 0x00000000

, 128-bit response, CRC

Status in IRQ 18000

mmc0: Response 00000000 00000000 00000000 00ff8000

mmc0: End request, err 1

mmc0: CMD2, argument 0x00000000

, 128-bit response, CRC

Status in IRQ 18000

mmc0: Response 00000000 00000000 00000000 00ff8000

mmc0: End request, err 1

mmc0: CMD2, argument 0x00000000
,  128-bit response, CRC

Status in IRQ 18000

mmc0: Response 00000000 00000000 00000000 00ff8000

mmc0: End request, err 1

mmc0: set_ios: clock 400000Hz busmode 2 powermode 2 Vdd 14 Bus Width 0

mmc0: set_ios: clock 0Hz busmode 1 powermode 0 Vdd 0 Bus Width 0


I suspected the root cause is not in MMC driver, maybe I forgot something else. So could anyone please give me some hints? Thanks.

Best Regards,
Yang Shi

  


《大 话 西 游 3》 首 届 玩 家 见 面 会 即 将 在 广 州 召 开!敬 请 关 注 >> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-26  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25 17:13 OMAP2430sdp MMC driver for 2.6.21 石洋
2007-07-25 17:17 ` sree
2007-07-25 19:22   ` andrzej zaborowski
2007-07-26  9:28     ` andrzej zaborowski
  -- strict thread matches above, loose matches on Subject: below --
2007-07-24  2:01 sree
2007-07-24  4:11 ` Syed Mohammed, Khasim
2007-07-23 10:32 石洋
2007-07-23 22:04 ` Syed Mohammed, Khasim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.