From patchwork Sat Jun 13 13:54:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1378 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B41C93F077 for ; Sat, 13 Jun 2020 15:55:18 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id y16sf9306828pfp.11 for ; Sat, 13 Jun 2020 06:55:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592056517; cv=pass; d=google.com; s=arc-20160816; b=RMk3dOmYvqvBFIytJjQieDAP3JJV3pJwm/8qUV88iAJNGCbMdutpGWM5CKPF69nkFV Ogz/ZqtsdHRQBaJw9GNv/MzZYpeRziYU++W/xunxaHhhP7oRJKwfnbDzPM5/iFJdk4Mf OUsM9vGM6O0E7cbgFIcb2l/ZdTvWa77pl8BqF1Eaj87osh0mfbd1EiRrw9JUMmFGVsSv 5OLWTurf1ApVh7h1PC+U8sjG5GrMPMlmLAZ1TfSI2hh7jF6BOb1gDI1uXVGywe26kv1v 12iwTDy7Ri603wtZ3PI2QuHBE/sq/NM9Fonasfe51zNaKkbqk6qFxXnF3Ay0o7nFnmHH jilQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=quILlm9c9Xg3czTLVO7Y9ieuOSiZdSRYDIJTYOQbO5k=; b=bIXslZAG3koSzJmnhLLFOSgfaolSiJoqQCeSFBj3ybMmd01Ypjc1uMN+96Ta0zVd5D 20YRdCUvhoLqAF3jKDoqTWkIFfcLNDJiFaspRW4PLrhIeP8p026ilgyy2ymTEBnle3+z IAsbrxajkYLHFHzjzLtg/VfHSH7A0kgtmiUH5qFk7LIz4B72wmzHphWkquOAbCfdShtp M4RC93DTmayafvsUd/RnKKaG4598KLcloOQB8gMkHLYAxj/xe6QKF0Ayt2QzpCcvBVTv JoY9y7+qx26kpdrpiW+04TpySHLO4QouWpm/XjQanQ939G8H99IFs+SRwqS5Zk36S9Ti ReHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mTzkvFnK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=quILlm9c9Xg3czTLVO7Y9ieuOSiZdSRYDIJTYOQbO5k=; b=AUE2eug2Aq5wFfAmGgh0kPot6ZSweZm+L6g6BUsqebQGrCYwU2MAhO5BoIleG2fD2o BonyxIddKk6lb9wnf3AIj6BO/RTs4BGUW9eUuFUzo9lB2qEzwAcoVSVkvcHLJDpshIk6 9UBsBh4PdALtXF8vRQzOK7zCc6vXuwZg25Rwk= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=quILlm9c9Xg3czTLVO7Y9ieuOSiZdSRYDIJTYOQbO5k=; b=snt80mCtx5mQ/d97ai2HTdbuSOpanzoDlNbUeMvfuAj9FxznioLO3ob3CP8o2selek WvrUAG6KpwXxLxwKiw8G2J88Tby1RaVHHJgCIW2EF0sygPcA9ZPgnEepCkj8iRgA6gzC jM1S8m5eMGmbbz8gqruGn/BVbYhBjnpCzyElKU2KdSWuL8trsxUxjo/A/t8ZYMyS2Ed5 XWTv8N42/mRxaG+86P2YtjNL+K8bUGw799h+3jFllHYFLsZXrbhvrHYn6Vr13pI2I3Ed 8oC6aaeaFYj8htRHCJTvHGggdCftjVRKXqNpu3ZKluzfifE0rAlPqzQk3amZvHOJA3B5 Vu9A== X-Gm-Message-State: AOAM531zY3GYXTJDZN67Mna0raBVmGsoJJ1dCF4p+85lbNc0BRl1YQVx YI+wAPX82R8GdG8H8/ybT+NIEZyO X-Google-Smtp-Source: ABdhPJwenVQdwjPJduh5P3V1crDMUfjyususUx+qiuu4qmiLdL9S+VKgeFilq1i/6zOTUaMdYgEPVQ== X-Received: by 2002:a17:90a:20c2:: with SMTP id f60mr3809619pjg.29.1592056517482; Sat, 13 Jun 2020 06:55:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9007:: with SMTP id a7ls995334plp.3.gmail; Sat, 13 Jun 2020 06:55:17 -0700 (PDT) X-Received: by 2002:a17:90b:4c0f:: with SMTP id na15mr3605364pjb.112.1592056517006; Sat, 13 Jun 2020 06:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592056517; cv=none; d=google.com; s=arc-20160816; b=rqx6bNCgiqnFGTFglZjDni7Jdij63ndS/AGcRNi1DpXPeBrHgfURKSABcAhVi9YDcV c4CKzJEZxFD+E4eBDr6d1lTFyaL5AQBJKwOeAL8sJgJc7ZE58QaYaSS+ckMNq+cufF1+ Za49sYP5hbi/S0OhcalSU0pYZmlG4bhOS2kWs/dmnJ8dD0ytTkHebgAH2KM3c95hrmve tsEj4K2mzSBMc7i9F4HmjPAAFfxUbhSxeGEKdJy9F78f3w8+pzGWTRvH1T4dp9wLOuHO yslyuhKfnfaeO6fmLb6AvGOER4JMrkLmAR61WEWs50x5P7qbgBxcj96iBZ15z/5LEzBX VykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Qy8OXhjpLNPNm4R7MmolYmPeM4a96HeJXFYwbUHMGec=; b=NlsaiwqWfIRoMSV/rYyTlMTbOsh6Vmx2a/9FgT65RUeUBMM77iI7aPEQDoV4+qmok7 izX1gF3OX5ogWovTJwd82ZRcClw1xh9JBp/8XWazopwoLNLw/zg7s6Kla14EYhjHmVxj i52RlNTaf124X8SQQcP8dzpplL8eOzq5H5bZ92uNcFGdpX8KbSk6J0gGB5EY8aJQGjzo 1gcJOJn+7IeAT9XpoKt8vlYCHCo6fmz0y/Jnpv3i/4bsdWyrXdJ4cx9U2VbtAdum3T4q ozAEPqTzzCU9iKrRebb5eYxoX+CgI1y4ZCSAlYvOhq9bdE8nmVJ3vwj3pp6V4zygvSBs /fgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mTzkvFnK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z8sor11104647pjr.36.2020.06.13.06.55.16 for (Google Transport Security); Sat, 13 Jun 2020 06:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:ee14:: with SMTP id e20mr3847763pjy.55.1592056516773; Sat, 13 Jun 2020 06:55:16 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:5482:aff0:70c0:2108]) by smtp.gmail.com with ESMTPSA id m18sm9087017pfo.173.2020.06.13.06.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2020 06:55:16 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , linux-amarula@amarulasolutions.com, Jagan Teki , Ludwig Zenz , Andreas Geisreiter Subject: [PATCH 03/16] dh_imx6: Switch to full DM-aware Date: Sat, 13 Jun 2020 19:24:42 +0530 Message-Id: <20200613135455.181483-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200613135455.181483-1-jagan@amarulasolutions.com> References: <20200613135455.181483-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mTzkvFnK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable DM_SPI/DM_SPI_FLASH with a related config option. Build fine, but not tested. Cc: Ludwig Zenz Cc: Andreas Geisreiter Signed-off-by: Jagan Teki --- configs/dh_imx6_defconfig | 3 +++ include/configs/dh_imx6.h | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig index d20405e5b2..da756a8e3d 100644 --- a/configs/dh_imx6_defconfig +++ b/configs/dh_imx6_defconfig @@ -49,12 +49,14 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_TIME=y CONFIG_CMD_EXT4_WRITE=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="imx6q-dhcom-pdk2" CONFIG_OF_LIST="imx6q-dhcom-pdk2 imx6dl-dhcom-pdk2" CONFIG_MULTI_DTB_FIT=y CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_DWC_AHSATA=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_DM_I2C=y @@ -100,4 +102,5 @@ CONFIG_CI_UDC=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_WATCHDOG_TIMEOUT_MSECS=60000 CONFIG_IMX_WATCHDOG=y +# CONFIG_SPL_WDT is not set CONFIG_BZIP2=y diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 5bfdf4044b..5fb84f72a2 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -53,12 +53,6 @@ /* SATA Configs */ #define CONFIG_LBA48 -/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif - /* UART */ #define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART1_BASE