From patchwork Thu May 16 20:01:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1100709 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mMhUT5Jh"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 454j5T18h5z9sBp for ; Fri, 17 May 2019 06:02:53 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C05A2C21DA6; Thu, 16 May 2019 20:02:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0E57CC21DD3; Thu, 16 May 2019 20:02:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6AFECC21DF9; Thu, 16 May 2019 20:02:12 +0000 (UTC) Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by lists.denx.de (Postfix) with ESMTPS id 95ECCC21D4A for ; Thu, 16 May 2019 20:02:08 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id t1so5405965qtc.12 for ; Thu, 16 May 2019 13:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oY6Kh+LJtH6ZfOvu4Aa6fd4JbimNwLWhw6ecvXwXj6M=; b=mMhUT5Jh3DpaUaYbYbZdOU0scpiCVIfSM9/U2GTMriXrnf09rxy++fVvZU2mZvBZ+n 0jN5XVXzrJXkwcP3Ti/wmouA9GJ0ORah1oBEB2oyCgsFVO7YjYKV8mKl+VCVFi9eo6+V g9fzQSU0R2taQUcPVpScw2Yxd+nKXAvi21ppfU8GLMyOwqcRPOt/oZKdCkyYLLwxNiSo L5sS34ttB2VZgfb88fPBvPWLVoC28OlGM1AQWizOStuat5wO/hIeJvf5SxzVYLW2r8Vm g2k+H9+Ic9EKfDDgmrpglaKGYGG2UIOHGdbVymeXdkLmfml1Nf560f+GBUi7m5rPqMpm 1TzQ== 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; bh=oY6Kh+LJtH6ZfOvu4Aa6fd4JbimNwLWhw6ecvXwXj6M=; b=iN4g1/iKGd2T7uHwXYq2i6NslA06M8mQ9fquJX6bvCiWxZCVyVCCWuoqxKvEp95mRZ Ty/UZxeXahRJiKOGSv/CUJ4H6qJZBpwYqbWeKDVaDRc58J3rXYJryT5QRe3zHgT022vQ 3sqnNi5NSWaF+V6FPTvTfbbpNIz1qpOcq9h8i/9RnrN1bA6sFTc16J4VRuCVgxoXh/XR PKpvEIM9LvX3XNEeBQe7OvGgBqR7C/SUOxuKIr4DGKxq4zU84mlHWfZqzfeLJwbadUvi s4FbXhhULhS5Mzk+not2nJepIVuqJ/DWiaX243dIDyWA9VZWwhYHAii9eTK06lMiZfeE FxTg== X-Gm-Message-State: APjAAAXsWlmoZaQiWa5WvGbK9uxoyJ2H5Lox+o6bbqBxXCKvQ2Fj8Ldl IN+rt79QVX81Pfqijl4ONSI= X-Google-Smtp-Source: APXvYqxbxmE47A4HVrA0eJAzn+hfv/K7wdq92upWjZRJs6CzICUhvLWdRVrnb+k4/faXmoRpA9YBRA== X-Received: by 2002:a0c:8a6c:: with SMTP id 41mr39502466qvu.236.1558036927485; Thu, 16 May 2019 13:02:07 -0700 (PDT) Received: from fabio-Latitude-E5450.am.freescale.net ([2804:14c:482:3c8:56cb:1049:60d2:137b]) by smtp.gmail.com with ESMTPSA id l3sm933886qkd.49.2019.05.16.13.02.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 13:02:06 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Thu, 16 May 2019 17:01:48 -0300 Message-Id: <20190516200148.5468-3-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190516200148.5468-1-festevam@gmail.com> References: <20190516200148.5468-1-festevam@gmail.com> Cc: otavio@ossystems.com.br, u-boot@lists.denx.de, uboot-imx@nxp.com Subject: [U-Boot] [PATCH 3/3] mx6sabresd: Remove U-Boot proper mmc initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" After the conversion to DM there is no need to have mmc initialization code inside U-Boot proper. Remove the unneeded code. Signed-off-by: Fabio Estevam --- board/freescale/mx6sabresd/mx6sabresd.c | 44 ------------------------- 1 file changed, 44 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 385a18e923..cdfc5ff77f 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -287,49 +287,6 @@ int board_mmc_getcd(struct mmc *mmc) int board_mmc_init(bd_t *bis) { -#ifndef CONFIG_SPL_BUILD - int ret; - int i; - - /* - * According to the board_mmc_init() the following map is done: - * (U-Boot device node) (Physical Port) - * mmc0 SD2 - * mmc1 SD3 - * mmc2 eMMC - */ - for (i = 0; i < CONFIG_SYS_FSL_USDHC_NUM; i++) { - switch (i) { - case 0: - SETUP_IOMUX_PADS(usdhc2_pads); - gpio_request(USDHC2_CD_GPIO, "USDHC2 CD"); - gpio_direction_input(USDHC2_CD_GPIO); - usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK); - break; - case 1: - SETUP_IOMUX_PADS(usdhc3_pads); - gpio_request(USDHC3_CD_GPIO, "USDHC3 CD"); - gpio_direction_input(USDHC3_CD_GPIO); - usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK); - break; - case 2: - SETUP_IOMUX_PADS(usdhc4_pads); - usdhc_cfg[2].sdhc_clk = mxc_get_clock(MXC_ESDHC4_CLK); - break; - default: - printf("Warning: you configured more USDHC controllers" - "(%d) then supported by the board (%d)\n", - i + 1, CONFIG_SYS_FSL_USDHC_NUM); - return -EINVAL; - } - - ret = fsl_esdhc_initialize(bis, &usdhc_cfg[i]); - if (ret) - return ret; - } - - return 0; -#else struct src *psrc = (struct src *)SRC_BASE_ADDR; unsigned reg = readl(&psrc->sbmr1) >> 11; /* @@ -363,7 +320,6 @@ int board_mmc_init(bd_t *bis) } return fsl_esdhc_initialize(bis, &usdhc_cfg[0]); -#endif } #endif