u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Sumit Garg <sumit.garg@linaro.org>
To: Robert Marko <robert.marko@sartura.hr>
Cc: u-boot@lists.denx.de, rfried.dev@gmail.com,
	jorge.ramirez.ortiz@gmail.com,  sjg@chromium.org,
	trini@konsulko.com, stephan@gerhold.net, mario.six@gdsys.cc,
	 dsankouski@gmail.com, luka.kovacic@sartura.hr,
	luka.perkov@sartura.hr,  jh80.chung@samsung.com,
	nicolas.dechesne@linaro.org, vinod.koul@linaro.org,
	 mworsfold@impinj.com, lgillham@impinj.com,
	daniel.thompson@linaro.org,  pbrobinson@gmail.com
Subject: Re: [PATCH 04/13] reset: qcom: Add support for QCS404 SoC reset table
Date: Tue, 9 Aug 2022 18:55:09 +0530	[thread overview]
Message-ID: <CAFA6WYP7HM6=_64CqruhsqtwB=5Cnb3QzsQ6eJDdoU-VK62v=A@mail.gmail.com> (raw)
In-Reply-To: <CA+HBbNGC68dOYAPu_JBOht++P01wLSqwh6Cj6UJ1dCwgGPjcZA@mail.gmail.com>

Hi Robert,

Thanks for your review.

On Sat, 6 Aug 2022 at 13:11, Robert Marko <robert.marko@sartura.hr> wrote:
>
> On Thu, Aug 4, 2022 at 4:28 PM Sumit Garg <sumit.garg@linaro.org> wrote:
> >
> > Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> > ---
> >  drivers/reset/reset-qcom.c | 30 ++++++++++++++++++++++++++++++
> >  1 file changed, 30 insertions(+)
> >
> > diff --git a/drivers/reset/reset-qcom.c b/drivers/reset/reset-qcom.c
> > index 40f436ede4..94315e76d5 100644
> > --- a/drivers/reset/reset-qcom.c
> > +++ b/drivers/reset/reset-qcom.c
> > @@ -102,6 +102,35 @@ static const struct qcom_reset_map gcc_qcom_resets[] = {
> >  };
> >  #endif
> >
> > +#ifdef CONFIG_TARGET_QCS404EVB
>
> Hi,
> Why not pass the reset maps via match data per compatible?
>

Yeah but that won't allow me to get rid of this "#ifdef" since
bindings header (qcom,gcc-qcs404.h) and corresponding reset table
needs to be included under it due to overlapping reset IDs. So it
won't add any value.

-Sumit

