All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v03 1/2] OMAP3+: introduce generic ABB support
Date: Thu, 23 May 2013 11:02:36 +0300	[thread overview]
Message-ID: <519DCD1C.8070701@ti.com> (raw)
In-Reply-To: <20130522205609.GA5603@kahuna>

On 05/22/2013 11:56 PM, Nishanth Menon wrote:
> Hi Andrii,
> We are almost there.. minor comments follow:
> On 11:42-20130521, Andrii Tseglytskyi wrote:
> [...]
>> diff --git a/arch/arm/cpu/armv7/omap5/abb.c b/arch/arm/cpu/armv7/omap5/abb.c
>> new file mode 100644
>> index 0000000..92470be
>> --- /dev/null
>> +++ b/arch/arm/cpu/armv7/omap5/abb.c
>> @@ -0,0 +1,67 @@
> I might introduce this as part of patch #2... but no strong feelings
> about it.

I suggest to introduce OMAP5 logic in this patch. Now series is divided 
to 2 patches:

1. Control logic and needed definitions for all OMAPs -> so after this 
patch ABB can be used for OMAP3/4/5
2. ABB setup function call (in common code) and ABB registers add to 
OMAP5 data structures, so ABB will be configured for OMAP5 only in this 
case.

So, we have ->  1. complete control logic introduction + 2. using 
previously introduced logic.
I suggest to leave this as is.

> [...]
>> +s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb)
>> +{
>> +	u32 vset;
>> +
>> +	/*
>> +	 * ABB parameters must be properly fused
>> +	 * otherwise ABB should be disabled
>> +	 */
>> +	vset = readl(fuse);
>> +	if (!(vset & OMAP5_ABB_FUSE_ENABLE_MASK))
>> +		return -1;
>> +
>> +	/* prepare VSET value for LDOVBB mux register */
>> +	vset &= OMAP5_ABB_FUSE_VSET_MASK;
>> +	vset >>= ffs(OMAP5_ABB_FUSE_VSET_MASK) - 1;
>> +	vset <<= ffs(OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK) - 1;
>> +	vset |= OMAP5_ABB_LDOVBBMPU_MUX_CTRL_MASK;
>> +
>> +	/* setup LDOVBB using fused value */
>> +	clrsetbits_le32(ldovbb,  OMAP5_ABB_LDOVBBMPU_VSET_OUT_MASK, vset);
> OMAP5_ABB_LDOVBBMPU_MUX_CTRL_MASK wont get set :(
> [...]
>
> Other than this, I have no further comments.

  parent reply	other threads:[~2013-05-23  8:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  8:42 [U-Boot] [PATCH v03 0/2] OMAP3+: introduce generic Adaptive Body Bias Support Andrii Tseglytskyi
2013-05-21  8:42 ` [U-Boot] [PATCH v03 1/2] OMAP3+: introduce generic ABB support Andrii Tseglytskyi
2013-05-22 20:56   ` Nishanth Menon
2013-05-23  7:39     ` Andrii Tseglytskyi
2013-05-23 12:51       ` Nishanth Menon
2013-05-23  8:02     ` Andrii Tseglytskyi [this message]
2013-05-21  8:42 ` [U-Boot] [PATCH v03 2/2] OMAP5: add ABB setup for MPU voltage domain Andrii Tseglytskyi

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=519DCD1C.8070701@ti.com \
    --to=andrii.tseglytskyi@ti.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.