From patchwork Fri Apr 20 09:14:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 133858 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp44126ljf; Fri, 20 Apr 2018 02:16:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48DXDjtCirRVM1BmdLqgaHEntOf232zbwKRjSSRYx5mCcEdVhy54LoJcxu0FF07oyqabTYs X-Received: by 10.80.182.186 with SMTP id d55mr12743200ede.250.1524215801691; Fri, 20 Apr 2018 02:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524215801; cv=none; d=google.com; s=arc-20160816; b=0y+xDLXNmrIO0Izt3pmZc6akWDuJ2cCbsFWnBhWJRVnvt2f2loixgG3q+Hl7rCZFms R8JYoT1OC/i4mGngSXe1QnPfA3WtrEb7voeCd6zAihs55ltf0Y1YIxybHTf1ci3btVbr 1HSyvn19p6j3uGYsig3NLbpmOp6V8Rwu5VfpxBZEQdJmZqosdFKaZT3GGtfZxkTQ/LHZ h/oAVBQcNkYnzVBD7x7ijdNRUroApeFUce+7WeMPEUIYdA4QExaR6L2J8Vmueq9cbah6 9V5tyb+v3gNaGyCTduEzWdBIguBPlUGLkqLhZ79d/KdL1ysEMVoVrngKG5bDlqJ/S+Fa W5Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=urCohlrtHnxrojlnLk/oedqV44MfQrO/UcKEO2AZAOk=; b=01WgsZa9h8iXX++6EQ8Rhjlx3Ht2qQSXBmk2yNUXfxzWKp+IbGfVPCITNn1LaCdK9u 6zKzMlP1ZLUwPLtbxpccNHBL6VDpTYCAtwf5P1oTkRShFc62AYLb1cDg642UGKnr+Eiv 3fn7cyVccUmBgExPirOQpSlbMme9SkftvyVCz4nTq2Wi7q3nW9FwhUhiN80pkfXzxqB0 p1UrJ1bXinR8qzi7MXr3TjOgUvSRrFvR4C4zCE9VZu7PrQTzQr8qb86qC16S1iCnEPg5 IoEShwUYBL8uRB+AHphVRwR7UMH5kxmj1tX1eemCfuYNYNjSZfje3I/OaW/IbPqV/gyx nd3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Tz9WpOF4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 1si2861247edw.116.2018.04.20.02.16.41; Fri, 20 Apr 2018 02:16:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Tz9WpOF4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 439D5C22026; Fri, 20 Apr 2018 09:15:24 +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=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 F0AE7C22016; Fri, 20 Apr 2018 09:15:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 886D5C21E79; Fri, 20 Apr 2018 09:15:01 +0000 (UTC) Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by lists.denx.de (Postfix) with ESMTPS id 47459C21E79 for ; Fri, 20 Apr 2018 09:15:00 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id w3K9ESOq030098; Fri, 20 Apr 2018 18:14:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w3K9ESOq030098 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1524215670; bh=bM/Mp0r662/WmYxwddO6CTY1d17NtTBe87AKQS6b2VQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tz9WpOF4fu8gJriUvB9HzHl6nIpg1fW4vwybHAEC8YCRbFeL6BWIAs130U3G++HZ5 Z9SxskBtqSx1e7vR3A6nsathoH48tLXuaYIfpR1iehDjRs06eb3365Uh6E4u7l3Tl4 eRtIgsUbz232WIMBaPacivMdlEiE0IcclqnmiFpy4ARt8dGFliUt8+GraXbwWYSSh+ 9PR4XeTCdH6iQp49Q/KTZQQqDNzqk3/A7NudbKN+Jf23KAJuqugGTtn5vPph7GeNnH h5+b3XojJ50fBK9e82Si/jgcjPH0sg1FXFv8lNWcok+kHnmoEU2bsrWUi6c2bb5bZY Gs6eUH6TO8rBQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 20 Apr 2018 18:14:25 +0900 Message-Id: <1524215667-32112-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524215667-32112-1-git-send-email-yamada.masahiro@socionext.com> References: <1524215667-32112-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 2/4] mmc: uniphier-sd: skip clock set-up for SPL 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" The size of SPL is hitting the limit (64KB) for uniphier_v7_defconfig. When booting from SD/eMMC, obviously its clock has been properly set up by the boot ROM. Acutually, no need to re-initialize the clock in SPL. Using a clock driver would generalize the SoC specific code, but solving the memory footprint problem would win. Signed-off-by: Masahiro Yamada --- drivers/mmc/uniphier-sd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index bc6e41d..61f8da4 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -33,6 +33,7 @@ static const struct udevice_id uniphier_sd_match[] = { static int uniphier_sd_probe(struct udevice *dev) { struct tmio_sd_priv *priv = dev_get_priv(dev); +#ifndef CONFIG_SPL_BUILD struct clk clk; int ret; @@ -56,6 +57,9 @@ static int uniphier_sd_probe(struct udevice *dev) dev_err(dev, "failed to enable host clock\n"); return ret; } +#else + priv->mclk = 100000000; +#endif return tmio_sd_probe(dev, 0); }