[PATCH v7 05/15] ARM: mxs: Add low-level debug UART support
Wolfram Sang
w.sang at pengutronix.de
Mon Dec 20 09:35:26 EST 2010
Hi Shawn,
> > > I'm afraid not. How do you expect the detection is done, by reading
> > > some register like we are doing in system.c?
> >
> > I am not sure which register you mean in system.c?
> >
> > > Which register specifically?
> >
> > The signature of the amba device (base + size - 0x20). You can check
> > drivers/amba/bus.c how it checks for the signature.
> >
> > > If the register gets different address between
> > > mx23 and mx28, we need to utilize the current mechanism to
> > > distinguish the address anyway.
> >
> > We could simply test both locations and see where it is present?
> >
> Is there any problem of simply using arch_id here? I do not see
> significant benefit of using the detection you suggest here
> over the current way.
Ah, sorry, I thought you meant auto-detection was not possible in
debug.S as well (and there it is worthwhile so mx23 and mx28 can be
built into one kernel). For uncompress.h, the gain is nothing major,
true. One would save to add custom boards there just to match the base
address, but well...
Kind regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101220/5a6e9cdb/attachment.sig>
More information about the linux-arm-kernel
mailing list