[PATCH] ARM: CSR: call l2x0_of_init to init L2 cache of SiRFprimaII

Arnd Bergmann arnd at arndb.de
Tue Sep 13 12:35:13 EDT 2011


On Tuesday 13 September 2011, Rob Herring wrote:
> I have it in init_irq as I need the outer flush to work for SMP init.
> init_machine may be okay as well, but as early as possible is probably
> best. It depends if you are turning on the L2 or it is already on when
> you boot.
> 
> You could also just check your machine compatible string in this
> function, but calling it from a machine specific function is a cleaner
> solution.

I would suggest checking the specific "compatible" string of the l2x0
device node, and making sure that you have something specific to
prima2 in it.

That would easily let us combine this function with the respective
l2x0 init code for other dt based platforms later, by checking
multiple compatible values.

	Arnd



More information about the linux-arm-kernel mailing list