Friday, April 27, 2007

SD/MMC support for IBM/Lenovo with Ricoh hw

About a week ago i came across this post:

http://lists.freebsd.org/pipermail/freebsd-mobile/2007-April/009666.html

This evning i decided to give it a try.

For a starter, my laptop is a Lenovo 3000 N100 (<LENOVO TP-61> according to acpi).

#pciconf -lv

[SNIP]

none2@pci5:6:1: class=0x080500 card=0x207717aa chip=0x08221180 rev=0x19 hdr=0x00
vendor     = 'Ricoh Company, Ltd.'
device     = 'SD Bus Host Adapter'
class      = base peripheral
none3@pci5:6:2: class=0x088000 card=0x207817aa chip=0x08431180 rev=0x01 hdr=0x00
vendor     = 'Ricoh Company, Ltd.'
device     = 'unknown Ricoh MMC Host Controller'
class      = base peripheral
none4@pci5:6:3: class=0x088000 card=0x207917aa chip=0x05921180 rev=0x0a hdr=0x00
vendor     = 'Ricoh Company, Ltd.'
device     = 'unknown Ricoh Memory Stick Host Controller'
class      = base peripheral
none5@pci5:6:4: class=0x088000 card=0x207a17aa chip=0x08521180 rev=0x05 hdr=0x00
vendor     = 'Ricoh Company, Ltd.'
device     = 'unknown Ricoh xD-Picture Card Host Controller'
class      = base peripheral
This are some of the hard facts.

Getting src/sys patched up was somewhat easy. There is one small problem though.

The function ' bus_setup_intr()' has lately changed the number of arguments.

after looking at some other drivers i decided to try and just add NULL,.

It compiled then, even loaded as a module.

sdh0: <SD Host Controller> mem 0xb0300400-0xb03004ff irq 23 at device 6.1 on pci5

sdh0: Found 1 slots

sdh0: [ITHREAD]

Everything looks fine.. atleast till i decide to hotplug a sd card .. whoops reboot no panic.

Debugging will continue later..

No comments:

Post a Comment