My weird place

20070426

SD/MMC support for IBM/Lenovo with Ricoh hw

Filed under: FreeBSD — xride @ 22:12:21

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=0×080500 card=0×207717aa chip=0×08221180 rev=0×19 hdr=0×00
vendor     = ‘Ricoh Company, Ltd.’
device     = ‘SD Bus Host Adapter’
class      = base peripheral
none3@pci5:6:2: class=0×088000 card=0×207817aa chip=0×08431180 rev=0×01 hdr=0×00
vendor     = ‘Ricoh Company, Ltd.’
device     = ‘unknown Ricoh MMC Host Controller’
class      = base peripheral
none4@pci5:6:3: class=0×088000 card=0×207917aa chip=0×05921180 rev=0×0a hdr=0×00
vendor     = ‘Ricoh Company, Ltd.’
device     = ‘unknown Ricoh Memory Stick Host Controller’
class      = base peripheral
none5@pci5:6:4: class=0×088000 card=0×207a17aa chip=0×08521180 rev=0×05 hdr=0×00
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 »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress