From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/3] usb: tegra: combine header file
Date: Tue, 18 Feb 2014 15:49:53 -0700 [thread overview]
Message-ID: <5303E391.8090105@wwwdotorg.org> (raw)
In-Reply-To: <bf594b07bfc6b72caddd2253afe65221@agner.ch>
On 02/18/2014 03:20 PM, Stefan Agner wrote:
> Am 2014-02-18 20:27, schrieb Stephen Warren:
>> On 02/16/2014 12:50 PM, Stefan Agner wrote:
>>> +#if defined(CONFIG_TEGRA20) || defined(CONFIG_TEGRA30)
>>> +/* USB2_IF_ULPI_TIMING_CTRL_0 */
>>> +#define ULPI_OUTPUT_PINMUX_BYP (1 << 10)
>>> +#define ULPI_CLKOUT_PINMUX_BYP (1 << 11)
>>> +
>>> +/* USB2_IF_ULPI_TIMING_CTRL_1 */
>>> +#define ULPI_DATA_TRIMMER_LOAD (1 << 0)
>>> +#define ULPI_DATA_TRIMMER_SEL(x) (((x) & 0x7) << 1)
>>> +#define ULPI_STPDIRNXT_TRIMMER_LOAD (1 << 16)
>>> +#define ULPI_STPDIRNXT_TRIMMER_SEL(x) (((x) & 0x7) << 17)
>>> +#define ULPI_DIR_TRIMMER_LOAD (1 << 24)
>>> +#define ULPI_DIR_TRIMMER_SEL(x) (((x) & 0x7) << 25)
>>> +#endif
>>
>> Are those defines really Tegra20/30-only, or were they simply omitted
>> from the Tegra114 header because they aren't used by the driver?
>>
>> Actually, if these aren't used, is it even worth including this text in
>> the header? Perhaps delete unused text in a separate patch before this
>> one, so that this patch simply moves text between files?
>
> I don't have access to a Tegra114 TRM right now, but I can it be that
> the ULPI PHY is not in place there? If its not used in the driver, I
> guess we can remove those defines completely...
Looking further, all those values are used, but by a piece of code
that's #ifdef CONFIG_USB_ULPI, and that define is only enabled on a
couple of Tegra20 boards.
Looking at the TRMs, both the Tegra20/30 TRMs mention the register that
contains these fields (but doesn't document the register:-/), but
neither the Tegra114/124 TRMs mention the same registers, so perhaps
those values are Tegra20/30-only, so the ifdef you have is fine.
prev parent reply other threads:[~2014-02-18 22:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 19:50 [U-Boot] [PATCH v3 0/3] ubs: tegra: two fixes and cleanup Stefan Agner
2014-02-16 19:50 ` [U-Boot] [PATCH v3 1/3] usb: tegra: fix USB2 powerdown for Tegra30 and later Stefan Agner
2014-02-18 18:23 ` Stephen Warren
2014-02-16 19:50 ` [U-Boot] [PATCH v3 2/3] usb: tegra: fix PHY configuration Stefan Agner
2014-02-18 18:44 ` Stephen Warren
2014-02-16 19:50 ` [U-Boot] [PATCH v3 3/3] usb: tegra: combine header file Stefan Agner
2014-02-18 19:27 ` Stephen Warren
2014-02-18 22:20 ` Stefan Agner
2014-02-18 22:49 ` Stephen Warren [this message]
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=5303E391.8090105@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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.