> Regards,
> Robert
>
> > +#include <dt-bindings/clock/qcom,gcc-qcs404.h>
> > +static const struct qcom_reset_map gcc_qcom_resets[] = {
> > +       [GCC_GENI_IR_BCR] = { 0x0F000 },
> > +       [GCC_CDSP_RESTART] = { 0x18000 },
> > +       [GCC_USB_HS_BCR] = { 0x41000 },
> > +       [GCC_USB2_HS_PHY_ONLY_BCR] = { 0x41034 },
> > +       [GCC_QUSB2_PHY_BCR] = { 0x4103c },
> > +       [GCC_USB_HS_PHY_CFG_AHB_BCR] = { 0x0000c, 1 },
> > +       [GCC_USB2A_PHY_BCR] = { 0x0000c, 0 },
> > +       [GCC_USB3_PHY_BCR] = { 0x39004 },
> > +       [GCC_USB_30_BCR] = { 0x39000 },
> > +       [GCC_USB3PHY_PHY_BCR] = { 0x39008 },
> > +       [GCC_PCIE_0_BCR] = { 0x3e000 },
> > +       [GCC_PCIE_0_PHY_BCR] = { 0x3e004 },
> > +       [GCC_PCIE_0_LINK_DOWN_BCR] = { 0x3e038 },
> > +       [GCC_PCIEPHY_0_PHY_BCR] = { 0x3e03c },
> > +       [GCC_PCIE_0_AXI_MASTER_STICKY_ARES] = { 0x3e040, 6},
> > +       [GCC_PCIE_0_AHB_ARES] = { 0x3e040, 5 },
> > +       [GCC_PCIE_0_AXI_SLAVE_ARES] = { 0x3e040, 4 },
> > +       [GCC_PCIE_0_AXI_MASTER_ARES] = { 0x3e040, 3 },
> > +       [GCC_PCIE_0_CORE_STICKY_ARES] = { 0x3e040, 2 },
> > +       [GCC_PCIE_0_SLEEP_ARES] = { 0x3e040, 1 },
> > +       [GCC_PCIE_0_PIPE_ARES] = { 0x3e040, 0 },
> > +       [GCC_EMAC_BCR] = { 0x4e000 },
> > +       [GCC_WDSP_RESTART] = {0x19000},
> > +};
> > +#endif
> > +
> >  static int qcom_reset_assert(struct reset_ctl *rst)
> >  {
> >         struct qcom_reset_priv *priv = dev_get_priv(rst->dev);
> > @@ -141,6 +170,7 @@ static const struct reset_ops qcom_reset_ops = {
> >
> >  static const struct udevice_id qcom_reset_ids[] = {
> >         { .compatible = "qcom,gcc-reset-ipq4019" },
> > +       { .compatible = "qcom,gcc-reset-qcs404" },
> >         { }
> >  };
> >
> > --
> > 2.25.1
> >
>
>
> --
> Robert Marko
> Staff Embedded Linux Engineer
> Sartura Ltd.
> Lendavska ulica 16a
> 10000 Zagreb, Croatia
> Email: robert.marko@sartura.hr
> Web: www.sartura.hr

  reply	other threads:[~2022-08-09 13:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04 14:27 [PATCH 00/13] USB support for QCS404 SoC Sumit Garg
2022-08-04 14:27 ` [PATCH 01/13] phy: Move qcom SoCs specific phy drivers to qcom folder Sumit Garg
2022-08-26 18:49   ` Tom Rini
2022-08-04 14:27 ` [PATCH 02/13] phy: Add support for drivers to enable USB on QCS404 SoC Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 03/13] reset: Convert ipq4019 driver to a generic Qcom driver Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 04/13] reset: qcom: Add support for QCS404 SoC reset table Sumit Garg
2022-08-06  7:41   ` Robert Marko
2022-08-09 13:25     ` Sumit Garg [this message]
2022-08-09 13:27       ` Robert Marko
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 05/13] dts: qcs404-evb: Add reset controller node Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 06/13] clocks: qcom: Add clock enable callback support Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 07/13] clocks: qcs404: Add support for USB clocks Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 08/13] dts: qcs404-evb: Add USB controller and PHY nodes Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 09/13] pmic: Convert pm8916 driver to a generic Qcom PMIC driver Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 10/13] gpio: qcom_pmic: Add support for GPIO LV/MV subtype Sumit Garg
2022-08-26 18:50   ` Tom Rini
2022-08-04 14:27 ` [PATCH 11/13] dts: qcs404-evb: Add PMIC GPIO controller node Sumit Garg
2022-08-26 18:51   ` Tom Rini
2022-08-04 14:27 ` [PATCH 12/13] board: qcs404-evb: Enable USB3 specific PMIC GPIO Sumit Garg
2022-08-26 18:51   ` Tom Rini
2022-08-04 14:27 ` [PATCH 13/13] qcs404evb_defconfig: Enable USB configs Sumit Garg
2022-08-26 18:51   ` Tom Rini
2022-08-16  8:09 ` [PATCH 00/13] USB support for QCS404 SoC Sumit Garg

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='CAFA6WYP7HM6=_64CqruhsqtwB=5Cnb3QzsQ6eJDdoU-VK62v=A@mail.gmail.com' \
    --to=sumit.garg@linaro.org \
    --cc=daniel.thompson@linaro.org \
    --cc=dsankouski@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=jorge.ramirez.ortiz@gmail.com \
    --cc=lgillham@impinj.com \
    --cc=luka.kovacic@sartura.hr \
    --cc=luka.perkov@sartura.hr \
    --cc=mario.six@gdsys.cc \
    --cc=mworsfold@impinj.com \
    --cc=nicolas.dechesne@linaro.org \
    --cc=pbrobinson@gmail.com \
    --cc=rfried.dev@gmail.com \
    --cc=robert.marko@sartura.hr \
    --cc=sjg@chromium.org \
    --cc=stephan@gerhold.net \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vinod.koul@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;
as well as URLs for NNTP newsgroup(s).