USB: Armada100: Add UTMI PHY interface driver
PATCH 1/3 USB: Armada100: Add UTMI PHY interface driver
In reply to a message not in the archiveQuoted 7 lines · ----- "Prafulla Wadaskar
Review
Quoted 3 lines
(quoted diff) +3
-0+ +/* MPMU Clocks */ +#define MPMU_EN_ALL_CLKS 0x1EFFFFTurning on all clocks is not logical to enable this support, only relevant clock necessary for this components SHOULD BE enabled.
Quoted 8 lines
Enabling clocks for unused peripherals/components may result in unnecessarily extra power consumption
Otherwise ack for rest of the patch
Regards..
Prafulla . . .
I followed programming guidlines as per Armada_16x software manual.
section: 20.4.3.1
snip of pseudo code from Programming guidlines section:
[...snip...]
print "******main PMU turn on all clocks\n"
set val *(unsigned long *)PMUM_ACGR=0x001EFFFF
print "******PMUap USBCLK Reset Control\n"
set val *(unsigned long *)PMUA_USB_CLK_RES_CTRL=0x1B print "******UTMI ID\n"
eval /hex *(unsigned long *)UTMI_REVISION
[...snip...]
There is nothing mentioned in specific which clock is used/required by USB host controller.
Regards,
Ajay Bhargav
PATCH 1/3 USB: Armada100: Add UTMI PHY interface driver
Dear Ajay Bhargav,
Quoted 5 lines · In message <[email protected]>…
Quoted 5 lines
Quoted 2 lines
+#define
MPMU_EN_ALL_CLKS0x1EFFFFTurning on all clocks is not logical to enable this support, only relevant clock necessary for this components SHOULD BE enabled.
...
Quoted 5 lines
I followed programming guidlines as per
Armada_16xsoftware manual.
section: 20.4.3.1
snip of pseudo code from Programming guidlines section:
[...snip...]
print "******main PMU turn on all clocks\n"
This is a deficiency of this specific document then. Prafulla is
right: please enable only the really needed clocks. I guess there is better documentation that that pseudo code.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Success covers a multitude of blunders." - George Bernard Shaw
PATCH 1/3 USB: Armada100: Add UTMI PHY interface driver
Quoted 17 lines · ----- "Wolfgang Denk
Dear Ajay Bhargav,
In message <[email protected]> you
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 2 lines
+#define
MPMU_EN_ALL_CLKS0x1EFFFFTurning on all clocks is not logical to enable this support, only relevant clock necessary for this components SHOULD BE enabled.
...
Quoted 5 lines
I followed programming guidlines as per
Armada_16xsoftware manual.
section: 20.4.3.1
snip of pseudo code from Programming guidlines section:
[...snip...]
print "******main PMU turn on all clocks\n"
Quoted 8 lines
This is a deficiency of this specific document then. Prafulla is
right: please enable only the really needed clocks. I guess there is better documentation that that pseudo code.Best regards,
Wolfgang Denk
Thanks for feedback... I will look for better documentation then..
Regards,
Ajay Bhargav