From mboxrd@z Thu Jan 1 00:00:00 1970 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 80001EB64D7 for ; Fri, 16 Jun 2023 15:21:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C458D8627A; Fri, 16 Jun 2023 17:21:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="E4PlYBOa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E40978471A; Fri, 16 Jun 2023 17:21:23 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CC6318624A for ; Fri, 16 Jun 2023 17:21:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=detlev.casanova@collabora.com Received: from arisu.mtl.collabora.ca (mtl.collabora.ca [66.171.169.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madras.collabora.co.uk (Postfix) with ESMTPSA id BD3626606F1A; Fri, 16 Jun 2023 16:21:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686928881; bh=vfodLMgPwVUE71SWJuzfyrw/PW8XUvUD3ij31b6uzFk=; h=From:To:Cc:Subject:Date:From; b=E4PlYBOayO8C73N5pnR0fcNPA2uytjARr5qpYKDWHaHmr/OwSjrTaKCg4QLb08emC RPdVDLWAz/HAESe5QY1ed5zjAHJY6TVedIIRTdG4Cw7WWl/saoIYrna3iBd26DZIZa YkC03wUY0tbqTb9Gh2VApT8bu2NDiOHVxQv5O6l6hltvvm7Sp1G9Vhx+iJ0n0to+MY 3K0tpYf0McVIY3jOYt/+LTiq68iu4i0X6/ZOaNKurjWiGr5CeCYNByue5Bq2Q7mMqP pUWhFKPbfYF0rNBhIVcGwHssbW35zumBtlP8pT+Cn6oXL6xcZwl+53eidfLOwRoRrB hUMTX+vA/ZCZQ== From: Detlev Casanova To: u-boot@lists.denx.de Cc: Marek Vasut , Hai Pham , Tam Nguyen , Detlev Casanova Subject: [PATCH v1 0/4] Introduce the sysinfo command Date: Fri, 16 Jun 2023 11:21:18 -0400 Message-Id: <20230616152122.588168-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The command can be used to show various information that can be used to identify the running system. Currently supported subcommands are: * model: A string representing the model * id: The id of the board * revision: The revision of this board id. I'm not sure about the last commit, if it needs to be here upstream or if it chould be something done by packagers. I'm also not sure if a test should be added and where to start to test this kind of command. Detlev Casanova (4): sysinfo: Add IDs for board id and revision cmd: Add a sysinfo command sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION configs: rcar3: Add shell function to select the linux devicetree cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/sysinfo.c | 124 +++++++++++++++++++++++++++++ configs/rcar3_ulcb_defconfig | 1 + drivers/sysinfo/rcar3.c | 46 ++++++++--- include/configs/rcar-gen3-common.h | 9 ++- include/sysinfo.h | 4 + 7 files changed, 180 insertions(+), 11 deletions(-) create mode 100644 cmd/sysinfo.c -- 2.39.3