All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: ralf@linux-mips.org, jhogan@kernel.org
Cc: john@phrozen.org, dev@kresin.me, linux-mips@linux-mips.org,
	martin.blumenstingl@googlemail.com
Subject: [PATCH 2/3] MIPS: lantiq: enable AHB Bus for USB
Date: Sun, 11 Mar 2018 18:41:22 +0100	[thread overview]
Message-ID: <20180311174123.2578-2-hauke@hauke-m.de> (raw)
In-Reply-To: <20180311174123.2578-1-hauke@hauke-m.de>

From: Mathias Kresin <dev@kresin.me>

On Danube and AR9 the USB core is connected to the AHB bus, hence we need
to enable the AHB Bus as well.

Fixes: dea54fbad332 ("phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module")
Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 arch/mips/lantiq/xway/sysctrl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c
index f11f1dd10493..e0af39b33e28 100644
--- a/arch/mips/lantiq/xway/sysctrl.c
+++ b/arch/mips/lantiq/xway/sysctrl.c
@@ -549,9 +549,9 @@ void __init ltq_soc_init(void)
 		clkdev_add_static(ltq_ar9_cpu_hz(), ltq_ar9_fpi_hz(),
 				ltq_ar9_fpi_hz(), CLOCK_250M);
 		clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P);
-		clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0);
+		clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM);
 		clkdev_add_pmu("1f203034.usb2-phy", "phy", 1, 0, PMU_USB1_P);
-		clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1);
+		clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1 | PMU_AHBM);
 		clkdev_add_pmu("1e180000.etop", "switch", 1, 0, PMU_SWITCH);
 		clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO);
 		clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU);
@@ -560,7 +560,7 @@ void __init ltq_soc_init(void)
 	} else {
 		clkdev_add_static(ltq_danube_cpu_hz(), ltq_danube_fpi_hz(),
 				ltq_danube_fpi_hz(), ltq_danube_pp32_hz());
-		clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0);
+		clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM);
 		clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P);
 		clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO);
 		clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU);
-- 
2.11.0

  reply	other threads:[~2018-03-11 17:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-11 17:41 [PATCH 1/3] MIPS: lantiq: fix danube usb clock Hauke Mehrtens
2018-03-11 17:41 ` Hauke Mehrtens [this message]
2018-03-12 20:41   ` [PATCH 2/3] MIPS: lantiq: enable AHB Bus for USB Martin Blumenstingl
2018-03-12 21:17   ` James Hogan
2018-03-12 21:29     ` Martin Blumenstingl
2018-03-12 21:38       ` Hauke Mehrtens
2018-03-12 21:44         ` James Hogan
2018-03-12 21:27   ` Hauke Mehrtens
2018-03-11 17:41 ` [PATCH 3/3] MIPS: lantiq: ase: Enable MFD_SYSCON Hauke Mehrtens
2018-03-12 20:39   ` Martin Blumenstingl
2018-03-12 21:27   ` Hauke Mehrtens
2018-03-12 21:39   ` James Hogan
2018-03-13 22:40     ` Hauke Mehrtens
2018-03-14 11:45       ` James Hogan
2018-03-14 11:45         ` James Hogan
2018-03-12 20:39 ` [PATCH 1/3] MIPS: lantiq: fix danube usb clock Martin Blumenstingl
2018-03-12 21:27 ` Hauke Mehrtens

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=20180311174123.2578-2-hauke@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=dev@kresin.me \
    --cc=jhogan@kernel.org \
    --cc=john@phrozen.org \
    --cc=linux-mips@linux-mips.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=ralf@linux-mips.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 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.