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 72B29C61DA4 for ; Mon, 13 Mar 2023 21:36:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 614838619D; Mon, 13 Mar 2023 22:33:01 +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="qwvg5mQM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 35B578598A; Mon, 13 Mar 2023 22:32:28 +0100 (CET) Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 F0C2C85DC9 for ; Mon, 13 Mar 2023 22:32:14 +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-pg1-x529.google.com with SMTP id x37so3328411pga.1 for ; Mon, 13 Mar 2023 14:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678743133; 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=eh8gzVWWXrGRj5DPIP/jrloZGIM/Sx6gOp6KQ072buc=; b=qwvg5mQMctjsi+7EuJ0kVK2P8tJG6Dn3NuUN9tFeoewnRWSSBoZBoUy8Mjon1jaGEN Axi0rlnlRm9PPafCO/kUm/zSLoZ2JCAbN338DBaJrO/p7QZRyxlOxporVTbDhrinApvk ql2KMVoJ135d+r2LbVAc3UAsDFiKIDk7+fDsw83106opIKMuBlX4K+kRspvn86LrGK+s hh5TTTlnLj+wBCJo3ock62WvRJKKHbdJMTHBIlCTul6IDjIUfhE6zHdqlumuDHJ/dG6w gjh00klCyawNXFMaZfH1U2pOU+PNUvgIto5kpqkcxXAr9p4fm2BMvuKBCZFhZkcQNEWl sx1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678743133; 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=eh8gzVWWXrGRj5DPIP/jrloZGIM/Sx6gOp6KQ072buc=; b=dpUOpaAFc6hpXnm1PvdajsoKyChZVlAZe7F48HqQxlMtC99aFt00AxmunCbMu1z1XU WU06YD5Da2yHMAqZvq1aLat6XTFY5gudi9hpkc7/gWovaUH/FPX/zu52IBbT+Zj2i3Ga HDL1NpGaOEuhtohJOyiXDc1HtmZqCOfj+0NKEjvZwlGOB7QXXs5EH2qh73Mwr8mkJo4m VreT8Inpjl7r503KxeT2JHwsU0WL36y97Xw6IQL2w0fhYHi6rb+2ZipyPawuT96E0NiS he1IphsLGGaU/H3jnL5w0oVv2j39k1u63DhepaaLxWbeSClEyr91Yi6T5woMBZHr2dQf Iopw== X-Gm-Message-State: AO0yUKVPs13/fKhkthGJH9IZsKtIu+lyiB9Bjs9tB4kHionb+vR4VgaN URsjJGQmxEwPWohWGWCtG0w= X-Google-Smtp-Source: AK7set+4xjOGCku1OUXeAWDrHlPNMsTVoiPwROcu2gsZcMhBfKKdUcEtguilGa5fuHsRuDPaLu3TSw== X-Received: by 2002:aa7:9615:0:b0:625:4189:fcce with SMTP id q21-20020aa79615000000b006254189fccemr1949170pfg.23.1678743132893; Mon, 13 Mar 2023 14:32:12 -0700 (PDT) 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 s24-20020aa78298000000b005d4360ed2bbsm150797pfm.197.2023.03.13.14.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 14:32:12 -0700 (PDT) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Baruch Siach , Fabio Estevam Subject: [PATCH v3 18/23] solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA Date: Mon, 13 Mar 2023 14:31:40 -0700 Message-Id: <20230313213146.1775650-19-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230313213146.1775650-1-troykiskyboundary@gmail.com> References: <20230313213146.1775650-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.8 at phobos.denx.de X-Virus-Status: Clean Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- Changes in v3: - Rebase on Simon's s/CMD_SATA/SATA/ change - commit message updated Changes in v2: - use normal if, not preprocessor board/solidrun/mx6cuboxi/mx6cuboxi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c index cb14c2f30c9..6fa5cf4d27d 100644 --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c @@ -275,9 +275,8 @@ int board_early_init_f(void) { setup_iomux_uart(); -#ifdef CONFIG_SATA - setup_sata(); -#endif + if (CONFIG_IS_ENABLED(SATA)) + setup_sata(); setup_fec(); return 0; -- 2.34.1