{"id":2221274,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2221274/?format=json","web_url":"http://patchwork.ozlabs.org/project/opensbi/patch/20260409045310.2045739-1-anup.patel@oss.qualcomm.com/","project":{"id":67,"url":"http://patchwork.ozlabs.org/api/1.2/projects/67/?format=json","name":"OpenSBI development","link_name":"opensbi","list_id":"opensbi.lists.infradead.org","list_email":"opensbi@lists.infradead.org","web_url":"https://github.com/riscv/opensbi","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":"https://github.com/riscv/opensbi/commit/{}"},"msgid":"<20260409045310.2045739-1-anup.patel@oss.qualcomm.com>","list_archive_url":null,"date":"2026-04-09T04:53:10","name":"platform: Remove kendryte/k210 platform","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"fdca8c1fe6c2734e32d329f01aed3433fe167b18","submitter":{"id":92322,"url":"http://patchwork.ozlabs.org/api/1.2/people/92322/?format=json","name":"Anup Patel","email":"anup.patel@oss.qualcomm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/opensbi/patch/20260409045310.2045739-1-anup.patel@oss.qualcomm.com/mbox/","series":[{"id":499233,"url":"http://patchwork.ozlabs.org/api/1.2/series/499233/?format=json","web_url":"http://patchwork.ozlabs.org/project/opensbi/list/?series=499233","date":"2026-04-09T04:53:10","name":"platform: Remove kendryte/k210 platform","version":1,"mbox":"http://patchwork.ozlabs.org/series/499233/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2221274/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2221274/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","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 secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DF+m+65w;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=l19ruIAT;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frndZ6FcWz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 14:53:48 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wAhOV-00000009hLV-1KXU;\n\tThu, 09 Apr 2026 04:53:31 +0000","from mx0b-0031df01.pphosted.com ([205.220.180.131])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wAhOS-00000009hLA-2Z6U\n\tfor opensbi@lists.infradead.org;\n\tThu, 09 Apr 2026 04:53:30 +0000","from pps.filterd (m0279870.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 638NbZ22674162;\n\tThu, 9 Apr 2026 04:53:24 GMT","from apblrppmta02.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ddtbmtddn-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 09 Apr 2026 04:53:23 +0000 (GMT)","from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1])\n\tby APBLRPPMTA02.qualcomm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 6394rKex004426;\n\tThu, 9 Apr 2026 04:53:20 GMT","from pps.reinject (localhost [127.0.0.1])\n\tby APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 4db4jfvw7e-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 09 Apr 2026 04:53:20 +0000 (GMT)","from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com\n [127.0.0.1])\n\tby pps.reinject (8.18.1.12/8.18.1.12) with ESMTP id 6394rKki004421;\n\tThu, 9 Apr 2026 04:53:20 GMT","from hu-devc-blr-u24-a.qualcomm.com (hu-anuppate-blr.qualcomm.com\n [10.131.36.165])\n\tby APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 6394rKj8004420\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tThu, 09 Apr 2026 04:53:20 +0000 (GMT)","by hu-devc-blr-u24-a.qualcomm.com (Postfix, from userid 486687)\n\tid D710D22120; Thu,  9 Apr 2026 10:23:19 +0530 (+0530)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=OQC6QYWwpUsB4u+gKQASBqxDkdFLXnJbTHNxTT/51qI=; b=DF+m+65wYweZs7\n\tYBxkwEImd+1qoVp4fyii0Jsry/r9PYFOkuar5V9zqYThbfXngM9sdzvEudHRgcz6RBS8jyJ6JApWY\n\tXRIisgt7u1HELhzwyDjpUbLWrICv2DhDZRdbYHmhAJHZ14krDl0Se6RNe2H5k55IK59VJ7zSzY8zk\n\tA4ZoRWa2aogU/Qa0A8ZWgMyijHVN+OMlcLmq8MEbqFmjS/AaZnIusXbJgxdAfb3b3aBP/i+qQnakF\n\tHnYf70tFA4IFlIXbOms7OrJKBTmLpRqEFwMtOAfYUOZZI/RLZR5ThLtrjNsSpkeFpnXHnMnm+LRYI\n\tV/O5K7TB/P2itGLjeIow==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:date:from:message-id:mime-version\n\t:subject:to; s=qcppdkim1; bh=J3fHEG1LYODC/4EQX2A4HyPRU6vsYetYUPX\n\tX8Z9GV6E=; b=l19ruIATLlVAp8Gu7j142goFda7+FIAV7i6WI0e4ereXeX4//bo\n\t9yjqL9TBzrvK5EoI0FOVs755pxxoG48rLxEGL17Z+aR/6SaL4eL8AN7Q/D27ZrtU\n\tT549bhbrcgBIgf00xkYdVEWS1gr3Sx1Jx30WuBww0VYKLDmsdhkgTfFVJvb2Q4Mr\n\tR3VuxwFmkooJfaSuvVSlsNb91SFcJ6tCDlqq70PMRmM8iAbjANZA0NOFgOxiaRmx\n\tac0P+K8d67vR2TKXOonh5dDePLXUkwQuEDHNvnXcXvhsRm8Yhl4Q/XlJp9LioPwc\n\tN5uhVGJ6UeEIXbMSuPgHOUm9qhMXNsWHLUw=="],"From":"Anup Patel <anup.patel@oss.qualcomm.com>","To":"Atish Patra <atish.patra@linux.dev>","Cc":"Andrew Jones <andrew.jones@oss.qualcomm.com>,\n        Samuel Holland <samuel.holland@sifive.com>,\n        Anup Patel <anup@brainfault.org>, opensbi@lists.infradead.org,\n        Anup Patel <anup.patel@oss.qualcomm.com>","Subject":"[PATCH] platform: Remove kendryte/k210 platform","Date":"Thu,  9 Apr 2026 10:23:10 +0530","Message-ID":"<20260409045310.2045739-1-anup.patel@oss.qualcomm.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","X-QCInternal":["smtphost","smtphost"],"X-Proofpoint-GUID":"cWszOYejDENpsS0wL8mTuxgRp8OyoZnO","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDA5MDA0MCBTYWx0ZWRfX7x8nwYl+OrVT\n AGcyeDiFT1gC9lalFzWhhqqCkUxgN3DZ4bUxU5yaDPZrL/L2TMDuDJb9JcuPKgtD3LrAgomIVk6\n bD6V6NUbjVZUvT4uTfRuZIFbBclq377yIi44DAlimQSkptQWL4A/MGTFzhq8Lp4jEyqgeBKqmfi\n tEKlVeNhL8kRtMg1BV9g2SkZo2i5a8mNHptMG1lxP3adUC+J0f50rhdqj6Daad81luYVG0H3ZHt\n KNjyfJ3vPt0m1AnDo++eF+iOK/uNsTKjK6ItE+WPCCYW+D2hPFmItnrxokfKiFJDKtekQ11UbAe\n W0heWM/BRb8gbLlYwUtpy3sNwyk3bH+b1BobinRPfqApi0Y15l79KaYUMQvngQ/gQJX/5IVcREF\n v3Ew2C5RSdrM7AnKs/SWjS29IaVrsoJLxxx0Lgjmh+z7w9uau5cqramHl4e5USLIzsVtFS3WjkR\n LyT4GgIJKFcix5h3qNg==","X-Authority-Analysis":"v=2.4 cv=YM2vDxGx c=1 sm=1 tr=0 ts=69d730c4 cx=c_pps\n a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22\n a=gowsoOTTUOVcmtlkKump:22 a=w20KmqIKAAAA:8 a=NEAV23lmAAAA:8 a=SsMK-6ewAAAA:8\n a=EUspDBNiAAAA:8 a=JF9118EUAAAA:8 a=maXEswlannYWNybPpPcA:9\n a=Qf4GdZp0wr9wS1Hk4A6d:22 a=49hUO6naoDravHwzbBTq:22 a=xVlTc564ipvMDusKsbsT:22","X-Proofpoint-ORIG-GUID":"cWszOYejDENpsS0wL8mTuxgRp8OyoZnO","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-09_01,2026-04-08_01,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 spamscore=0\n lowpriorityscore=0 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604090040","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260408_215328_790328_ECF7846A ","X-CRM114-Status":"GOOD (  20.49  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  The kendryte/k210 platform does not have MMU support in\n S-mode\n    hence only NOMMU kernel which runs in M-mode can be used on this platform.\n    As of now,\n there is no clear use-case of supporting OpenSBI for kendryte/k210\n    platform.\n Content analysis details:   (-2.7 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/, low\n                             trust\n                             [205.220.180.131 listed in list.dnswl.org]\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                        [205.220.180.131 listed in\n sa-trusted.bondedsender.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [205.220.180.131 listed in\n sa-accredit.habeas.com]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                           [205.220.180.131 listed in\n bl.score.senderscore.com]","X-BeenThere":"opensbi@lists.infradead.org","X-Mailman-Version":"2.1.34","Precedence":"list","List-Id":"<opensbi.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/opensbi/>","List-Post":"<mailto:opensbi@lists.infradead.org>","List-Help":"<mailto:opensbi-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"opensbi\" <opensbi-bounces@lists.infradead.org>","Errors-To":"opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"The kendryte/k210 platform does not have MMU support in S-mode hence\nonly NOMMU kernel which runs in M-mode can be used on this platform.\n\nAs of now, there is no clear use-case of supporting OpenSBI for\nkendryte/k210 platform.\n\nSigned-off-by: Anup Patel <anup.patel@oss.qualcomm.com>\n---\n README.md                                |   1 -\n docs/platform/platform.md                |   3 -\n platform/kendryte/k210/Kconfig           |  10 --\n platform/kendryte/k210/configs/defconfig |   0\n platform/kendryte/k210/k210.dts          |  70 ---------\n platform/kendryte/k210/objects.mk        |  25 ----\n platform/kendryte/k210/platform.c        | 176 -----------------------\n platform/kendryte/k210/platform.h        |  50 -------\n scripts/create-binary-archive.sh         |   1 -\n 9 files changed, 336 deletions(-)\n delete mode 100644 platform/kendryte/k210/Kconfig\n delete mode 100644 platform/kendryte/k210/configs/defconfig\n delete mode 100644 platform/kendryte/k210/k210.dts\n delete mode 100644 platform/kendryte/k210/objects.mk\n delete mode 100644 platform/kendryte/k210/platform.c\n delete mode 100644 platform/kendryte/k210/platform.h","diff":"diff --git a/README.md b/README.md\nindex fd40be0b..c19bfdde 100644\n--- a/README.md\n+++ b/README.md\n@@ -402,6 +402,5 @@ make I=<install_directory> install_docs\n [Firmware Documentation]: docs/firmware/fw.md\n [Domain Support]: docs/domain_support.md\n [Doxygen manual]: http://www.doxygen.nl/manual/index.html\n-[Kendryte standalone SDK]: https://github.com/kendryte/kendryte-standalone-sdk\n [third party notices]: ThirdPartyNotices.md\n [reproducible builds]: https://reproducible-builds.org\ndiff --git a/docs/platform/platform.md b/docs/platform/platform.md\nindex b77112ff..9e78dac2 100644\n--- a/docs/platform/platform.md\n+++ b/docs/platform/platform.md\n@@ -18,9 +18,6 @@ OpenSBI currently supports the following virtual and hardware platforms:\n   machine. More details on this platform can be found in the file\n   *[sifive_fu540.md]*.\n \n-* **Kendryte K210 SoC**: Platform support for the Kendryte K210 SoC used on\n-  boards such as the Kendryte KD233 or the Sipeed MAIX Dock.\n-\n * **Andes AE350 SoC**: Platform support for the Andes's SoC (AE350). More\n   details on this platform can be found in the file *[andes-ae350.md]*.\n \ndiff --git a/platform/kendryte/k210/Kconfig b/platform/kendryte/k210/Kconfig\ndeleted file mode 100644\nindex 5bf59731..00000000\n--- a/platform/kendryte/k210/Kconfig\n+++ /dev/null\n@@ -1,10 +0,0 @@\n-# SPDX-License-Identifier: BSD-2-Clause\n-\n-config PLATFORM_KENDRYTE_K210\n-\tbool\n-\tselect FDT\n-\tselect IPI_MSWI\n-\tselect IRQCHIP_PLIC\n-\tselect SERIAL_SIFIVE\n-\tselect TIMER_MTIMER\n-\tdefault y\ndiff --git a/platform/kendryte/k210/configs/defconfig b/platform/kendryte/k210/configs/defconfig\ndeleted file mode 100644\nindex e69de29b..00000000\ndiff --git a/platform/kendryte/k210/k210.dts b/platform/kendryte/k210/k210.dts\ndeleted file mode 100644\nindex bcd075bf..00000000\n--- a/platform/kendryte/k210/k210.dts\n+++ /dev/null\n@@ -1,70 +0,0 @@\n-/*\n- * SPDX-License-Identifier: BSD-2-Clause\n- *\n- * Copyright (c) 2019 Western Digital Corporation or its affiliates.\n- *\n- * Authors:\n- *   Damien Le Moal <damien.lemoal@wdc.com>\n- */\n-\n-/dts-v1/;\n-/ {\n-\t#address-cells = <2>;\n-\t#size-cells = <2>;\n-\tcompatible = \"kendryte,k210\";\n-\n-\tchosen {\n-                bootargs = \"console=hvc0 earlycon=sbi\";\n-\t};\n-\n-\tcpus {\n-\t\t#address-cells = <1>;\n-\t\t#size-cells = <0>;\n-\t\tcpu0: cpu@0 {\n-\t\t\tdevice_type = \"cpu\";\n-\t\t\tclock-frequency = <390000000>;\n-\t\t\ti-cache-size = <32768>;\n-\t\t\td-cache-size = <32768>;\n-\t\t\tmmu-type = \"none\";\n-\t\t\treg = <0>;\n-\t\t\triscv,isa = \"rv64imafdc\";\n-\t\t\tstatus = \"okay\";\n-\t\t\tcpu0_intc: interrupt-controller {\n-\t\t\t\t#interrupt-cells = <1>;\n-\t\t\t\tcompatible = \"riscv,cpu-intc\";\n-\t\t\t\tinterrupt-controller;\n-\t\t\t};\n-\t\t};\n-\t\tcpu1: cpu@1 {\n-\t\t\tdevice_type = \"cpu\";\n-\t\t\tclock-frequency = <390000000>;\n-\t\t\td-cache-size = <32768>;\n-\t\t\ti-cache-size = <32768>;\n-\t\t\tmmu-type = \"none\";\n-\t\t\treg = <1>;\n-\t\t\triscv,isa = \"rv64imafdc\";\n-\t\t\tstatus = \"okay\";\n-\t\t\tcpu1_intc: interrupt-controller {\n-\t\t\t\t#interrupt-cells = <1>;\n-\t\t\t\tcompatible = \"riscv,cpu-intc\";\n-\t\t\t\tinterrupt-controller;\n-\t\t\t};\n-\t\t};\n-\t};\n-\n-\tmemory@80000000 {\n-\t\t/* Bank 0: 4 MB, Bank 1: 2 MB, AI chip SRAM: 2MB */\n-\t\tdevice_type = \"memory\";\n-\t\treg = <0x00000000 0x80000000 0x00000000 0x00800000>;\n-\t};\n-\n-\tplic0: interrupt-controller@C000000 {\n-\t\t#interrupt-cells = <1>;\n-\t\tcompatible = \"riscv,plic0\";\n-\t\tinterrupt-controller;\n-\t\tinterrupts-extended =\n-\t\t\t<&cpu0_intc 11 &cpu0_intc 9\n-\t\t\t &cpu1_intc 11 &cpu1_intc 9>;\n-\t\treg = <0x0 0xc000000 0x0 0x4000000>;\n-\t};\n-};\ndiff --git a/platform/kendryte/k210/objects.mk b/platform/kendryte/k210/objects.mk\ndeleted file mode 100644\nindex efac3d2f..00000000\n--- a/platform/kendryte/k210/objects.mk\n+++ /dev/null\n@@ -1,25 +0,0 @@\n-#\n-# SPDX-License-Identifier: BSD-2-Clause\n-#\n-# Copyright (c) 2019 Western Digital Corporation or its affiliates.\n-#\n-# Authors:\n-#   Damien Le Moal <damien.lemoal@wdc.com>\n-#\n-\n-# Compiler flags\n-platform-cppflags-y =\n-platform-cflags-y =\n-platform-asflags-y =\n-platform-ldflags-y =\n-\n-# Objects to build\n-platform-objs-y += platform.o\n-\n-platform-objs-y += k210.o\n-platform-varprefix-k210.o = dt_k210\n-platform-padding-k210.o = 2048\n-\n-# Blobs to build\n-FW_PAYLOAD=y\n-FW_PAYLOAD_ALIGN=0x1000\ndiff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c\ndeleted file mode 100644\nindex 0b76104c..00000000\n--- a/platform/kendryte/k210/platform.c\n+++ /dev/null\n@@ -1,176 +0,0 @@\n-/*\n- * SPDX-License-Identifier: BSD-2-Clause\n- *\n- * Copyright (c) 2019 Western Digital Corporation or its affiliates.\n- *\n- * Authors:\n- *   Damien Le Moal <damien.lemoal@wdc.com>\n- */\n-\n-#include <sbi/riscv_asm.h>\n-#include <sbi/riscv_encoding.h>\n-#include <sbi/sbi_const.h>\n-#include <sbi/sbi_platform.h>\n-#include <sbi/sbi_system.h>\n-#include <sbi_utils/fdt/fdt_helper.h>\n-#include <sbi_utils/fdt/fdt_fixup.h>\n-#include <sbi_utils/ipi/aclint_mswi.h>\n-#include <sbi_utils/irqchip/plic.h>\n-#include <sbi_utils/serial/sifive-uart.h>\n-#include <sbi_utils/timer/aclint_mtimer.h>\n-#include \"platform.h\"\n-\n-extern const char dt_k210_start[];\n-\n-unsigned long fw_platform_init(unsigned long arg0, unsigned long arg1,\n-\t\t\t\tunsigned long arg2, unsigned long arg3,\n-\t\t\t\tunsigned long arg4)\n-{\n-\treturn (unsigned long)&dt_k210_start[0];\n-}\n-\n-static struct plic_data plic = {\n-\t.unique_id = 0,\n-\t.addr = K210_PLIC_BASE_ADDR,\n-\t.size = K210_PLIC_BASE_SIZE,\n-\t.num_src = K210_PLIC_NUM_SOURCES,\n-\t.context_map = {\n-\t\t[0] = { 0, 1 },\n-\t\t[1] = { 2, 3 },\n-\t},\n-};\n-\n-static struct aclint_mswi_data mswi = {\n-\t.addr = K210_ACLINT_MSWI_ADDR,\n-\t.size = ACLINT_MSWI_SIZE,\n-\t.first_hartid = 0,\n-\t.hart_count = K210_HART_COUNT,\n-};\n-\n-static struct aclint_mtimer_data mtimer = {\n-\t.mtime_freq = K210_ACLINT_MTIMER_FREQ,\n-\t.mtime_addr = K210_ACLINT_MTIMER_ADDR +\n-\t\t      ACLINT_DEFAULT_MTIME_OFFSET,\n-\t.mtime_size = ACLINT_DEFAULT_MTIME_SIZE,\n-\t.mtimecmp_addr = K210_ACLINT_MTIMER_ADDR +\n-\t\t\t ACLINT_DEFAULT_MTIMECMP_OFFSET,\n-\t.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,\n-\t.first_hartid = 0,\n-\t.hart_count = K210_HART_COUNT,\n-\t.has_64bit_mmio = true,\n-};\n-\n-static u32 k210_get_clk_freq(void)\n-{\n-\tu32 clksel0, pll0;\n-\tu64 pll0_freq, clkr0, clkf0, clkod0, div;\n-\n-\t/*\n-\t * If the clock selector is not set, use the base frequency.\n-\t * Otherwise, use PLL0 frequency with a frequency divisor.\n-\t */\n-\tclksel0 = k210_read_sysreg(K210_CLKSEL0);\n-\tif (!(clksel0 & 0x1))\n-\t\treturn K210_CLK0_FREQ;\n-\n-\t/*\n-\t * Get PLL0 frequency:\n-\t * freq = base frequency * clkf0 / (clkr0 * clkod0)\n-\t */\n-\tpll0 = k210_read_sysreg(K210_PLL0);\n-\tclkr0 = 1 + (pll0 & 0x0000000f);\n-\tclkf0 = 1 + ((pll0 & 0x000003f0) >> 4);\n-\tclkod0 = 1 + ((pll0 & 0x00003c00) >> 10);\n-\tpll0_freq = clkf0 * K210_CLK0_FREQ / (clkr0 * clkod0);\n-\n-\t/* Get the frequency divisor from the clock selector */\n-\tdiv = 2ULL << ((clksel0 & 0x00000006) >> 1);\n-\n-\treturn pll0_freq / div;\n-}\n-\n-static int k210_system_reset_check(u32 type, u32 reason)\n-{\n-\treturn 1;\n-}\n-\n-static void k210_system_reset(u32 type, u32 reason)\n-{\n-\tu32 val;\n-\n-\tval = k210_read_sysreg(K210_RESET);\n-\tval |= K210_RESET_MASK;\n-\tk210_write_sysreg(val, K210_RESET);\n-\n-\twhile (1);\n-}\n-\n-static struct sbi_system_reset_device k210_reset = {\n-\t.name = \"kendryte_k210_reset\",\n-\t.system_reset_check = k210_system_reset_check,\n-\t.system_reset = k210_system_reset\n-};\n-\n-static int k210_early_init(bool cold_boot)\n-{\n-\tint rc;\n-\n-\tif (!cold_boot)\n-\t\treturn 0;\n-\n-\tsbi_system_reset_add_device(&k210_reset);\n-\n-\trc = sifive_uart_init(K210_UART_BASE_ADDR, k210_get_clk_freq(),\n-\t\t\t      K210_UART_BAUDRATE);\n-\tif (rc)\n-\t\treturn rc;\n-\n-\treturn aclint_mswi_cold_init(&mswi);\n-}\n-\n-static int k210_final_init(bool cold_boot)\n-{\n-\tvoid *fdt;\n-\n-\tif (!cold_boot)\n-\t\treturn 0;\n-\n-\tfdt = fdt_get_address_rw();\n-\n-\tfdt_cpu_fixup(fdt);\n-\tfdt_fixups(fdt);\n-\n-\treturn 0;\n-}\n-\n-static int k210_irqchip_init(void)\n-{\n-\treturn plic_cold_irqchip_init(&plic);\n-}\n-\n-static int k210_timer_init(void)\n-{\n-\treturn aclint_mtimer_cold_init(&mtimer, NULL);\n-}\n-\n-const struct sbi_platform_operations platform_ops = {\n-\t.early_init\t= k210_early_init,\n-\n-\t.final_init\t= k210_final_init,\n-\n-\t.irqchip_init = k210_irqchip_init,\n-\n-\t.timer_init\t   = k210_timer_init,\n-};\n-\n-const struct sbi_platform platform = {\n-\t.opensbi_version\t= OPENSBI_VERSION,\n-\t.platform_version   \t= SBI_PLATFORM_VERSION(0x0, 0x01),\n-\t.name\t\t\t= \"Kendryte K210\",\n-\t.features\t\t= 0,\n-\t.hart_count\t\t= K210_HART_COUNT,\n-\t.hart_stack_size\t= SBI_PLATFORM_DEFAULT_HART_STACK_SIZE,\n-\t.heap_size\t\t=\n-\t\t\tSBI_PLATFORM_DEFAULT_HEAP_SIZE(K210_HART_COUNT),\n-\t.platform_ops_addr\t= (unsigned long)&platform_ops\n-};\ndiff --git a/platform/kendryte/k210/platform.h b/platform/kendryte/k210/platform.h\ndeleted file mode 100644\nindex 9417403d..00000000\n--- a/platform/kendryte/k210/platform.h\n+++ /dev/null\n@@ -1,50 +0,0 @@\n-/*\n- * SPDX-License-Identifier: BSD-2-Clause\n- *\n- * Copyright (c) 2019 Western Digital Corporation or its affiliates.\n- *\n- * Authors:\n- *   Damien Le Moal <damien.lemoal@wdc.com>\n- */\n-#ifndef _K210_PLATFORM_H_\n-#define _K210_PLATFORM_H_\n-\n-#include <sbi/riscv_io.h>\n-\n-#define K210_HART_COUNT\t\t2\n-\n-#define K210_UART_BAUDRATE\t115200\n-#define K210_ACLINT_MTIMER_FREQ\t7800000\n-#define K210_CLK0_FREQ\t\t26000000UL\n-#define K210_PLIC_NUM_SOURCES\t65\n-\n-/* Registers base address */\n-#define K210_SYSCTL_BASE_ADDR\t0x50440000ULL\n-#define K210_UART_BASE_ADDR\t0x38000000ULL\n-#define K210_CLINT_BASE_ADDR\t0x02000000ULL\n-#define K210_ACLINT_MSWI_ADDR\t\\\n-\t\t(K210_CLINT_BASE_ADDR + CLINT_MSWI_OFFSET)\n-#define K210_ACLINT_MTIMER_ADDR \\\n-\t\t(K210_CLINT_BASE_ADDR + CLINT_MTIMER_OFFSET)\n-#define K210_PLIC_BASE_ADDR\t0x0C000000ULL\n-#define K210_PLIC_BASE_SIZE\t(0x200000ULL + (K210_HART_COUNT * 0x1000))\n-\n-/* Registers */\n-#define K210_PLL0\t\t0x08\n-#define K210_CLKSEL0\t\t0x20\n-#define K210_RESET\t\t0x30\n-\n-/* Register bit masks */\n-#define K210_RESET_MASK\t\t0x01\n-\n-static inline u32 k210_read_sysreg(u32 reg)\n-{\n-\treturn readl((volatile void *)(K210_SYSCTL_BASE_ADDR + reg));\n-}\n-\n-static inline void k210_write_sysreg(u32 val, u32 reg)\n-{\n-\twritel(val, (volatile void *)(K210_SYSCTL_BASE_ADDR + reg));\n-}\n-\n-#endif /* _K210_PLATFORM_H_ */\ndiff --git a/scripts/create-binary-archive.sh b/scripts/create-binary-archive.sh\nindex 6ea4c9c5..7f211788 100755\n--- a/scripts/create-binary-archive.sh\n+++ b/scripts/create-binary-archive.sh\n@@ -100,7 +100,6 @@ build_opensbi() {\n \t64)\n \t\t# Setup 64-bit platform list\n \t\tBUILD_PLATFORM_SUBDIR+=(\"nuclei/ux600\")\n-\t\tBUILD_PLATFORM_SUBDIR+=(\"kendryte/k210\")\n \t\tBUILD_PLATFORM_SUBDIR+=(\"generic\")\n \t\t;;\n \t*)\n","prefixes":[]}