All of lore.kernel.org
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/5] arm: ls102xa: Remove bit reversing for SCFG registers
Date: Tue, 25 Nov 2014 09:55:04 -0800	[thread overview]
Message-ID: <5474C278.9010007@freescale.com> (raw)
In-Reply-To: <1413530796-12881-2-git-send-email-b18965@freescale.com>

On 10/17/2014 12:26 AM, Alison Wang wrote:
> SCFG_SCFGREVCR is SCFG bit reverse register. This register
> must be written with 0xFFFFFFFF before writing to any other
> SCFG register. Then other SCFG register could be written in
> big-endian mode.
> 
> Address: 157_0000h base + 200h offset = 157_0200h
> Bit   0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15|16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
> W/R                                   SCFGREV
> Reset 0 0 0 0 0 0 0 0 0 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
> 0-31
> SCFGREV SCFG Bit Reverse Control Filed
> 32'h 0000_0000 - No bit reverse is applied
> 32'h FFFF_FFFF - Bit reverse is applied; so 31:0 will be stored/read as
> 0:31
> 
> This patch removes the bit reversing for SCFG registers in
> u-boot. It will be implemented through PBI commands in RCW
> .pbi
> write 0x570200, 0xffffffff
> .end
> So other SCFG register could be written in big-endian mode
> in u-boot or kernel directly.
> 
> Signed-off-by: Alison Wang <alison.wang@freescale.com>
> ---
> Change log:
>  v2: Remove the defines for SCFG_SCFGREVCR_REV and
>      SCFG_SCFGREVCR_NOREV.
> 
>  arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 --
>  board/freescale/ls1021aqds/ls1021aqds.c           | 2 --
>  board/freescale/ls1021atwr/ls1021atwr.c           | 5 -----
>  3 files changed, 9 deletions(-)
> 

Applied to u-boot-fsl-qoriq master. Awaiting upstream. Thanks.

York

  reply	other threads:[~2014-11-25 17:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17  7:26 [U-Boot] [PATCH v2 1/5] arm: ls102xa: Add snoop disable for slave port 0, 1 and 2 Alison Wang
2014-10-17  7:26 ` [U-Boot] [PATCH v2 2/5] arm: ls102xa: Remove bit reversing for SCFG registers Alison Wang
2014-11-25 17:55   ` York Sun [this message]
2014-10-17  7:26 ` [U-Boot] [PATCH v2 3/5] ls102xa: ifc: nor: fix the write issue when bytes unaligned Alison Wang
2014-11-25 17:55   ` York Sun
2014-10-17  7:26 ` [U-Boot] [PATCH v2 4/5] arm: ls102xa: Add SystemID EEPROM support for LS1021ATWR board Alison Wang
2014-11-25 17:56   ` York Sun
2014-10-17  7:26 ` [U-Boot] [PATCH v2 5/5] arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing Alison Wang
2014-11-25 17:56   ` York Sun
2014-11-25 17:54 ` [U-Boot] [PATCH v2 1/5] arm: ls102xa: Add snoop disable for slave port 0, 1 and 2 York Sun

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=5474C278.9010007@freescale.com \
    --to=yorksun@freescale.com \
    --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.