From: Patrice CHOTARD <patrice.chotard@st.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Russell King <linux@armlinux.org.uk>,
Ulf Hansson <ulf.hansson@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
Alexandre TORGUE <alexandre.torgue@st.com>,
linux-mmc <linux-mmc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-clk <linux-clk@vger.kernel.org>,
"Linux ARM" <linux-arm-kernel@lists.infradead.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Andrea Merello <andrea.merello@gmail.com>
Subject: Re: [PATCH 04/14] mmc: mmci: Add STM32 variant
Date: Mon, 15 Jan 2018 17:17:54 +0000 [thread overview]
Message-ID: <ce14077b-2b8b-f8a7-2107-78b1d9dcab27@st.com> (raw)
In-Reply-To: <CACRpkdYVDpmEmrF=Zk1zX8RCRnPDieTgPuCen6KQ4ttFpAm+Yg@mail.gmail.com>
Hi Linus
On 01/15/2018 02:13 AM, Linus Walleij wrote:
> On Fri, Jan 12, 2018 at 1:15 PM, <patrice.chotard@st.com> wrote:
>
>> From: Patrice Chotard <patrice.chotard@st.com>
>>
>> STM32F4 and STM32F7 MCUs has a SDIO controller that looks like
>> an ARM pl810.
>
> PL180 you mean. Ulf can fix while applying.
I need to send a v2, i will fix it.
>
>> This patch adds the STM32 variant so that mmci driver supports it.
>>
>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
>
> (...)
>> +static struct variant_data variant_stm32 = {
>> + .fifosize = 32 * 4,
>> + .fifohalfsize = 8 * 4,
>> + .clkreg = MCI_CLK_ENABLE,
>> + .clkreg_enable = MCI_ST_UX500_HWFCEN,
>
> If the asic designed derived this from ux500 I guess it is proper.
>
>> + .clkreg_8bit_bus_enable = MCI_ST_8BIT_BUS,
>> + .clkreg_neg_edge_enable = MCI_ST_UX500_NEG_EDGE,
>> + .datalength_bits = 24,
>> + .datactrl_mask_sdio = MCI_DPSM_ST_SDIOEN,
>> + .st_sdio = true,
>
> Did you test SDIO? I think we lack features for that.
no, the board accept only micro SD card, so only MMC mode can be tested.
>
>> + {
>> + .id = 0x00880180,
>> + .mask = 0x00ffffff,
>> + .data = &variant_stm32,
>> + },
>
> Since ux500 was 480180 I wonder what variants 5,6,7 are...
What is the rule to define the id ? for ST Micro variants we got the
list below :
.id = 0x00180180, u300
.id = 0x10180180, nomadik
.id = 0x00280180, nomadik
.id = 0x00480180, ux500
.id = 0x10480180, ux500v2
.id = 0x00880180, variant_stm32
I simply update the sixth digit for stm32 variant.
Patrice
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Yours,
> Linus Walleij
>
next prev parent reply other threads:[~2018-01-15 17:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 12:15 [PATCH 00/14] Add MMCI support for STM32F SoCs family patrice.chotard
2018-01-12 12:15 ` [PATCH 01/14] mmc: mmci: Don't pretend all variants to have MMCIMASK1 register patrice.chotard
2018-01-15 1:01 ` Linus Walleij
2018-01-12 12:15 ` [PATCH 02/14] mmc: mmci: Don't pretend all variants to have MCI_STARBITERR flag patrice.chotard
2018-01-15 1:03 ` Linus Walleij
2018-01-15 12:32 ` Ulf Hansson
2018-01-15 17:27 ` Patrice CHOTARD
2018-01-12 12:15 ` [PATCH 03/14] mmc: mmci: Add support for setting pad type via pinctrl patrice.chotard
2018-01-15 1:07 ` Linus Walleij
2018-01-15 12:43 ` Ulf Hansson
2018-01-15 17:42 ` Patrice CHOTARD
2018-01-12 12:15 ` [PATCH 04/14] mmc: mmci: Add STM32 variant patrice.chotard
2018-01-15 1:13 ` Linus Walleij
2018-01-15 17:17 ` Patrice CHOTARD [this message]
2018-01-16 7:38 ` Linus Walleij
2018-01-12 12:15 ` [PATCH 05/14] ARM: dts: stm32: Add SDIO controller for stm32f746 patrice.chotard
2018-01-12 12:16 ` [PATCH 06/14] ARM: dts: stm32: Add SDIO controller for stm32f429 patrice.chotard
2018-01-12 12:16 ` [PATCH 07/14] ARM: dts: stm32: Add pin map for SDIO controller on stm32f4 patrice.chotard
2018-01-12 12:16 ` [PATCH 08/14] ARM: dts: stm32: Enable SDIO controller on stm32f469 disco board patrice.chotard
2018-01-12 12:16 ` [PATCH 09/14] ARM: dts: stm32: Enable SDIO controller on stm32429i-eval board patrice.chotard
2018-01-12 12:16 ` [PATCH 10/14] ARM: stm32: Add AMBA support for STM32F4 and STM32F7 SoCs patrice.chotard
2018-01-12 12:16 ` [PATCH 11/14] ARM: configs: stm32: Enable MMC_ARMMMCI support patrice.chotard
2018-01-12 12:16 ` [PATCH 12/14] ARM: configs: stm32: Enable EXT3_FS support patrice.chotard
2018-01-12 12:16 ` [PATCH 13/14] clk: stm32: Add clk entry for SDMMC2 on stm32F769 patrice.chotard
2018-01-12 18:52 ` Stephen Boyd
2018-01-12 12:16 ` [PATCH 14/14] gpio: stmpe: i2c transfer are forbiden in atomic context patrice.chotard
2018-01-15 9:57 ` Linus Walleij
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=ce14077b-2b8b-f8a7-2107-78b1d9dcab27@st.com \
--to=patrice.chotard@st.com \
--cc=alexandre.torgue@st.com \
--cc=andrea.merello@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=ulf.hansson@linaro.org \
/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
all inboxes | Powered by JetHome®