{"id":2175706,"url":"http://patchwork.ozlabs.org/api/1.0/covers/2175706/?format=json","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.0/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20251218185252.957388-1-visitorckw@gmail.com>","date":"2025-12-18T18:52:49","name":"[0/3] m68k: Add support for QEMU virt machine","submitter":{"id":87364,"url":"http://patchwork.ozlabs.org/api/1.0/people/87364/?format=json","name":"Kuan-Wei Chiu","email":"visitorckw@gmail.com"},"series":[{"id":485900,"url":"http://patchwork.ozlabs.org/api/1.0/series/485900/?format=json","date":"2025-12-18T18:52:49","name":"m68k: Add support for QEMU virt machine","version":1,"mbox":"http://patchwork.ozlabs.org/series/485900/mbox/"}],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=at53onjL;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"at53onjL\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com","phobos.denx.de;\n spf=pass smtp.mailfrom=visitorckw@gmail.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dXKrL2mmnz1xty\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 19 Dec 2025 06:05:54 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1456F80325;\n\tThu, 18 Dec 2025 20:05:52 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id C5CA4800AB; Thu, 18 Dec 2025 19:53:19 +0100 (CET)","from mail-pg1-x533.google.com (mail-pg1-x533.google.com\n [IPv6:2607:f8b0:4864:20::533])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8714F8003E\n for <u-boot@lists.denx.de>; Thu, 18 Dec 2025 19:53:12 +0100 (CET)","by mail-pg1-x533.google.com with SMTP id\n 41be03b00d2f7-bcfd82f55ebso842875a12.1\n for <u-boot@lists.denx.de>; Thu, 18 Dec 2025 10:53:12 -0800 (PST)","from visitorckw-work01.c.googlers.com.com\n (25.118.81.34.bc.googleusercontent.com. [34.81.118.25])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-34e70d65653sm3136275a91.5.2025.12.18.10.53.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 18 Dec 2025 10:53:09 -0800 (PST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1766083991; x=1766688791; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=anjqbXS8zPBr6KTW5Fqmzr73+F6fgsXcViqDLfxHOY0=;\n b=at53onjLQW09H0U3cbYOPeNBd4F/1096fMJcvmQJvtFJCnMLPJ7d1UgvT40l/dKiO7\n JlvCXLRBBw9eOohrzC/15KlX1YPn8K2HqpJ8+K3kJiyeaxj346d6HkD/N8fwAgCU86Mu\n fLN6v8+jL687nZUS8rTUHVSCy3gUUUqlMgVF2FPxolVqZY0ZVP/dG6oN1TbFKzHCTA/a\n eaOG6QagUex5lQk2orCtJRwAzV4IraLMRnSxu19NUpPi+XEDmTcdGZIjlgc3d9t+0DkL\n oPJiJeR6TrRigo0mlDjlfkE7fZS0ku8e16hQAcryAfYob7fNQuuUw2jBd0ehaP7g0q0v\n YBpA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1766083991; x=1766688791;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=anjqbXS8zPBr6KTW5Fqmzr73+F6fgsXcViqDLfxHOY0=;\n b=J3i0hmQ+AIk6Gdi+Mx8vyikLf4KDuUkDOPPpXQjF/kbIYvjO6wXqC5h06ysqoohlwC\n UywUO0nRHUXfmfGNLKrd//o4KT5LqeKck6dtmcGHSImYWUL6MLxxC1EFijdpQOFCwAun\n wl/1HQeG2acCCM2wyrQNsJ/O8CqwIuyC6LHrsyHW2M4byEh9mbc6KjAdlOdJWupyk9FP\n IcQi99ZekKzhwwmDz/1hpSyHkQAv7ByYWrEJuiS32NxojYCb0DiP5VstxdzJIK2s+4Mw\n 3aPMw9B+jOPs4g0RFWQOxAfR4kIaVIudYrvsF/t5haHcvPYNHBH9hp0yjzIlUUS8zfRT\n Tkrw==","X-Forwarded-Encrypted":"i=1;\n AJvYcCUFTW6Qqc+Nb6PkUhfE//zXWmur1Qir8DrAkN0Wv34VVCKHHaI2+2SXGteydEaQZnhux90Ywe8=@lists.denx.de","X-Gm-Message-State":"AOJu0YwPLc79M5Yx+0O6M85mVADR6h0eFO+v0QDBya5w2AbZoT3wiyg3\n ZdcV2hZ65QtJsBJJYdqOdndK7aez9nwwRn74QaF7dFu3QlIZpM6gC35s","X-Gm-Gg":"AY/fxX54Jn7JtjGtz2wYYDkwV1J8YJu/XFpmQ6IBEZHllUFuRkI6PDdjwuZggcIH0M/\n 7c+JHUrMMgDc4V2xvXAeTdggPtoejaKHCoBI0GdP6byHvyUTb13RP8Bbyz4PAMYfgUbBkztD7s1\n 9mTNLJANP0M+yj3aPWwj5mukNOid1Vf+08l0AlLPPrb2lXFjacsSBjkuY9CKcTVqWQ4tttYnEW7\n /0fYzzMiJuFRyviTAsqbTIZ8js8OSBzb6uro2/Rlt1uMxEfC5m/izYTgaUQYKX+O0rVY7OTAWOw\n IEbZEiQceOVFpmvDxOaNS4GGM7yoj7jURGumeyw8MHHFYqLBM9y6Qwm1MNyg+SvcqYftZ+c9IHg\n b2WOd/NUvz8xzasFsXU8PQWgqVEm05VDzJ6yLE6MNewWX5zV2SdDq1Ue6/2uxkQP3bMZ/2AHfvD\n stxDF7MHjTHaser0pau9coLrBNb5s7mKU8WtBTGpn7Mzeb+4yLeOy4Cy9tBOp2ZWUYug1LhtJph\n OCFCGdRk41f9otwfPqzzg==","X-Google-Smtp-Source":"\n AGHT+IFDd1dwci2+EYfsovgJ0DCogGa6ZvMmJYIqT7EW+cKeRdk+J5poYmrSRuZUah2H21GIUNQ+7g==","X-Received":"by 2002:a17:90b:4a43:b0:34c:2f01:2262 with SMTP id\n 98e67ed59e1d1-34e71d6961amr3205524a91.3.1766083990872;\n Thu, 18 Dec 2025 10:53:10 -0800 (PST)","From":"Kuan-Wei Chiu <visitorckw@gmail.com>","To":"alison.wang@nxp.com,\n\tangelo@kernel-space.org","Cc":"trini@konsulko.com, jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com,\n u-boot@lists.denx.de, Kuan-Wei Chiu <visitorckw@gmail.com>","Subject":"[PATCH 0/3] m68k: Add support for QEMU virt machine","Date":"Thu, 18 Dec 2025 18:52:49 +0000","Message-ID":"<20251218185252.957388-1-visitorckw@gmail.com>","X-Mailer":"git-send-email 2.52.0.322.g1dd061c0dc-goog","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Mailman-Approved-At":"Thu, 18 Dec 2025 20:05:51 +0100","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"Add support for the QEMU 'virt' machine on the m68k architecture. The\nQEMU virt machine models a generic system based on the Motorola 68040\nCPU and utilizes Goldfish virtual peripherals.\n\nCurrently, U-Boot's m68k architecture support focuses on ColdFire\nvariants. Expand this to include the classic M680x0 architecture,\nimplementing the necessary exception vectors, startup code, and a\nbootinfo parser compatible with the QEMU interface. A driver for the\nGoldfish TTY is also added to enable serial console output.\n\nThe implementation has been verified on QEMU targeting the M68040 CPU,\nconfirming successful hardware initialization and boot to the U-Boot\ncommand shell.\n\nKuan-Wei Chiu (3):\n  serial: Add Goldfish TTY driver\n  m68k: Add support for M68040 CPU\n  board: Add QEMU m68k virt board support\n\n MAINTAINERS                           |   6 ++\n arch/m68k/Kconfig                     |  23 ++++++\n arch/m68k/Makefile                    |   1 +\n arch/m68k/config.mk                   |  10 ++-\n arch/m68k/cpu/m68040/Makefile         |   6 ++\n arch/m68k/cpu/m68040/cpu.c            |  77 ++++++++++++++++++\n arch/m68k/cpu/m68040/start.S          |  83 +++++++++++++++++++\n arch/m68k/cpu/m68040/u-boot.lds       |  47 +++++++++++\n arch/m68k/include/asm/bootinfo.h      |  31 +++++++\n arch/m68k/lib/Makefile                |   9 +--\n board/emulation/qemu-m68k/Kconfig     |  12 +++\n board/emulation/qemu-m68k/MAINTAINERS |  10 +++\n board/emulation/qemu-m68k/Makefile    |   5 ++\n board/emulation/qemu-m68k/qemu-m68k.c |  84 +++++++++++++++++++\n configs/qemu-m68k_defconfig           |  17 ++++\n doc/board/emulation/qemu-m68k.rst     |  38 +++++++++\n drivers/serial/Kconfig                |   8 ++\n drivers/serial/Makefile               |   1 +\n drivers/serial/serial_goldfish.c      | 112 ++++++++++++++++++++++++++\n include/configs/qemu-m68k.h           |  18 +++++\n include/goldfish_tty.h                |  18 +++++\n 21 files changed, 608 insertions(+), 8 deletions(-)\n create mode 100644 arch/m68k/cpu/m68040/Makefile\n create mode 100644 arch/m68k/cpu/m68040/cpu.c\n create mode 100644 arch/m68k/cpu/m68040/start.S\n create mode 100644 arch/m68k/cpu/m68040/u-boot.lds\n create mode 100644 arch/m68k/include/asm/bootinfo.h\n create mode 100644 board/emulation/qemu-m68k/Kconfig\n create mode 100644 board/emulation/qemu-m68k/MAINTAINERS\n create mode 100644 board/emulation/qemu-m68k/Makefile\n create mode 100644 board/emulation/qemu-m68k/qemu-m68k.c\n create mode 100644 configs/qemu-m68k_defconfig\n create mode 100644 doc/board/emulation/qemu-m68k.rst\n create mode 100644 drivers/serial/serial_goldfish.c\n create mode 100644 include/configs/qemu-m68k.h\n create mode 100644 include/goldfish_tty.h"}