mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Kim, Milo" <Milo.Kim@ti.com>
Cc: Venu Byravarasu <vbyravarasu@nvidia.com>,
	Samuel Ortiz <sameo@linux.intel.com>,
	"a.zummo@towertech.it" <a.zummo@towertech.it>,
	"swarren@wwwdotorg.org" <swarren@wwwdotorg.org>,
	Sivaram Nair <sivaramn@nvidia.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] rtc-tps65910: enable RTC power domain on initialization
Date: Thu, 29 Nov 2012 16:13:58 -0800	[thread overview]
Message-ID: <20121129161358.9ae29f96.akpm@linux-foundation.org> (raw)
In-Reply-To: <A874F61F95741C4A9BA573A70FE3998F6418F30B@DQHE02.ent.ti.com>

On Thu, 29 Nov 2012 23:11:37 +0000
"Kim, Milo" <Milo.Kim@ti.com> wrote:

> Hi Venu
> 
> > >  Enabling RTC HW block depends on the default value of TPS65910
> > register.
> > >  In some mode, RTC block is disabled by default.(eg. AM3517
> > Craneboard)
> > >  In this case, RTC_PWDN(RTC power down) bit should be cleared to
> > enable
> > >  the RTC HW block.
> > 
> > From the description of RTC_PWDN bit of DEVCTRL_REG in TPS65910 data
> > sheet
> > it is very evident that the default value of RTC_PWDN is 0.
> 
> According to the datasheet(http://www.ti.com/lit/ds/swcs046q/swcs046q.pdf),
> the default value RTC_PWDN is 1 which means power down.
> 
> The default values are loaded from the EEPROM with BOOT_MODE 0,1 pin connection.
> The RTC is disabled by default when BOOT_MODE = 00.
> The Craneboard has the BOOT_MODE 00.
> 
> You may have other EEPROM settings,
> however the official datasheet shows the RTC block is off by default.
> 
> Could you check the silicon version number? (0x80 register - JTAGVERNUM_REG)
> In my case, the read value is 0x01.
> 
> > Probably on "AM3517 Craneboard", some code is running prior to the RTC
> > driver
> > which might be writing 1 on to this bit. IMO you must disable that
> > write operation
> > instead of just writing default value into a register.
> 
> Thank you for your comment.
> I've read the DEVCTRL register (0x3F) in mfd tps65910 driver
> as soon as the regmap registration is done, however RTC_PWDN is always 1.
> That means the RTC is disabled by default.
> 

I've merged this patch into -mm for 3.8 along with a note-to-self that
there might still be open issues.  Venu, please let us know if the
above settles things?

  reply	other threads:[~2012-11-30  0:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29  8:48 Kim, Milo
2012-11-29  9:07 ` Venu Byravarasu
2012-11-29 23:11   ` Kim, Milo
2012-11-30  0:13     ` Andrew Morton [this message]
2012-11-30  9:49       ` Venu Byravarasu
2012-11-30  9:32     ` Venu Byravarasu

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=20121129161358.9ae29f96.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=Milo.Kim@ti.com \
    --cc=a.zummo@towertech.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=sivaramn@nvidia.com \
    --cc=swarren@wwwdotorg.org \
    --cc=vbyravarasu@nvidia.com \
    /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

all inboxes | Powered by JetHome®