]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: use asm-generic/io.h for non-MMU io access functions
authorGreg Ungerer <gerg@linux-m68k.org>
Fri, 23 Mar 2018 13:39:10 +0000 (23:39 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:25 +0000 (09:45 +1000)
commiteee12614ef3f16c49809a118c5b387d71d31a0d6
treee3b17e9594e9dc808552d9a18106b169ddcd200b
parent0080e411ee56d3a48db241a4426f4b67bb3f6742
m68k: use asm-generic/io.h for non-MMU io access functions

There is nothing really special about the non-MMU m68k IO access functions.
So we can easily switch to using the asm-generic/io.h functions.

The only thing we do need to handle is that historically the m68k IO access
functions for readw/readl/writew/writel use native CPU endian ordering. So
for us on m68k/ColdFire that means they are big-endian. Leave the existing
set of _raw_read/__raw_write and read/write macros in place to deal with
them. (They are ripe for later cleanup, but that is for another patch).

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/include/asm/io_no.h