From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v3 21/23] mmc: mtk-sd: assign plat->cfg.f_max with a correct value
Date: Mon, 9 Nov 2020 10:00:57 +0100 [thread overview]
Message-ID: <d2bfdfc0-7eea-3202-64bb-e5a95e5b690f@denx.de> (raw)
In-Reply-To: <58ca12e09b5434fd152687fe53706ff0948a2304.1604907361.git.weijie.gao@mediatek.com>
On 09.11.20 09:28, Weijie Gao wrote:
> Currently this driver does not set the value of plat->cfg.f_max, which
> results in that MMC framework will always run at the lowest frequency.
>
> This patch sets plat->cfg.f_max to the maximum allowed frequency, which is
> half of the source clock frequency.
>
> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> v3 changes: new
> ---
> drivers/mmc/mtk-sd.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
> index f4ff8822f2..5e24943212 100644
> --- a/drivers/mmc/mtk-sd.c
> +++ b/drivers/mmc/mtk-sd.c
> @@ -1639,6 +1639,8 @@ static int msdc_drv_probe(struct udevice *dev)
> else
> cfg->f_min = host->src_clk_freq / (4 * 4095);
>
> + cfg->f_max = host->src_clk_freq / 2;
> +
> cfg->b_max = 1024;
> cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
>
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
next prev parent reply other threads:[~2020-11-09 9:00 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-09 8:24 [PATCH v3 00/23] Add support for MediaTek MT7620 SoC Weijie Gao
2020-11-09 8:24 ` [PATCH v3 01/23] mips: dts: switch to board defines for dtb for mtmips Weijie Gao
2020-11-09 8:24 ` [PATCH v3 02/23] mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectory Weijie Gao
2020-11-09 8:24 ` [PATCH v3 03/23] mips: mtmips: select SYSRESET for mt7628 only Weijie Gao
2020-11-09 8:33 ` Stefan Roese
2020-11-09 8:24 ` [PATCH v3 04/23] mips: mtmips: fix dram size detection in dram_init Weijie Gao
2020-11-09 8:24 ` [PATCH v3 05/23] mips: enable _machine_restart for spl Weijie Gao
2020-11-09 8:34 ` Stefan Roese
2020-11-09 8:24 ` [PATCH v3 06/23] mips: mtmips: add support to initialize SDRAM Weijie Gao
2020-11-09 8:35 ` Stefan Roese
2020-11-09 8:24 ` [PATCH v3 07/23] mips: mtmips: add support for MediaTek MT7620 SoC Weijie Gao
2020-11-09 8:40 ` Stefan Roese
2020-11-09 8:24 ` [PATCH v3 08/23] mips: mtmips: add two reference boards for mt7620 Weijie Gao
2020-11-09 8:40 ` Stefan Roese
2020-11-09 8:24 ` [PATCH v3 09/23] configs: mtmips: refresh for mt7628 based boards Weijie Gao
2020-11-09 8:25 ` [PATCH v3 10/23] serial: add uart driver for MediaTek MT7620 SoC Weijie Gao
2020-11-09 8:41 ` Stefan Roese
2020-11-09 8:25 ` [PATCH v3 11/23] clk: add clock " Weijie Gao
2020-11-09 8:44 ` Stefan Roese
2020-11-09 8:25 ` [PATCH v3 12/23] reset: mtmips: add reset controller support " Weijie Gao
2020-11-09 8:51 ` Stefan Roese
2020-11-09 8:57 ` Weijie Gao
2020-11-09 9:03 ` Stefan Roese
2020-11-09 8:26 ` [PATCH v3 13/23] pinctrl: mtmips: add " Weijie Gao
2020-11-09 8:51 ` Stefan Roese
2020-11-09 8:26 ` [PATCH v3 14/23] watchdog: add watchdog driver " Weijie Gao
2020-11-09 8:52 ` Stefan Roese
2020-11-09 8:27 ` [PATCH v3 15/23] gpio: add GPIO controller " Weijie Gao
2020-11-09 8:53 ` Stefan Roese
2020-11-09 8:27 ` [PATCH v3 16/23] spi: add spi controller support " Weijie Gao
2020-11-09 8:54 ` Stefan Roese
2020-11-09 8:27 ` [PATCH v3 17/23] phy: add USB PHY driver " Weijie Gao
2020-11-09 8:55 ` Stefan Roese
2020-11-09 8:27 ` [PATCH v3 18/23] net: add ethernet " Weijie Gao
2020-11-09 8:57 ` Stefan Roese
2020-11-09 8:28 ` [PATCH v3 19/23] mmc: mtk-sd: fix sclk cycles shift value Weijie Gao
2020-11-09 8:58 ` Stefan Roese
2020-11-09 8:28 ` [PATCH v3 20/23] mmc: mtk-sd: add pad control settings for MediaTek MT7620/MT76x8 SoCs Weijie Gao
2020-11-09 9:00 ` Stefan Roese
2020-11-09 9:16 ` Weijie Gao
2020-11-09 8:28 ` [PATCH v3 21/23] mmc: mtk-sd: assign plat->cfg.f_max with a correct value Weijie Gao
2020-11-09 9:00 ` Stefan Roese [this message]
2020-11-09 8:28 ` [PATCH v3 22/23] reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag Weijie Gao
2020-11-09 9:01 ` Stefan Roese
2020-11-09 8:28 ` [PATCH v3 23/23] MAINTAINERS: add maintainer for MediaTek MIPS platform Weijie Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2bfdfc0-7eea-3202-64bb-e5a95e5b690f@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox