All of lore.kernel.org
 help / color / mirror / Atom feed
From: Offouga Joris <offougajoris@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization
Date: Thu, 14 Feb 2019 13:15:42 +0100	[thread overview]
Message-ID: <E8F431DD-F32D-4F75-8FDD-73EB43428E2E@gmail.com> (raw)
In-Reply-To: <CAOMZO5CV=iDRriP27BG16j942bs4VgGc6fwhsbWOow1x-ifJvQ@mail.gmail.com>

Hi Fabio 

I am preparing the next and I hope to be able to send it soon. give me the instructions to follow and I will add them

Joris 

> On 14 Feb 2019, at 13:14, Fabio Estevam <festevam@gmail.com> wrote:
> 
>> On Sun, Jan 20, 2019 at 7:52 PM Joris Offouga <offougajoris@gmail.com> wrote:
>> 
>> Furthermore this patch create un alias for mmc0 to usdch3 because before the
>> convertion he was the only one described in the pico-imx7d.c.
>> 
>> Signed-off-by: Joris Offouga <offougajoris@gmail.com>
>> ---
>> arch/arm/dts/imx7d-pico-pi.dts           |  4 ++++
>> board/technexion/pico-imx7d/pico-imx7d.c | 36 --------------------------------
>> configs/pico-pi-imx7d_defconfig          |  1 +
>> 3 files changed, 5 insertions(+), 36 deletions(-)
>> 
>> diff --git a/arch/arm/dts/imx7d-pico-pi.dts b/arch/arm/dts/imx7d-pico-pi.dts
>> index 66ca590..d4aca96 100644
>> --- a/arch/arm/dts/imx7d-pico-pi.dts
>> +++ b/arch/arm/dts/imx7d-pico-pi.dts
>> @@ -8,6 +8,10 @@
>>        model = "TechNexion PICO-IMX7D Board and PI baseboard";
>>        compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
>> 
>> +       aliases {
>> +               mmc0 = &usdhc3;
>> +       };
>> +
>>        leds {
>>                compatible = "gpio-leds";
>>                pinctrl-names = "default";
>> diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
>> index 53e1469..48e90b0 100644
>> --- a/board/technexion/pico-imx7d/pico-imx7d.c
>> +++ b/board/technexion/pico-imx7d/pico-imx7d.c
>> @@ -28,9 +28,6 @@ DECLARE_GLOBAL_DATA_PTR;
>> #define UART_PAD_CTRL  (PAD_CTL_DSE_3P3V_49OHM | \
>>        PAD_CTL_PUS_PU100KOHM | PAD_CTL_HYS)
>> 
>> -#define USDHC_PAD_CTRL (PAD_CTL_DSE_3P3V_32OHM | PAD_CTL_SRE_SLOW | \
>> -       PAD_CTL_HYS | PAD_CTL_PUE | PAD_CTL_PUS_PU47KOHM)
>> -
>> #define ENET_PAD_CTRL  (PAD_CTL_PUS_PU100KOHM | PAD_CTL_DSE_3P3V_49OHM)
>> #define ENET_PAD_CTRL_MII  (PAD_CTL_DSE_3P3V_32OHM)
>> 
>> @@ -118,20 +115,6 @@ static iomux_v3_cfg_t const uart5_pads[] = {
>>        MX7D_PAD_I2C4_SDA__UART5_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
>> };
>> 
>> -static iomux_v3_cfg_t const usdhc3_emmc_pads[] = {
>> -       MX7D_PAD_SD3_CLK__SD3_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_CMD__SD3_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA0__SD3_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA1__SD3_DATA1 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA2__SD3_DATA2 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA3__SD3_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA4__SD3_DATA4 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA5__SD3_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA6__SD3_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_SD3_DATA7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -       MX7D_PAD_GPIO1_IO14__GPIO1_IO14 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
>> -};
>> -
>> #ifdef CONFIG_FEC_MXC
>> static iomux_v3_cfg_t const fec1_pads[] = {
>>        MX7D_PAD_SD2_CD_B__ENET1_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL_MII),
>> @@ -216,25 +199,6 @@ static void setup_iomux_uart(void)
>>        imx_iomux_v3_setup_multiple_pads(uart5_pads, ARRAY_SIZE(uart5_pads));
>> }
>> 
>> -static struct fsl_esdhc_cfg usdhc_cfg[1] = {
>> -       {USDHC3_BASE_ADDR},
>> -};
>> -
>> -int board_mmc_getcd(struct mmc *mmc)
>> -{
>> -       /* Assume uSDHC3 emmc is always present */
>> -       return 1;
>> -}
>> -
>> -int board_mmc_init(bd_t *bis)
>> -{
>> -       imx_iomux_v3_setup_multiple_pads(
>> -                       usdhc3_emmc_pads, ARRAY_SIZE(usdhc3_emmc_pads));
>> -       usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
>> -
>> -       return fsl_esdhc_initialize(bis, &usdhc_cfg[0]);
>> -}
>> -
>> int board_early_init_f(void)
>> {
>>        setup_iomux_uart();
>> diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig
>> index 80f5739..0d1c56b 100644
>> --- a/configs/pico-pi-imx7d_defconfig
>> +++ b/configs/pico-pi-imx7d_defconfig
>> @@ -23,6 +23,7 @@ CONFIG_SPL_USB_HOST_SUPPORT=y
>> CONFIG_SPL_USB_GADGET=y
>> CONFIG_SPL_USB_SDP_SUPPORT=y
>> CONFIG_OF_CONTROL=y
>> +CONFIG_DM_MMC=y
> 
> After converting to the other imx7d pico defconfigs you can add:
> 
> Reviewed-by: Fabio Estevam <festevam@gmail.com>

  reply	other threads:[~2019-02-14 12:15 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-20 21:18 [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM Joris Offouga
2019-01-20 21:18 ` [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts Joris Offouga
2019-01-21  9:52   ` Bryan O'Donoghue
2019-01-21 10:34     ` jorisoffouga
2019-01-21 10:58       ` Bryan O'Donoghue
2019-01-21 12:02         ` Offouga Joris
2019-01-23  9:52           ` Bryan O'Donoghue
     [not found]             ` <607bb985-9974-2a92-0016-4c1c1c0d5552@gmail.com>
     [not found]               ` <ffadab1c-6227-2f5f-ef3a-627f166e976b@linaro.org>
     [not found]                 ` <CABymUCNVGCJEQ-fxOYdp-deKLyP9nknfhYNrGZe8R_4wUQf3jg@mail.gmail.com>
     [not found]                   ` <86f6ef94-e40d-cef0-9b5c-06b960c679af@gmail.com>
     [not found]                     ` <CABymUCNaiAcb0uiVfcCfBkSVv7zbQiEnF1XXbnENgL7J9uO+yg@mail.gmail.com>
     [not found]                       ` <ec0fcbc1-cc2e-13f8-6a50-2cd73ffa6cb4@gmail.com>
     [not found]                         ` <CABymUCOuXMYEvOaxsCe--5+WL4A_TC6jNUHYMqpxJ7k-8Y8AdA@mail.gmail.com>
     [not found]                           ` <9d47c97b-2a98-a828-f473-08b8ba7a9aa7@gmail.com>
     [not found]                             ` <CABymUCNyko5QP__=Og77uk2_3R9CEVkcGPKsbjbX_S1VF5BXJA@mail.gmail.com>
2019-01-29  5:50                               ` Offouga Joris
2019-01-31  1:16             ` Fabio Estevam
2019-01-31  3:59               ` Offouga Joris
2019-01-31 11:36                 ` Otavio Salvador
2019-01-31 11:54                   ` Offouga Joris
2019-01-31 12:39                     ` Otavio Salvador
2019-01-31 15:20                       ` Joris Offouga
2019-02-11 20:09                         ` Fabio Estevam
2019-01-20 21:18 ` [U-Boot] [RFC 2/9] Arm: imx7d-pico: Add DT file hooks Joris Offouga
2019-01-20 21:18 ` [U-Boot] [RFC 3/9] pico-pi-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7 Joris Offouga
2019-02-14 12:12   ` Fabio Estevam
2019-01-20 21:18 ` [U-Boot] [RFC 4/9] arm: imx7d-pico-pi: Convert to DM MMC initialization Joris Offouga
2019-02-14 12:14   ` Fabio Estevam
2019-02-14 12:15     ` Offouga Joris [this message]
2019-02-14 12:58       ` Fabio Estevam
2019-02-14 16:42         ` Joris Offouga
2019-02-14 16:48           ` Fabio Estevam
2019-02-14 22:45             ` Joris Offouga
2019-02-14 23:08               ` Fabio Estevam
2019-02-14 23:27                 ` Joris Offouga
2019-01-20 21:18 ` [U-Boot] [RFC 5/9] pico-pi-imx7d: defconfig: Switch to DM for I2C Joris Offouga
2019-02-14 12:16   ` Fabio Estevam
2019-01-20 21:18 ` [U-Boot] [RFC 6/9] pico-imx7d-pico: defconfig: Switch to DM for UART Joris Offouga
2019-02-14 12:17   ` Fabio Estevam
2019-01-20 21:18 ` [U-Boot] [RFC 7/9] pico-imx7d: Convert to DM PMIC Joris Offouga
2019-02-14 12:20   ` Fabio Estevam
2019-01-20 21:18 ` [U-Boot] [RFC 8/9] arm: pico-pi-imx7d: Convert to DM USB Joris Offouga
2019-01-20 21:18 ` [U-Boot] [RFC 9/9] pico-imx7d: Convert to DM Ethernet Joris Offouga

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=E8F431DD-F32D-4F75-8FDD-73EB43428E2E@gmail.com \
    --to=offougajoris@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.