On 10/16/07, Stephen Neuendorffer <[EMAIL PROTECTED]> wrote: > > > + n) Xilinx EMAC and Xilinx TEMAC > > + > > + Xilinx Ethernet devices. Uses common properties from > > other Ethernet > > + devices with the following constraints: > > + > > + Required properties: > > + - compatible : Must include one of: "xilinx,plb-temac", > > + "xilinx,plb-emac", "xilinx-opb-emac" > > + - dma-mode : Must be one of "none", "simple", "sg" (sg > > == scatter gather) > > I think it's going to be a significant headache to remap things like the > dma-mode from the xilinx configurations to something else, and then > interpret them correctly in the drivers. > > Although it lacks a bit in style, perhaps, I'd greatly prefer having > something like: > > Ethernet_MAC { > xilinx,C_DMA_PRESENT = <1>; > ... > } > > (which happens to correspond to "none" above)
Ugh. Can't say I'm thrilled about this.... But in this case is might be a necessity. The IP core is already parameterized and the best way to describe the device is to use the existing parameter names. I want to be careful though. Parameters can change from one version of an IP core to another. The driver needs to be able to determine what version of the IP core is used so that the parameters make sense. I'm also nervous about adding every possible C_ value to the device node for each xilinx IP-core; that could make the device tree quite large. (on the other hand; maybe that doesn't matter... It is probably a bigger deal for microblaze than powerpc too.). Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [EMAIL PROTECTED] (403) 399-0195 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev