]> git.ipfire.org Git - thirdparty/u-boot.git/commit
m68k: Add support for M68040 CPU
authorKuan-Wei Chiu <visitorckw@gmail.com>
Wed, 7 Jan 2026 20:18:34 +0000 (20:18 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 2 Feb 2026 20:24:41 +0000 (14:24 -0600)
commitc69b6aeaa35550d386c142302b852d6b72aea76f
treefde23e780873676f10bcda7a38946a4c61f66434
parent0429298a1a76b971c0b0156918f927d6329e53bc
m68k: Add support for M68040 CPU

Add support for the Motorola 68040 architecture. Currently, m68k
support in U-Boot is primarily focused on ColdFire variants. Introduce
the necessary infrastructure to support the classic M680x0 series,
specifically targeting the M68040 as emulated by QEMU.

The implementation includes exception vectors, early startup code, and
minimal CPU initialization and relocation stubs. It also defines the
standard m68k boot information structure used for passing hardware
information to the operating system. To ensure compatibility, ColdFire-
specific library objects such as cache and interrupt handling are
excluded from the build when M68040 is selected.

Additionally, apply a specific workaround during the early memory
reservation stage. Use a manual loop to clear global data instead of
the standard memset() function, as utilizing memset() at this point was
observed to cause a hang on the QEMU platform.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Acked-by: Angelo Dureghello <angelo@kernel-space.org>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
MAINTAINERS
arch/m68k/Kconfig
arch/m68k/Makefile
arch/m68k/config.mk
arch/m68k/cpu/m680x0/Makefile [new file with mode: 0644]
arch/m68k/cpu/m680x0/cpu.c [new file with mode: 0644]
arch/m68k/cpu/m680x0/start.S [new file with mode: 0644]
arch/m68k/cpu/m680x0/u-boot.lds [new file with mode: 0644]
arch/m68k/include/asm/bootinfo.h [new file with mode: 0644]
arch/m68k/lib/Makefile