Re: machine_is_dt() ?

2013-01-07 Thread Rob Herring
like to use the driver for those boards which are not yet converted to DT. In that situation, we have a kernel dedicate to kirkwood and the cpuidle driver is always relevant. Thus i need to code something like: (of_machine_is_compatible(marvell, kirkwood) || !machine_is_dt()) However

Re: machine_is_dt() ?

2013-01-07 Thread Linus Walleij
On Mon, Jan 7, 2013 at 3:59 PM, Rob Herring robherri...@gmail.com wrote: You could make the platform code create the platform device in the DT case as well. Not all platform devices have to come from a DT node and putting virtual devices in DT is wrong. For the ux500 cpufreq we do exactly

Re: machine_is_dt() ?

2013-01-07 Thread Shawn Guo
On Sun, Jan 06, 2013 at 02:18:05PM +0100, Andrew Lunn wrote: Hi Folks I'm moving the cpuidle code for Kirkwood into drivers/cpuidle. I'm following the way cpuidle-calxeda.c instantiates the driver, it uses module_init(calxeda_cpuidle_init) and calxeda_cpuidle_init() uses

machine_is_dt() ?

2013-01-06 Thread Andrew Lunn
. Thus i need to code something like: (of_machine_is_compatible(marvell, kirkwood) || !machine_is_dt()) However, there is no macro machine_is_dt(). Is there a way to tell if a machine has been booted using a machine number as opposed to DT? Thanks Andrew

Re: machine_is_dt() ?

2013-01-06 Thread Russell King - ARM Linux
dedicate to kirkwood and the cpuidle driver is always relevant. Thus i need to code something like: (of_machine_is_compatible(marvell, kirkwood) || !machine_is_dt()) However, there is no macro machine_is_dt(). Is there a way to tell if a machine has been booted using a machine number

Re: machine_is_dt() ?

2013-01-06 Thread Andrew Lunn
boards which are not yet converted to DT. In that situation, we have a kernel dedicate to kirkwood and the cpuidle driver is always relevant. Thus i need to code something like: (of_machine_is_compatible(marvell, kirkwood) || !machine_is_dt()) However, there is no macro