On 11/19/07, Timur Tabi <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > > In the ALSA SOC model the i2s, codec and ac97 drivers are all generic. > > A fabric driver tells specifically how a generic codec is wired into > > the board. What I haven't been able figure out is how to load the > > right fabric driver. > > Do not use the device tree to load the fabric driver!
If I have a multiplatform kernel with 10 fabric drivers built in, how do you decide which one to activate without looking at the device tree? Multiplatform kernels are what is causing this problem. If the kernel is just for a single platform I can hardwire the fabric driver in without looking at the tree. > > The layout of the hardware and the relationship between the I2S, I2C, codec, > and whatever device is determined by *both* the fabric driver and the device > tree. The information about the devices itself, and *some* information about > their relationship is stored in the device tree. Everything else is in the > fabric driver. > > The design of the device tree is already locked in stone, so to speak. The DT > can only store what it is allowed to store. If there's something more that > you need, you'll have to put it in the fabric driver. > > If I weren't on vacation this week, I'd email you my code. It's almost done > and it demonstrates what I'm thinking. > > -- > Timur Tabi > Linux Kernel Developer @ Freescale > -- Jon Smirl [EMAIL PROTECTED] _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev