[PATCH 5/6]: 82xx: Add the support of Wind River SBC PowerQUICCII 82xx
Mark Zhan
rongkai.zhan at windriver.com
Tue Jun 12 16:03:59 EST 2007
Hi Li Yang,
On Mon, 2007-06-11 at 21:51 +0800, Li Yang-r58472 wrote:
> Shouldn't these come from device tree too?
>
> Moreover, you can no longer use the hard coded IRQ numbers. They need
> to be mapped to virtual irq, and the driver needs to use the virtual irq
> number.
>
Actually this is a fake interrupt. Please see my code comment:
/*
* For SBCPQ2 board, the interrupt of M48T59 RTC chip
* will generate a machine check exception. We use a
* fake irq to give the platform machine_check_exception() hook
* a chance to call the driver ISR. If IRQ_HANDLED is returned,
* then we will survive from the machine check exception.
*/
> I don't believe the following are necessary. New MTD mapping should be
> defined in device tree.
>
Oh, here I just want to document the memory mapping for this board. I
think, even we already have devtree, it is a good idea that we always
document the H/W setting in platform header file, which will definitely
make life easier.
> > +/*
> > + * Wind River SBC PowerQUICCII 82xx Physical Memory Map (CS0 for
> > OnBoard Flash)
> > + *
......
>
> Use < &interrupt-controller > as interrupt-parent instead.
>
Got it.
> - Leo
Thanks
Mark Zhan
More information about the Linuxppc-dev
mailing list