From patchwork Thu Jun 23 13:18:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 1647188 X-Patchwork-Delegate: van.freenix@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=qqnvJiCi; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4LTLSW1RzZz9sGT for ; Thu, 23 Jun 2022 23:19:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38CD4842E0; Thu, 23 Jun 2022 15:19:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="qqnvJiCi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7000E8432F; Thu, 23 Jun 2022 15:19:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F074B83DFB for ; Thu, 23 Jun 2022 15:19:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9E9F6B82260; Thu, 23 Jun 2022 13:19:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DE35C3411B; Thu, 23 Jun 2022 13:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655990350; bh=BZ9TgT/R2NFWqtIz9xFQ7KUN4NplR0zG8DU8BgK5y7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qqnvJiCitSmlzjcQD9AQwBanNIrZuwutrz7PBE9h0LfSnjf1LnCjx8SIHYuVhG7NO TylJ89nZitd5m4dFcQ0LA9ZsGAZxuvwBaGqBXSgL8YZYSL4AlZ5JPAU855P/I9GOg/ PP6uKLfkb71X59kZ5GyoG8Axuqy6bkVRVRPT4XO57z+LuIHGW92cbM8P5B+9r9Vlbh MtK9nAouBPs5BSWHobDwjBrgU244WMAQM5UUYjSRWLNHdo4uG3Uck/CyKJ3O7XAWUw vfP9xARQzeRr6qz5SVTJN9DMIZnXr1pZ3JXnWWE1OxaEuzETzNkKH2SlzZtuuP9EjJ TjfhfHT0IiWkg== Received: by pali.im (Postfix) id 3ECE779F; Thu, 23 Jun 2022 15:19:07 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Priyanka Jain , "Peng Fan (OSS)" Cc: u-boot@lists.denx.de Subject: [PATCH v2] board: freescale: p1_p2_rdb_pc: Allow to compile without BOARD_NAME Date: Thu, 23 Jun 2022 15:18:52 +0200 Message-Id: <20220623131852.3111-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220502162656.10446-1-pali@kernel.org> References: <20220502162656.10446-1-pali@kernel.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Pali Rohár --- Changes in v2: * Rebase on top of next branch, commit 9121478ee6f2aee381f8fe49d8997d43527d351a --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 947bbc9a5ab7..949fe170ffd2 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -186,7 +186,11 @@ int checkboard(void) int bus_num = CONFIG_SYS_SPD_BUS_NUM; /* FIXME: This should just use the model from the device tree or similar */ - printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", BOARD_NAME, +#ifdef BOARD_NAME + printf("Board: %s ", BOARD_NAME); +#endif + + printf("CPLD: V%d.%d PCBA: V%d.0\n", in_8(&cpld_data->cpld_rev_major) & 0x0F, in_8(&cpld_data->cpld_rev_minor) & 0x0F, in_8(&cpld_data->pcba_rev) & 0x0F);