All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Tim Harvey <tharvey@gateworks.com>, Tom Rini <trini@konsulko.com>,
	Lukasz Majewski <lukma@denx.de>,
	Sean Anderson <seanga2@gmail.com>,
	Sumit Garg <sumit.garg@linaro.org>,
	Fabio Estevam <festevam@gmail.com>,
	Martyn Welch <martyn.welch@collabora.com>,
	Simon Glass <sjg@chromium.org>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v2 1/3] clk: imx8mm: Add support for PCIe clocks
Date: Thu, 18 Apr 2024 20:13:32 +0200	[thread overview]
Message-ID: <b47af088-17e7-4a28-9d1d-dbbd0d4f5dca@denx.de> (raw)
In-Reply-To: <20240418175612.4068609-1-tharvey@gateworks.com>

On 4/18/24 7:56 PM, Tim Harvey wrote:
> Add support for PCIe clocks required to enable PCIe support on
> iMX8MM SoC.
> 
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
> v2: no changes
> ---
>   drivers/clk/imx/clk-imx8mm.c | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
> 
> diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c
> index b5c253e49663..c2f01b385201 100644
> --- a/drivers/clk/imx/clk-imx8mm.c
> +++ b/drivers/clk/imx/clk-imx8mm.c
> @@ -66,6 +66,15 @@ static const char *imx8mm_i2c3_sels[] = {"clock-osc-24m", "sys_pll1_160m", "sys_
>   static const char *imx8mm_i2c4_sels[] = {"clock-osc-24m", "sys_pll1_160m", "sys_pll2_50m", "sys_pll3_out", "audio_pll1_out",
>   					 "video_pll1_out", "audio_pll2_out", "sys_pll1_133m", };
>   
> +static const char *imx8mm_pcie1_ctrl_sels[] = {"clock-osc-24m", "sys_pll2_250m", "sys_pll2_200m", "sys_pll1_266m",
> +					       "sys_pll1_800m", "sys_pll2_500m", "sys_pll2_333m", "sys_pll3_out", };
> +
> +static const char *imx8mm_pcie1_phy_sels[] = {"clock-osc-24m", "sys_pll2_100m", "sys_pll2_500m", "clk_ext1", "clk_ext2",
> +					      "clk_ext3", "clk_ext4", "sys_pll1_400m", };
> +
> +static const char *imx8mm_pcie1_aux_sels[] = {"clock-osc-24m", "sys_pll2_200m", "sys_pll2_50m", "sys_pll3_out",
> +					      "sys_pll2_100m", "sys_pll1_80m", "sys_pll1_160m", "sys_pll1_200m", };
> +
>   #ifndef CONFIG_SPL_BUILD
>   static const char *imx8mm_pwm1_sels[] = {"clock-osc-24m", "sys_pll2_100m", "sys_pll1_160m", "sys_pll1_40m",
>   					 "sys_pll3_out", "clk_ext1", "sys_pll1_80m", "video_pll1_out", };
> @@ -256,6 +265,15 @@ static int imx8mm_clk_probe(struct udevice *dev)
>   		imx8m_clk_composite("usb_bus", imx8mm_usb_bus_sels, base + 0x8b80));
>   
>   	/* IP */
> +	clk_dm(IMX8MM_CLK_PCIE1_CTRL,
> +	       imx8m_clk_composite("pcie1_ctrl", imx8mm_pcie1_ctrl_sels,
> +				   base + 0xa300));
> +	clk_dm(IMX8MM_CLK_PCIE1_PHY,
> +	       imx8m_clk_composite("pcie1_phy", imx8mm_pcie1_phy_sels,
> +				   base + 0xa380));
> +	clk_dm(IMX8MM_CLK_PCIE1_AUX,
> +	       imx8m_clk_composite("pcie1_aux", imx8mm_pcie1_aux_sels,
> +				   base + 0xa400));

Maybe this should be behind IS_ENABLED() like the SPI clock to avoid 
growth of SPL ?

  parent reply	other threads:[~2024-04-18 18:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 17:56 [PATCH v2 1/3] clk: imx8mm: Add support for PCIe clocks Tim Harvey
2024-04-18 17:56 ` [PATCH v2 2/3] pci: dw_imx: add support for IMX8MM Tim Harvey
2024-04-18 18:12   ` Marek Vasut
2024-04-18 17:56 ` [PATCH v2 3/3] imx8mm_venice_defconfig: Enable PCIe/NVMe support Tim Harvey
2024-04-18 18:13 ` Marek Vasut [this message]
2024-04-18 18:24   ` [PATCH v2 1/3] clk: imx8mm: Add support for PCIe clocks Tim Harvey
2024-04-18 18:40     ` Marek Vasut

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=b47af088-17e7-4a28-9d1d-dbbd0d4f5dca@denx.de \
    --to=marex@denx.de \
    --cc=festevam@gmail.com \
    --cc=lukma@denx.de \
    --cc=martyn.welch@collabora.com \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=tharvey@gateworks.com \
    --cc=trini@konsulko.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.