Message ID | 20220804143106.64599-15-apatel@ventanamicro.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vBAqRSoK; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=b8pNBxF4; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LzB5z2FMQz9sGR for <incoming@patchwork.ozlabs.org>; Fri, 5 Aug 2022 00:32:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XC9rgUbsjadU5338lSxxaEieFMATrnvL7Qf25xaVp+k=; b=vBAqRSoKlYRTuO q32fNf/gjkU4u8RX1gYtZzBnZK617Nxz8efJWdIsecqRJBU3+dyn34htcf3BFOkWbjioEOPSAaCvs kQ769RAEnhY+PTBoSAcq/fyb4+Q9BtZvDmF5jjN8FJ1aVsIl98yu3yyg3aU4slOxJbPJ+omtLeCet n7IUJwHG6cM3Kl1cf2YviItyBSCRnautXDUUfSqfmG1aaGxVQWuUjcCmvuUvPhOahEW0ydZ9vyMG5 lYS1BXEI1+j2cXV8aAY9gnXXI0U+/Ok/1eGRoupY6SGyKVdOPNFkM7y8UgxZ0BDhFIOWsbOS8g4kd gE5CH7OgRuUGzFbOahEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJbtw-006kNV-EQ; Thu, 04 Aug 2022 14:32:40 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJbtt-006kJT-Gg for opensbi@lists.infradead.org; Thu, 04 Aug 2022 14:32:39 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-10dc1b16c12so24486068fac.6 for <opensbi@lists.infradead.org>; Thu, 04 Aug 2022 07:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=TPjPXLKgzSjZi7toeE7AHTAf4LZOXHTR8X2rdBUArWc=; b=b8pNBxF4KVsfGmr54VA9wxhMRFlZtamP9o9RvCpwHBq8HUhWN9368CacZL8LSJ+g5J rZBYAa0gysuXIU0Rl+6xXPhO7VTQibKNZD2fHhJHxKqlvPzPA+86bud54p2atvbHJOmc n0YztUTQtfVFJY6kFSylVIR9WVJCB7ytZkOziN2fVr9lgMB4wm6utMR6LhLVq9IZZmb4 ZiJyKbyUYb1wdOXhSyy8hhwyTWL0gdjnGBifABFejqu8WXMBzOuVBITeAIQcN+eWOpcG VxlOq8DgYiRZerl1KF8ZHk4jADnLa64PcxQnz0FqZ+j2DHBW0MQ/Jz4osPpTORj7+CgH T1KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=TPjPXLKgzSjZi7toeE7AHTAf4LZOXHTR8X2rdBUArWc=; b=eoM2fz1gWd3Np8LzUh7qzViRqFtXcpdkc9bhlgIZ3YoMIxCzBiH/DMBnAABZArfs0B SWqXCylklIdDpUYyGffSLMLRLfwxLFhM9UugxJJ7LjYsZjYpN9h0cN1QWtkm+N1vnBaT P754T1jL9S3BH7Sg4Jzi39UZY2679BsFlDLi9VIs5UHZZwPtTKkvvr6O0tPf4MYBMs0I ve8cnJJ8VkItiE/8bEhLbmlmrz+RVi5UZeP1AfhpJm7seVGfc2qzbDm0rsuU1KVx2txi gzdYJs9T77+AVk4fOh06KnZ47eAbW0QlYoz8jn3abh2ysLSPJ+C/woxbjzvKwKSq8lVs 7VNw== X-Gm-Message-State: ACgBeo2ZJkQn1joeUYOX17UntHNkDA6arrGjn701VBJvb+CDXwsSoxiU P9OWGSHlPG4uL2Z6lGt/JRSZRg== X-Google-Smtp-Source: AA6agR5srpQq8X1dosKQ/9DVz3zQ9t/jf3UGjN9LXoookGiZyw2RUZbc6Qmu/oNJI0ty98mqwO/prA== X-Received: by 2002:a05:6870:c598:b0:108:b7e2:ac8 with SMTP id ba24-20020a056870c59800b00108b7e20ac8mr4571986oab.1.1659623556100; Thu, 04 Aug 2022 07:32:36 -0700 (PDT) Received: from anup-ubuntu64-vm.. ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id z25-20020a056808029900b00342b6bdf9e0sm32347oic.11.2022.08.04.07.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 07:32:35 -0700 (PDT) From: Anup Patel <apatel@ventanamicro.com> To: Atish Patra <atishp@atishpatra.org>, Alistair Francis <Alistair.Francis@wdc.com> Cc: Andrew Jones <ajones@ventanamicro.com>, David Abdurachmanov <david.abdurachmanov@gmail.com>, Heinrich Schuchardt <heinrich.schuchardt@canonical.com>, Andreas Schwab <schwab@suse.de>, Mark Kettenis <kettenis@openbsd.org>, Emmanuel Vadot <manu@freebsd.org>, Anup Patel <anup@brainfault.org>, opensbi@lists.infradead.org, Anup Patel <apatel@ventanamicro.com> Subject: [PATCH v7 14/17] platform: generic: Use kconfig to set platform version and default name Date: Thu, 4 Aug 2022 20:01:03 +0530 Message-Id: <20220804143106.64599-15-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220804143106.64599-1-apatel@ventanamicro.com> References: <20220804143106.64599-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220804_073237_590172_CA25E76A X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The generic platform version and default name should be set based on kconfig options so that users can override it. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Tested-by: Andrew Jones <ajones@ventanamicro.com> --- platform/generic/Kconfig | 14 ++++++++++++ [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:4860:4864:20:0:0:0:34 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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>, <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>, <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 |
Series |
OpenSBI Kconfig Support
|
expand
|
diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig index c76bd12..63d1be4 100644 --- a/platform/generic/Kconfig +++ b/platform/generic/Kconfig @@ -9,6 +9,20 @@ config PLATFORM_GENERIC if PLATFORM_GENERIC +config PLATFORM_GENERIC_NAME + string "Platform default name" + default "Generic" + +config PLATFORM_GENERIC_MAJOR_VER + int "Platform major version" + range 0 65535 + default 0 + +config PLATFORM_GENERIC_MINOR_VER + int "Platform minor version" + range 0 65535 + default 1 + config PLATFORM_ALLWINNER_D1 bool "Allwinner D1 support" depends on FDT_IRQCHIP_PLIC diff --git a/platform/generic/platform.c b/platform/generic/platform.c index bf93af6..cc3620f 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -265,8 +265,10 @@ const struct sbi_platform_operations platform_ops = { struct sbi_platform platform = { .opensbi_version = OPENSBI_VERSION, - .platform_version = SBI_PLATFORM_VERSION(0x0, 0x01), - .name = "Generic", + .platform_version = + SBI_PLATFORM_VERSION(CONFIG_PLATFORM_GENERIC_MAJOR_VER, + CONFIG_PLATFORM_GENERIC_MINOR_VER), + .name = CONFIG_PLATFORM_GENERIC_NAME, .features = SBI_PLATFORM_DEFAULT_FEATURES, .hart_count = SBI_HARTMASK_MAX_BITS, .hart_index2id = generic_hart_index2id,