On Thursday 05 March 2009, Kevin Hilman wrote:
> > +static int __init dm355_init_devices(void)
> > +{
> > + if (!cpu_is_davinci_dm355())
> > + return 0;
> > +
> > + davinci_cfg_reg(DM355_INT_EDMA_CC);
> > + platform_device_register(&dm355_edma_device);
> > + return 0;
> > +}
> > +postcore_initcall(dm355_init_devices);
Just worth noting ... at some point it might be nice if there
were more general hooks in the MACHINE_{START,END} mechanism
for additional points in the init sequence.
The init_machine bit happens at arch_initcall, but things
like this cpu_is_*() test should be able to kick in a bit
earlier than board-specific init. I didn't try too hard to
hijack any of the existing calls though.
- Dave
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source