[PATCH 3/5] ARM: imx: add audio codec clk lookup for imx53-qsb
Sascha Hauer
s.hauer at pengutronix.de
Mon May 14 04:53:48 EDT 2012
On Mon, May 14, 2012 at 04:50:03PM +0800, Shawn Guo wrote:
> On Mon, May 14, 2012 at 10:22:01AM +0200, Sascha Hauer wrote:
> > > static void __init imx53_dt_init(void)
> > > {
> > > struct device_node *node;
> > > @@ -99,6 +115,9 @@ static void __init imx53_dt_init(void)
> > > of_node_put(node);
> > > }
> > >
> > > + if (of_machine_is_compatible("fsl,imx53-qsb"))
> > > + imx53_qsb_init();
> > > +
> >
> > I wonder if we really want to open this can of worms here. Adding board
> > specific hacks (or fixups) in this file can become very messy once we
> > have more than only a few oftree based boards.
> >
> From what I have seen, this is an acceptable solution to board specific
> setup. What's the alternative on your mind?
Right now I do not have an alternative, I just try to see 2 years in the
future. Maybe until then we can do it this way and then I'll point to
this post saying 'I told you' ;)
I hope we won't get to that point. The above should be really in the
devicetree, right?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the linux-arm-kernel
mailing list