[PATCH] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1
Mark Brown
broonie at kernel.org
Fri Mar 6 22:44:13 AEDT 2015
On Wed, Mar 04, 2015 at 09:00:39AM +0100, leroy christophe wrote:
> Le 03/03/2015 19:44, Mark Brown a écrit :
> >Why are we using of_iomap() rather than a generic I/O mapping function
> >here?
> because all drivers for powerpc seems to be using of_iomap(), as on powerpc
> the HW is described by the bootloader in a OF device tree.
> Today, of_iomap() is at least used in FSL SPI, FSL UART, SPI mpc52xx, UART
> mpc52xx, i2c-mpc, i2c-cpm, freescale ethernet drivers, etc ....
> Is it not correct ?
It's legacy, all that code is really old. Modern code is written in as
architecture and firmware neutral a fashion as possible to make things
more consistent and maintainable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150306/17e12107/attachment.sig>
More information about the Linuxppc-dev
mailing list