From patchwork Sat Jun 13 13:54:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1377 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A5F2A3F077 for ; Sat, 13 Jun 2020 15:55:14 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id f13sf2195537plr.22 for ; Sat, 13 Jun 2020 06:55:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592056513; cv=pass; d=google.com; s=arc-20160816; b=k6Sbj7SvMo++8hgeZr1gjvDkjzrbza6W6pNHd8yUSjl9zuMsgJQi+0RcN9zF2vsm4G /saID79HVBBv2XD6wmDeLctePSJFD34jnvGvwiehI5ERnydFftgBGHhlh0Lzpz2GBCAJ T9kWuPFFDT7z02kNdgkxYZP5UcBLuqGo8PTj/2qsVKZURijqiyCeHYi5RTr5F1r9iXAV 7Z0SopdU1pCq0sIZJYDPe43zHuVrFqT3AmL44DG3FqmMZcXLlum515N0ydoGLTx93/Us FFwFGi8FFkaDbhvV70aCCuKpxOAvZbe4BMtHb/HHgZ7n8QqDfYYM2LnsLM5gTJtoLnu/ j/fQ== 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=R1uaQP6e2kOY5k+7svML572XjJ7edWyBR55U0526Ejw=; b=G1tn9PIhChLi9AXcWo+a9te2Y+UK0sDIRDqqUS9PyFBaBiD4B7LQYiwmSCisMRjjEK KgcbClnLi3PmUY5EyULTwemnkKCFOL7PsVtc4pcffjX6yx9hUsnxHIm1MGZ3lsToGqfI Lhvz+DnjzanM/t/le8J371Fj7DChmvLt/JIO4ZrC/gb9ZcQiZCOZvwjST0p22aj1S8z+ /rEXs6M0mdKjsfvBxalTsYAajyZfLkqlRSbjxsyeDUMUTaXhPA53bH+qkUfF9fX1dXmb dF2Wqb9GDKK02EC0ZihN02wi7rSrIIEdP1tuQVe6Y8oxV8qrF6GE8lOphO1PAVttKIxn C32Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ShCOeauG; 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=R1uaQP6e2kOY5k+7svML572XjJ7edWyBR55U0526Ejw=; b=dAfzKLYr8hlq3dM4ghJ0LquOoAqL6ev7YEF8By2pZDUSIZFv91IN6WPLMOvjnA/3vo Q9DlXry8EWdcuFAoDOgBVB/WUaAgIn4wGDZwo+67vMSXLzrK2tNKJ0QsUl1mwkaWROk7 fqcRS55WUk+tQyvZD/Ct0sWOQE6N7MJ1E+bSs= 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=R1uaQP6e2kOY5k+7svML572XjJ7edWyBR55U0526Ejw=; b=oAfpk3d20U7X28e6zaFTJ2DprWZGa32FttlM5XW82IRS5FAMWHor9FczChAr1OLi98 W20m0MxBGRw6NtHtbSczJ9yZPUsaM7JXLCa/oHNsBrWSOnOiU0JnYrz4aVe55us+A/gh 30Mq1O1Ic0Ko83hLVsSPcQXgRiu/M2kbHpoovxzh9fjR4Fa2xDY3s+hnk7DtJmUmaRxb L1dE+4zjeq6D+lk4IQJQDUIsECw707U3m2PaZa7FBmopuz09MbLG4PYJzFc/V00m9u76 q8BY0goVFUWLHdJNAeCdDNdlLe0kogCacCFmc+d9TjkdpIwiHYFqABe9o0qb0ESdhqyj 8XfA== X-Gm-Message-State: AOAM533HPOnYTogNTO4o4gBMzd0FoV1V2u6lU2whQdFfBkC7uSF6BkTm nT/UMvTghNJgvtPjJlZiwkYkIBYX X-Google-Smtp-Source: ABdhPJzCXtqPgT6gGA3+kyXt26R6MP+vsc6zAal1OvF/2Xjk+cRWCQ6lTeoWRrWncpt4w/J/r6yh8Q== X-Received: by 2002:a63:c407:: with SMTP id h7mr14626657pgd.174.1592056513374; Sat, 13 Jun 2020 06:55:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:6845:: with SMTP id f5ls3060005pln.8.gmail; Sat, 13 Jun 2020 06:55:13 -0700 (PDT) X-Received: by 2002:a17:902:a604:: with SMTP id u4mr15225154plq.196.1592056512954; Sat, 13 Jun 2020 06:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592056512; cv=none; d=google.com; s=arc-20160816; b=f7739cu7mEx4E6eT8j1CBHaaub6zE6WjF8RPypaQSu+v/RRtHMNrQ/qrmU5vkPmurk MNaZCpWCd+/fV5Q90n3mrvQlY3GpZ4dnVom0IAxmiCL0uBvCDmh2Zf9cs5pv6n7Q1hrZ hQ2TrGUhub4wS/Eq07cmP9hgdSHTkIldtH+gQnwwIYFnf8Sq5JgsmRN0UcNq+jKM/7kF fXYfOXU1nGa5uTI9sZRAxjP5ZWAV4wpswc4kptjLdJ1KanAHTl82PsV03BQrS992zB9b kw6IQx3xRxFa0B14/9q86VKOJKO3gQ3oNh3PEId1hMhu2QoF1X3hlTmiu0KW87w9v4Yi s7Bg== 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=XeeVhTGx62/IiBLDfBfmAw8aH0Sao6ReHCwATQLF7lI=; b=DAVhIzAWeDqunxspGJ82TLqgdv/lKtJCAWOSbWFyRmTnRFHITuG3khHgGdMYEjAZmy ZB1P3BXULk0jUniNcvqq7htmDtZ8YwUUF1B0POmO5YwkCX1LVUb+0XGJv2X1bdf2iLrE hJH8cOHbe+S7HHqxh9u9lhJZTrsTBlxasGWSClH1GPPWz8viBz67V2ux4vUs34Nsh1jA oookKI/MOitaPKmUcaUhwtgxt/3O3EZqUOR1Y2IpvqoC6OOE2xbX65QWZREpoHY5DejV Xz/HSQln1+q2cn8HXov9fTipD5ZkUJtQlHDZjBNrnbnOVEeY0zak8TOcKmhgUXOB7rhM gN1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ShCOeauG; 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 q8sor4399323pfk.73.2020.06.13.06.55.12 for (Google Transport Security); Sat, 13 Jun 2020 06:55:12 -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:a62:780c:: with SMTP id t12mr15225295pfc.317.1592056512694; Sat, 13 Jun 2020 06:55:12 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2020 06:55:11 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 02/16] cm_fx6: Switch to full DM-aware Date: Sat, 13 Jun 2020 19:24:41 +0530 Message-Id: <20200613135455.181483-3-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=ShCOeauG; 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. Patch-cc: Nikita Kiryanov Signed-off-by: Jagan Teki --- configs/cm_fx6_defconfig | 3 +++ include/configs/cm_fx6.h | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/configs/cm_fx6_defconfig b/configs/cm_fx6_defconfig index edaa8e24a5..a55a021a75 100644 --- a/configs/cm_fx6_defconfig +++ b/configs/cm_fx6_defconfig @@ -53,10 +53,12 @@ CONFIG_CMD_MTDPARTS=y CONFIG_MTDIDS_DEFAULT="nor0=spi0.0" CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:768k(uboot),256k(uboot-environment),-(reserved)" CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="imx6q-cm-fx6" CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y +CONFIG_SPL_DM=y CONFIG_DWC_AHSATA=y # CONFIG_DWC_AHSATA_AHCI is not set CONFIG_DM_KEYBOARD=y @@ -83,6 +85,7 @@ CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DM_PMIC=y CONFIG_DM_REGULATOR=y +CONFIG_SPECIFY_CONSOLE_INDEX=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_MXC_SPI=y diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index 302907dcfb..55761450b1 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -151,13 +151,6 @@ /* APBH DMA is required for NAND support */ #endif -/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#undef CONFIG_SPI_FLASH_MTD -#endif - /* Ethernet */ #define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0