On 10:05 Mon 01 Aug , Sascha Hauer wrote: > On Mon, Aug 01, 2011 at 07:04:52AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > this will automaticaly register the device to armlinux_add_dram > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> > > --- > > diff --git a/include/driver.h b/include/driver.h > > index b011f98..0faafe3 100644 > > --- a/include/driver.h > > +++ b/include/driver.h > > @@ -214,6 +214,11 @@ static inline struct device_d *add_mem_device(const char *name, resource_size_t > > IORESOURCE_MEM | flags, NULL); > > } > > > > +#ifdef CONFIG_ARM > > +struct device_d *arm_add_mem_device(const char* name, resource_size_t start, > > + resource_size_t size); > > +#endif > > + > > No ifdefs around function declarations please. Also, this should > go somewhere under arch/arm/include. armlinux? > > BTW this conflicts with my mmu series I recently sent. Having this > arm_add_mem_device function is a good thing, but now one of us has > to do his series again :( > For the mmu to just work on all boards I need a place where I know > that all memory has been registered. For this I wanted to introduce > a memory_initcall (we could also reuse console_initcall, but I thought > having a dedicated initcall is cleaner). Then I could initialize the > mmu in a later initcall. I known but I wish we drop the mmu_init in the board at all and manage it in a generic part so no need to touch the board mem register Best Regards, J. _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox