[PATCH 2/2] powerpc/85xx: p1022ds: enable monitor switching via pixis indirect mode

Scott Wood scottwood at freescale.com
Fri Nov 18 09:25:15 EST 2011


On Thu, Nov 17, 2011 at 04:12:02PM -0600, Timur Tabi wrote:
> Scott Wood wrote:
> 
> >> This has the side-effect of no longer requiring U-Boot to enable the DIU.
> >> Now Linux can enable the DIU all by itself.
> > 
> > Under what circumstances does Linux do this?  
> 
> p1022ds_set_monitor_port() is called by the DIU driver when it enables
> the DIU.  This happens on boot, for example, if you enable the
> framebuffer console.
> 
> > How does Linux prevent the
> > NOR flash driver from binding to the device when this mode has been or
> > will be used?
> 
> It doesn't.  This isn't a simple problem to solve.  On the P1022, NOR
> flash and the DIU are incompatible, and yet that's exactly what we ship
> on the P1022DS board.  We could just remove the NOR flash node from the
> DTS.

As we discussed earlier, you could have a kernel boot parameter that
indicates what mode you'd like the localbus to run in.  Then, platform
code could update the device tree before any drivers bind.

Or, have U-boot set up the desired mode before entering the kernel, and
provide an appropriate device tree.

Letting the kernel bind to localbus devices such as NOR flash, and then
taking the devices away without notice just because another device gets
initialized, is not the way to go.  We've already left "it just works"
territory, might as well make the user choose explicitly.

-Scott



More information about the Linuxppc-dev mailing list