public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 07/13] ARM: tegra: add/edit headers for Tegra124
Date: Fri, 24 Jan 2014 11:08:36 -0700	[thread overview]
Message-ID: <52E2AC24.70605@wwwdotorg.org> (raw)
In-Reply-To: <20140124152007.GG25720@ulmo.nvidia.com>

On 01/24/2014 08:20 AM, Thierry Reding wrote:
> On Thu, Jan 23, 2014 at 05:42:54PM -0700, Stephen Warren wrote:
> [...]
>> diff --git a/arch/arm/include/asm/arch-tegra/clk_rst.h b/arch/arm/include/asm/arch-tegra/clk_rst.h
> [...]
>> @@ -105,10 +128,10 @@ struct clk_rst_ctlr {
>>  	uint crc_clk_cpug_cmplx;	/* _CLK_CPUG_CMPLX_0,       0x378 */
>>  	uint crc_clk_cpulp_cmplx;	/* _CLK_CPULP_CMPLX_0,      0x37C */
>>  	uint crc_cpu_softrst_ctrl;	/* _CPU_SOFTRST_CTRL_0,     0x380 */
>> -	uint crc_cpu_softrst_ctrl1;	/* _CPU_SOFTRST_CTR1L_0,    0x384 */
>> +	uint crc_cpu_softrst_ctrl1;	/* _CPU_SOFTRST_CTRL1_0,    0x384 */
>>  	uint crc_cpu_softrst_ctrl2;	/* _CPU_SOFTRST_CTRL2_0,    0x388 */
>>  	uint crc_reserved33[9];		/* _reserved_33,        0x38c-3ac */
>> -	uint crc_clk_src_vw[TEGRA_CLK_SOURCES_VW]; /* _G3D2_0..., 0x3b0-0x42c */
>> +	uint crc_clk_src_vw[TEGRA_CLK_SOURCES_VW];	/* 0x3B0-0x42C */
> 
> While at it, perhaps also make the offsets in the comment for
> crc_reserved33 also all caps?

I think I won't change this; it's a pre-existing issue, and "fixing" it
would involve adding a bunch of unrelated diffs to this patch. Besides,
the actual register entries are upper case to match the way the TRM
documents the register names, whereas IIRC the reserved spaces aren't
documented specifically in the TRM, and don't have to match :-)

>> +/* CLK_RST_CONTROLLER_RST_CPUxx_CMPLX_CLR 0x344 */
>> +#define CLR_CPURESET0			(1 << 0)
>> +#define CLR_CPURESET1			(1 << 1)
>> +#define CLR_CPURESET2			(1 << 2)
>> +#define CLR_CPURESET3			(1 << 3)
> [...]
>> +/* CLK_RST_CONTROLLER_CLK_CPU_CMPLX_CLR 0x34c */
>> +#define CLR_CPU3_CLK_STP		(1 << 11)
>> +#define CLR_CPU2_CLK_STP		(1 << 10)
>> +#define CLR_CPU1_CLK_STP		(1 << 9)
>> +#define CLR_CPU0_CLK_STP		(1 << 8)
> 
> Sometimes these are listed in order of increasing bit positions, other
> times they are in order of decreasing bit positions.

Hmmm. The existing files seem to be inconsistent too. I think LSB->MSB
is slightly more prevalent, so I'll try and settle on that, at least for
the lines this patch adds.

  parent reply	other threads:[~2014-01-24 18:08 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24  0:42 [U-Boot] [PATCH V2 01/13] mmc: tegra: support Tegra124 Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 02/13] ARM: tegra: misc cleanups triggered by Tegra124 review Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 03/13] ARM: tegra: enable PLLX only once it's been fully configured Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 04/13] ARM: tegra: remove a conditional for CSITE rate Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 05/13] ARM: tegra: only build __pinmux_nand() when it's needed Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 06/13] ARM: tegra: fix a typo in the tegra114.dtsi Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 07/13] ARM: tegra: add/edit headers for Tegra124 Stephen Warren
2014-01-24 15:20   ` Thierry Reding
2014-01-24 17:46     ` Stephen Warren
2014-01-24 18:08     ` Stephen Warren [this message]
2014-01-24  0:42 ` [U-Boot] [PATCH V2 08/13] ARM: tegra: add SPL/AVP (arm720t) CPU files " Stephen Warren
2014-01-24 15:44   ` Thierry Reding
2014-01-24 17:47     ` Stephen Warren
2014-01-24 18:29     ` Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 09/13] ARM: tegra: Add CPU (armv7) " Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 10/13] ARM: tegra: add common (shared) CPU files Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 11/13] ARM: tegra: add DT files for Tegra124 and Venice2 Stephen Warren
2014-01-24  0:42 ` [U-Boot] [PATCH V2 12/13] ARM: tegra: add Venice2 (Tegra124) board Stephen Warren
2014-01-24  0:43 ` [U-Boot] [PATCH V2 13/13] ARM: tegra: fix "bootp" issue for Tegra124 too Stephen Warren
2014-01-24  6:53   ` Jim Lin
2014-01-27 16:49     ` Stephen Warren
2014-01-24 13:56 ` [U-Boot] [PATCH V2 01/13] mmc: tegra: support Tegra124 Pantelis Antoniou
2014-01-24 16:10 ` Thierry Reding

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=52E2AC24.70605@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox