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 044B0C433EF for ; Mon, 2 May 2022 16:27:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54A5683E4C; Mon, 2 May 2022 18:27:13 +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="eNpoEZ1m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 526D183F06; Mon, 2 May 2022 18:27:10 +0200 (CEST) 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 D192083040 for ; Mon, 2 May 2022 18:27:07 +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 69960B81909; Mon, 2 May 2022 16:27:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F09A1C385A4; Mon, 2 May 2022 16:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651508826; bh=fqsjzDT4BfRrRSXjImYymYd2ksG4M91vFJe7bsyBhVs=; h=From:To:Cc:Subject:Date:From; b=eNpoEZ1mLo759IJzXEZgJuGjr0uWaq0w7cAwaCcURAfnUurcKXROxZhhHTnEdNsy9 mU1uEGvXXDfq37nHfOsxIdh7mJpCNyxUwxLhkB5rK3SokzMmWcnPQeE6qaHj+D82LB /RMrq6i79SkyyPuyGzImA4GzXjlBSt7gELT7DDWv6v4eJPM/bq4lpgnZCZawVQc+O/ dgvP+zEbz5p0HP4CH1tmSP3CUT6Afrso40Mmb6Ct198TR+zKZqwKpQvvUbh9dcUce9 o1o4RmdsLsPDnzH4H+W6fGgPJWmmotKZXfkyFGOEJCTVYg1TUpdFsB6woxE6I5ttdS tYMAxvwuffe4A== Received: by pali.im (Postfix) id EB3FDE79; Mon, 2 May 2022 18:27:02 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain Cc: u-boot@lists.denx.de Subject: [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without CONFIG_BOARDNAME Date: Mon, 2 May 2022 18:26:56 +0200 Message-Id: <20220502162656.10446-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.5 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Pali Rohár --- 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 53ff121d3b3d..0b10701f4d48 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 @@ -205,7 +205,11 @@ int checkboard(void) u8 in, out, invert, io_config, val; int bus_num = CONFIG_SYS_SPD_BUS_NUM; - printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", CONFIG_BOARDNAME, +#ifdef CONFIG_BOARDNAME + printf("Board: %s ", CONFIG_BOARDNAME); +#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); -- 2.20.1