public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: dirk.behme@de•bosch.com (Dirk Behme)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 0/3] ARM: imx6: fix up buggy CCM_CSCMR1 register
Date: Fri, 12 Jul 2013 11:15:43 +0200	[thread overview]
Message-ID: <51DFC93F.4020209@de.bosch.com> (raw)
In-Reply-To: <1373469722-32514-1-git-send-email-shawn.guo@linaro.org>

On 10.07.2013 17:21, Shawn Guo wrote:
> There is a defect in bits 22 and 21 of i.MX6 CCM_CSCMR1 register.  These
> two bits are inverted between read and write.  That said, bit field
> CCM_CSCMR1[22-20] (aclk/emi_podf on imx6q/dl and lcdif_pix_podf on
> imx6sl) will be something as below between read and write.
>
>    read    write    divider
>     000     110       1
>     001     111       2
>     010     100       3
>     011     101       4
>     100     010       5
>     101     011       6
>     110     000       7
>     111     001       8
>
> To work around this hardware defect, every single read/modify/write
> sequence on the register will require a fix-up (invert bits 22 and 21)
> before writing the value into register.  As there are dividers and
> multiplexers defined in the register, we choose to inherit the basic
> clk-divider and clk-mux and override the functions which writes register
> with a fix-up hooked in.
>
> Shawn
>
> Liu Ying (3):
>    ARM: imx: add common clock support for fixup div
>    ARM: imx: add common clock support for fixup mux
>    ARM: imx6: change some clocks to fixup clocks
>
>   arch/arm/mach-imx/Makefile        |    3 +-
>   arch/arm/mach-imx/clk-fixup-div.c |  129 +++++++++++++++++++++++++++++++++++++
>   arch/arm/mach-imx/clk-fixup-mux.c |  107 ++++++++++++++++++++++++++++++
>   arch/arm/mach-imx/clk-imx6q.c     |   24 +++----
>   arch/arm/mach-imx/clk-imx6sl.c    |   20 +++---
>   arch/arm/mach-imx/clk.c           |   26 ++++++++
>   arch/arm/mach-imx/clk.h           |   10 +++
>   7 files changed, 296 insertions(+), 23 deletions(-)
>   create mode 100644 arch/arm/mach-imx/clk-fixup-div.c
>   create mode 100644 arch/arm/mach-imx/clk-fixup-mux.c

For the whole series:

Acked-by: Dirk Behme <dirk.behme@de•bosch.com>

Thanks

Dirk

      parent reply	other threads:[~2013-07-12  9:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-10 15:21 [PATCH 0/3] ARM: imx6: fix up buggy CCM_CSCMR1 register Shawn Guo
2013-07-10 15:22 ` [PATCH 1/3] ARM: imx: add common clock support for fixup div Shawn Guo
2013-07-10 15:22 ` [PATCH 2/3] ARM: imx: add common clock support for fixup mux Shawn Guo
2013-07-10 15:22 ` [PATCH 3/3] ARM: imx6: change some clocks to fixup clocks Shawn Guo
2013-07-12  9:15 ` Dirk Behme [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=51DFC93F.4020209@de.bosch.com \
    --to=dirk.behme@de$(echo .)bosch.com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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