[PATCH v3 2/5] m68k: Fix writew(), writel(), readw(), readl() endianness for classic m68k
Simon Glass
sjg at chromium.org
Sat Apr 11 18:28:36 CEST 2026
On 2026-04-08T22:09:23, Daniel Palmer <daniel at thingy.jp> wrote:
> m68k: Fix writew(), writel(), readw(), readl() endianness for classic m68k
>
> In Linux these are meant to read a little-endian value and swap
> to the CPU endian.
>
> In u-boot for m68k this is currently broken and prevents
> virtio-mmio from functioning.
>
> This change is only for classic m68k. Coldfire has read big-endian,
> no swap for these in u-boot and Linux and existing drivers probably
> depend on this.
>
> Signed-off-by: Daniel Palmer <daniel at thingy.jp>
>
> arch/m68k/include/asm/io.h | 31 ++++++++++++++++++++-----------
> 1 file changed, 20 insertions(+), 11 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list