Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75EF5C001DC for ; Thu, 27 Jul 2023 19:07:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7266868DA; Thu, 27 Jul 2023 21:06:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="epOVRf8r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11C6C868C7; Thu, 27 Jul 2023 21:06:01 +0200 (CEST) Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 188C3868AF for ; Thu, 27 Jul 2023 21:05:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-7948c329363so545268241.0 for ; Thu, 27 Jul 2023 12:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690484739; x=1691089539; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FBKW9BFncLz2NmoY2vRCJNDuGESkwqGXOfEtJnaqDhM=; b=epOVRf8rS97O6AsdVZl9ZSd0Y9Lmjh7lXD3C0lfsAqpJWTZrShOTfVwI3iYtGRZmfz kEJ9KmxDdDCraY9q9b3zqTcD6ftHKmki7ysokpljzB5RgYN6ofle0HT+tSds/1TAxlom tGLXxVezyOeRJB9Bo6p9aIsNmh4PnLhFI6gyY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690484739; x=1691089539; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FBKW9BFncLz2NmoY2vRCJNDuGESkwqGXOfEtJnaqDhM=; b=ieb8gf9f4SepXLEne8rZkWQsZTd5kDWslpJUagsLGBF+8fnz323OvlYG6jMV20DkPI E2GQ7dCQHOesQeujH9/o0BXJekGcImGP3cxZNNvvBWAi4F/a4yistB9WhB60eEvsoPAH OEPE7SmiWgeLEOBOoVAH5oIw2neDqB1xtHirjK/3v76mTXbLy/+JRrACxEal1TnjfPBd p+yY0MSYWtsVmL1vKiO6z7h7IctsF5sPho5DD3lNJC9ftlmgNYtDyOslbnbeWD9K9Y2j s1Y9fhA6gA2eKcWf8pVeanLwim52qfxNPhS+JgiXos+k2I7Xos/j6xtKpjZgzD+t9MXb Vl1g== X-Gm-Message-State: ABy/qLbuyv5IswwMP1FSIhScbOKwNBq+tub3a1T2JqhoNElXP0said50 JZHZyxqeqzGbpGwmV8qvA0qX9g== X-Google-Smtp-Source: APBJJlE2oA64zjOFcRWSdFUCGABSIQylEQw+on8+aLKlsPW2r8lABXysgi0NIMqvAsC92+1+tdY66g== X-Received: by 2002:a67:db16:0:b0:443:6397:2505 with SMTP id z22-20020a67db16000000b0044363972505mr394521vsj.19.1690484739061; Thu, 27 Jul 2023 12:05:39 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-96a7-b348-5b90-69b9.res6.spectrum.com. [2603:6081:7b00:6400:96a7:b348:5b90:69b9]) by smtp.gmail.com with ESMTPSA id f25-20020ab01019000000b0079a482f4bb2sm295182uab.17.2023.07.27.12.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 12:05:38 -0700 (PDT) Date: Thu, 27 Jul 2023 15:05:36 -0400 From: Tom Rini To: Du Huanpeng Cc: u-boot@lists.denx.de, u74147@gmail.com Subject: Re: [PATCH v5 1/6] mips: initial build infrastructure for loongson SoCs Message-ID: <20230727190536.GM3630934@bill-the-cat> References: <20230726123027.1536-1-dhu@hodcarrier.org> <20230726123027.1536-2-dhu@hodcarrier.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9gfC05A+Je9QcZw7" Content-Disposition: inline In-Reply-To: <20230726123027.1536-2-dhu@hodcarrier.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --9gfC05A+Je9QcZw7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 26, 2023 at 08:30:22PM +0800, Du Huanpeng wrote: > Loongson 1C is a cost-effective SOC chip for industrial control and > the Internet of Things. The Loongson 1C includes a floating-point > processing unit, supports multiple types of memory, and supports > high-capacity MLC NAND Flash. Loongson 1C provides developers with a > wealth of peripheral interfaces and on-chip modules, including Camera > controller, USB OTG and USB HOST interfaces, AC97/I2S controller, LCD > controller, SPI interface, UART interface, etc., providing sufficient > computing power and multi-application connectivity. >=20 > Some highlights of this SoC are: > - Single core LS232, MIPS32 instruction set compatible, main frequency > 300MHZ > - 16KB data cache and 16KB instruction cache > - 64 bit float unit, hardware division > - 8/16 bit SDRAM controller, 45 ~ 133MHz > - 8/16 bit SRAM, NAND > - I2S/AC97, LCD, MAC, USB, OTG, SPI, I2C, PWM, CAN, SDIO, ADC > - 12 UARTs >=20 > See Techinical Reference Manual for details: > https://www.loongson.cn/ > https://github.com/hodcarrier/ls1c300_bsp >=20 > Signed-off-by: Du Huanpeng > --- > MAINTAINERS | 15 +++++ > arch/mips/Kconfig | 11 ++++ > arch/mips/Makefile | 1 + > arch/mips/dts/Makefile | 1 + > arch/mips/mach-lsmips/Kconfig | 76 ++++++++++++++++++++++++++ > arch/mips/mach-lsmips/Makefile | 6 ++ > arch/mips/mach-lsmips/ls1c300/Makefile | 7 +++ > configs/ls1c300_defconfig | 53 ++++++++++++++++++ > 8 files changed, 170 insertions(+) > create mode 100644 arch/mips/mach-lsmips/Kconfig > create mode 100644 arch/mips/mach-lsmips/Makefile > create mode 100644 arch/mips/mach-lsmips/ls1c300/Makefile > create mode 100644 configs/ls1c300_defconfig >=20 > diff --git a/MAINTAINERS b/MAINTAINERS > index 87991cccdd..91d6d714d8 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1116,6 +1116,21 @@ F: drivers/net/cortina_ni.c > F: drivers/net/cortina_ni.h > F: drivers/net/phy/ca_phy.c > =20 > +MIPS LOONGSON LS1C300 > +M: Du Huanpeng > +S: Maintained > +F: arch/mips/dts/loongson32-ls1c300b.dtsi > +F: arch/mips/dts/ls1c300-eval.dts > +F: arch/mips/mach-lsmips/ > +F: board/loongson/ls1c300-eval/ > +F: configs/ls1c300_defconfig > +F: drivers/clk/lsmips/ > +F: drivers/reset/reset-lsmips.c > +F: drivers/watchdog/lsmips_wdt.c > +F: include/configs/ls1c300.h > +F: include/dt-bindings/clock/ls1c300-clk.h > +F: include/dt-bindings/reset/ls1c300-reset.h The board specific parts should be in the board MAINTAINER file. > +++ b/arch/mips/mach-lsmips/Kconfig > @@ -0,0 +1,76 @@ > +menu "Loongson MIPS platforms" > + depends on ARCH_LSMIPS > + > +config SYS_MALLOC_F_LEN > + default 0x1000 > + > +config SYS_SOC > + default "ls1c300" if SOC_LS1C300 > + > +config SYS_DCACHE_SIZE > + default 16384 > + > +config SYS_DCACHE_LINE_SIZE > + default 32 > + > +config SYS_ICACHE_SIZE > + default 16384 > + > +config SYS_ICACHE_LINE_SIZE > + default 32 > + > +config TEXT_BASE > + default 0xbfc00000 if !SPL > + default 0x80200000 if SPL > + > +config SPL_TEXT_BASE > + default 0xbfc00000 > + > +config SPL_PAYLOAD > + default "u-boot-lzma.img" if SPL_LZMA > + > +config BUILD_TARGET > + default "u-boot-with-spl.bin" if SPL > + default "u-boot.bin" if !SPL As most of these are defined in common Kconfig files, the defaults for this arch should be there too. --=20 Tom --9gfC05A+Je9QcZw7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTCwAAACgkQFHw5/5Y0 tyzNDwv/RcBfHH6kWIMj6aUXrjMtte1zhkYig/9UW4ZSo06aS++JezP+1n78wrV4 5upaEITyQkbPgT+gd8WqwtLutmzLtlpFDl8a91HtOUi0t19k/52fJnYuCdrgKH0F YJ/EWGcIWqoOVZFW3FvQOAc+/l5ae3ZKkK34S0J3npBVBXjd4bY10qbQjpWlfmKB QXKxfo4cF4/1cLRA5484ecy2rowiNIJ/QuqiK5Y5ZJr/sCPk+FxCo96VwnYd1jcP 7zww0Os5iyhK1h5Wlymq664zYzzL9+5RLxdVPgEBB7NfQMJlU60JY2W/hmv3torp pCirBdM0b3y3hvXrANHXV4KnH+kv4NTMa6pZOy4a9EbGAKbzdSJ2QiWkZGVdTrXH TfbXExvyjJ9DGpE4M7tvTcv7R+eFTzDeIr6qr14qOJ0exc4apvcZHXv7MowYtTkR dzZDNfkuD3fJHaGnguwMlURKynVFDhk4MYtZV7rnMUR6wWfRKQ9jbGrBwLQgj47y JbbE3+6h =RCmN -----END PGP SIGNATURE----- --9gfC05A+Je9QcZw7--