From patchwork Thu Oct 29 17:08:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1390274 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=cWP3rmm1; dkim-atps=neutral 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 (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CMX2y3p0Rz9sRk for ; Fri, 30 Oct 2020 04:08:42 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E788F8235F; Thu, 29 Oct 2020 18:08:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cWP3rmm1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5492782369; Thu, 29 Oct 2020 18:08:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 9526D8002F for ; Thu, 29 Oct 2020 18:08:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x142.google.com with SMTP id k1so3767912ilc.10 for ; Thu, 29 Oct 2020 10:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BSI4uMc+oBjEA//TPcjexvDuxoTNqneRilBdHzGd4cM=; b=cWP3rmm1lniLMH1yRYruMKgAgfkSmBxVd4301+O/S8BmAwQK1b1yBv9tq+u37exDWx 66W2lsRaWr8qEfKtOALMl7LtJgz7/izWcPuMnvMPsFgHXawCdfIEDzpG8AYiCS2tVu3g R1/zcUHLCUuIdDmCkjvu/GZ/qaaqcX3GZudHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BSI4uMc+oBjEA//TPcjexvDuxoTNqneRilBdHzGd4cM=; b=BSmFbgqU3ps6xTwH6bQpXo7C/Z9esXclcEjQRd2iskiNB5UZTivzxjhXYjQrd+2Bl5 I7M0UH0XcsdJHAkix3yfbJYVRb2XZY7at2QLY66leKuH6oTibLCVMzCkILUKRUjS9JC4 QBbYNemTfVrZnHrh+6vBJw/Y5WVhGW7LBlKegP4Sy27/zwHsID+vglRbhTBQ8amknLOv ILAucv31JmcBsM26cZDzLds4VurJjlzE60ajKmyKxP7oQuAzK9hsFb4GbAZYtIuvuvGV 6AamaFl4iw4LUNIuVGLvMW4P/eghiF+V1mjdoU5zPkRCEEUpH1ZJsqjZDHHuKlSkXLO6 B2zg== X-Gm-Message-State: AOAM533riireYOEiHVg0TfVaC+3aER5ULPLkLuDmUSFHBr14ixn8NZ9l W6VjLNRavSuG1IHQaEwc3ihYmXS58Y8qh/bE X-Google-Smtp-Source: ABdhPJzAQa8lkecOazMM36f4Ok9GEs5JIfbplMuR18kPqQwQVWsXkFLtGlZXf5pHmMcHEcY/FHEefw== X-Received: by 2002:a92:d3ce:: with SMTP id c14mr3919870ilh.157.1603991312157; Thu, 29 Oct 2020 10:08:32 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id b70sm3329265ilb.51.2020.10.29.10.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 10:08:31 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Eric Nelson , Fabio Estevam , Heinrich Schuchardt , Marek Vasut , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL Date: Thu, 29 Oct 2020 11:08:25 -0600 Message-Id: <20201029170825.2718896-1-sjg@chromium.org> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This feature is incompatble with of-platdata since it uses the U_BOOT_DEVICE() macro. With of-platdata the only devices permitted are those created by dtoc. The driver is not used in SPL anyway, so exclude it from that build. Signed-off-by: Simon Glass Reviewed-by: Fabio Estevam Reviewed-by: Fabio Estevam --- Changes in v2: - Disable just the driver definition in SPL arch/arm/mach-imx/mx6/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index e1292860656..a636107410e 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -34,7 +34,7 @@ struct scu_regs { u32 fpga_rev; }; -#if defined(CONFIG_IMX_THERMAL) +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX_THERMAL) static const struct imx_thermal_plat imx6_thermal_plat = { .regs = (void *)ANATOP_BASE_ADDR, .fuse_bank = 1,