Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F2D8C4338F for ; Sun, 25 Jul 2021 23:33:55 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0EFDB60EB4 for ; Sun, 25 Jul 2021 23:33:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0EFDB60EB4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C85148326E; Mon, 26 Jul 2021 01:33:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.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 D138E83255; Mon, 26 Jul 2021 01:16:59 +0200 (CEST) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (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 AB68283243 for ; Mon, 26 Jul 2021 01:16:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=gyf304@gmail.com Received: by mail-qv1-f51.google.com with SMTP id hu11so4229949qvb.7 for ; Sun, 25 Jul 2021 16:16:45 -0700 (PDT) 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:content-transfer-encoding; bh=+V+HKMS/kvT6tsVCGgVZZHR9U/2Y2qZ9E3deJ5PJYvw=; b=ROD+DMiGDwme9/KQUEJWV9CbwBiPtwx4j2FettGCRckK6JI/Fvjyas49gTxiHf50Ni JG+0nOsXBrc7+yMouKz+Qag7/Dhj7JxBgC3/fRgAQeyaaM5+ROXsAs6112/4csO2sC3f Og7I1RWpUtv+a/tpti2LpkW480VDME8g3xvEg1Sx3RY++nDh/vxHtEc3W1/HnOqYM3VF w9FKgZaSJ2WS563GQxJcmjWr8MgvS3GOCVwiABzbxK5NZwHL5LqbsuH9xx5464A7iXXc /B6LE2cq+IislzN/zW6Xbow7RO7OvaKIOPsePrMvLD7MLTywLCYpCy4ZgCRVp47UxqVc syoA== X-Gm-Message-State: AOAM533trG6S2EgzQYk75QfIvmYv24VQPQX2yIb4QdpdEROxALSjniBA g+a84ibYQ0FmaojWsHnqWvUM1CoC4VURI8Z2 X-Google-Smtp-Source: ABdhPJyxk5Fy/nXx36McEfJ5GTYTayd1wW8v6tDChaA1qLiCfNNXfz5j3QeaYjrUpXa+M1rvtGLXQA== X-Received: by 2002:a0c:a5c5:: with SMTP id z63mr15228075qvz.16.1627255004351; Sun, 25 Jul 2021 16:16:44 -0700 (PDT) Received: from yifangu-Virtual-Machine.mshome.net (pool-100-6-159-43.pitbpa.fios.verizon.net. [100.6.159.43]) by smtp.gmail.com with ESMTPSA id u184sm17754694qkd.53.2021.07.25.16.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 16:16:44 -0700 (PDT) From: Yifan Gu To: u-boot@lists.denx.de Cc: Yifan Gu , Jagan Teki , Andre Przywara , Icenowy Zheng , George Hilliard Subject: [PATCH 11/27] sunxi: do not set PF MMC0 pinmux when PF uart is used Date: Sun, 25 Jul 2021 19:16:20 -0400 Message-Id: <20210725231636.879913-12-me@yifangu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210725231636.879913-1-me@yifangu.com> References: <20210725231636.879913-1-me@yifangu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 26 Jul 2021 01:32:10 +0200 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Icenowy Zheng Signed-off-by: Icenowy Zheng Signed-off-by: Yifan Gu --- board/sunxi/board.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 27ab44b67c..748c1a8673 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -412,17 +412,19 @@ void board_nand_init(void) #ifdef CONFIG_MMC static void mmc_pinmux_setup(int sdc) { - unsigned int pin; + __maybe_unused unsigned int pin; __maybe_unused int pins; switch (sdc) { case 0: /* SDC0: PF0-PF5 */ +#ifndef CONFIG_UART0_PORT_F for (pin = SUNXI_GPF(0); pin <= SUNXI_GPF(5); pin++) { sunxi_gpio_set_cfgpin(pin, SUNXI_GPF_SDC0); sunxi_gpio_set_pull(pin, SUNXI_GPIO_PULL_UP); sunxi_gpio_set_drv(pin, 2); } +#endif break; case 1: -- 2.25.1