From patchwork Wed Jun 17 10:08:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 1311085 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=fail (p=none dis=none) header.from=nxp.com 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 49n1L13s0Hz9sRh for ; Wed, 17 Jun 2020 20:20:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E75D81F8A; Wed, 17 Jun 2020 12:14:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8753C81F9C; Wed, 17 Jun 2020 12:14:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BFB6781CAF for ; Wed, 17 Jun 2020 12:14:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=yangbo.lu@nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CCB5D1A0A92; Wed, 17 Jun 2020 12:14:40 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C698B1A02B8; Wed, 17 Jun 2020 12:14:38 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E3ECD402B1; Wed, 17 Jun 2020 18:14:35 +0800 (SGT) From: Yangbo Lu To: u-boot@lists.denx.de, Priyanka Jain , Peng Fan Cc: Yangbo Lu Subject: [PATCH 0/4] Move eSDHC adapter card code to board files Date: Wed, 17 Jun 2020 18:08:56 +0800 Message-Id: <20200617100900.6506-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean The eSDHC adapter card identification and multiplexing configuration through FPGA had been implemented in both common mmc driver and fsl_esdhc driver. However it is proper to move these code to board files and do it during board initialization. The FPGA registers are also board specific. This patch-set is to move eSDHC adapter card identification and multiplexing configuration from mmc driver to specific board files. Add eSDHC adapter card identification for LX2 QDS. And the option CONFIG_FSL_ESDHC_ADAPTER_IDENT is no longer needed. CI build result https://travis-ci.org/github/yangbolu1991/u-boot-test/builds/699180417 Yangbo Lu (4): Drop global data sdhc_adapter for powerpc Move eSDHC adapter card identification to board files board: fsl: lx2160aqds: identify SDHC adapter during board init configs: lx2160aqds: enable CONFIG_BOARD_EARLY_INIT_R arch/powerpc/include/asm/global_data.h | 4 +-- board/freescale/common/qixis.h | 14 +++++++--- board/freescale/lx2160a/lx2160a.c | 36 +++++++++++++++++++++++-- board/freescale/t1040qds/t1040qds.c | 29 ++++++++++++++++++++- board/freescale/t208xqds/t208xqds.c | 29 ++++++++++++++++++++- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160aqds_tfa_defconfig | 1 + doc/README.fsl-esdhc | 14 ---------- drivers/mmc/fsl_esdhc.c | 39 ---------------------------- drivers/mmc/mmc-uclass.c | 4 +-- drivers/mmc/mmc.c | 7 +---- drivers/mmc/mmc_legacy.c | 7 +---- drivers/mmc/mmc_private.h | 4 +-- include/configs/T1040QDS.h | 1 - include/configs/T208xQDS.h | 1 - include/fsl_esdhc.h | 4 --- scripts/config_whitelist.txt | 1 - 17 files changed, 108 insertions(+), 88 deletions(-)