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 7AD2EC61DA3 for ; Wed, 22 Feb 2023 01:42:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A30585AC4; Wed, 22 Feb 2023 02:40:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="oQBjDlEO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47E5E85A87; Wed, 22 Feb 2023 02:39:18 +0100 (CET) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 3CF3F85A83 for ; Wed, 22 Feb 2023 02:38:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troykiskyboundary@gmail.com Received: by mail-pj1-x102a.google.com with SMTP id b14-20020a17090a8c8e00b002349579949aso6637068pjo.5 for ; Tue, 21 Feb 2023 17:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OLbGMSkwW7SBXv6ScxQbnXkJu2Qit5NIPCU4avKX3Es=; b=oQBjDlEOhB9JsSNVhYia3Uy0dxUt48NdE8XuStlGpyWhUu7IAtO2XcuVvd/jDr2dTC DyZHpjinQoNkZruJpdz5O2Pb4n42HMqommxQ89zFDC/VnY17HYP1PX1FnI9elbGbhtEP E+pU+mOfgCKopmAzcu8nXyNOoOljmqgFno3VeknHJjdzdIRXgdifiTv4mytpAifJ4a/8 lgPFjf46Gmma2Gn+HFHZn+xlhW+bX+1b3msATQmQvGfTzqKyiBLSXnfZrPrQeqwEEyoP 4T8Ep33BlWqf3gQjtMXbniN1gI4osdJ0L5idsZPf8sLBHiVaEwYP8rchEl8xLrTLe7tC ca7A== 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 :subject:date:message-id:reply-to; bh=OLbGMSkwW7SBXv6ScxQbnXkJu2Qit5NIPCU4avKX3Es=; b=wqrlFzDQ4W3wVASnJJoi9wCB/XMydKPbY/O+AhxqK8GRHSzJ+YXcgdF3usvdCx5qRM j2q3QPFQq2o/e+cerFKhRVHjU7oomdEBOPzsWgQISUy9qom469Kz4a1jZmPRaqANxh/I BckDiq7Mejk8ByR2FYgojUsnZjqEBnPa7k+fpQjv3PBLEng3eTrwXC/PbhvuMPympfhQ iOf6K0kgXX6Zq2j/9RQMESNWsY3HnYEcuacLPxOJP9oy5qIAfzd3fL0j7e7psBkHhLIS Jp8lo1zg6FBVHHAqw9G98FF5a25QG1+LM9S69SGnHeYz4LgXLO5Lc7t7FZWJjP5pT4xg x07Q== X-Gm-Message-State: AO0yUKXPUFtWDVPcyM/+xCbHsnSSJhNUbEwY4zHpghLoXbaQNE8tP83B Dlpyq7KDQ8+ixcVXlMTenl0= X-Google-Smtp-Source: AK7set/6VuycQ16eO9Rw2X1UR6es5wGLhsZtNbp5u4hHO20pm72qt8sZ3RNLUPUTbxECA3PnABlZjA== X-Received: by 2002:a05:6a20:3c87:b0:bb:b903:d836 with SMTP id b7-20020a056a203c8700b000bbb903d836mr20097237pzj.54.1677029937134; Tue, 21 Feb 2023 17:38:57 -0800 (PST) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:38:56 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Marek Vasut , Olaf Mandel Subject: [PATCH v1 15/24] m53menlo: define ft_board_setup only if CONFIG_IS_ENABLED(OF_LIBFDT) Date: Tue, 21 Feb 2023 17:38:12 -0800 Message-Id: <20230222013821.1144691-16-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222013821.1144691-1-troykiskyboundary@gmail.com> References: <20230222013821.1144691-1-troykiskyboundary@gmail.com> 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.6 at phobos.denx.de X-Virus-Status: Clean The function ft_board_setup calls do_fixup_by_path_string which is only available on CONFIG_IS_ENABLED(OF_LIBFDT). This prepares for the conversion. ft_board_setup is only called from image-fdt which is linked by obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o Signed-off-by: Troy Kisky --- board/menlo/m53menlo/m53menlo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c index 14324c7087d..ca3b81c57ff 100644 --- a/board/menlo/m53menlo/m53menlo.c +++ b/board/menlo/m53menlo/m53menlo.c @@ -264,6 +264,7 @@ void board_preboot_os(void) gpio_direction_output(IMX_GPIO_NR(6, 0), 0); } +#if CONFIG_IS_ENABLED(OF_LIBFDT) int ft_board_setup(void *blob, struct bd_info *bd) { if (lvds_compat_string) @@ -272,6 +273,7 @@ int ft_board_setup(void *blob, struct bd_info *bd) return 0; } +#endif struct display_info_t const displays[] = { { -- 2.34.1