public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regulator: tps6586x: What is the meaning of TPS6586X_SLEW_RATE_SET setting?
@ 2012-06-19 11:15 Axel Lin
  2012-06-20  8:04 ` Danny Huang
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-06-19 11:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mike Rapoport, Danny Huang, Liam Girdwood, Mark Brown

Hi Mike,
While looking at the datasheet (tps65860 and tps65862),
I don't understand why we have TPS6586X_SLEW_RATE_SET (0x08) in the code.

According to the datasheet, BIT3 of SM1SL/SM0SL is not used:

SM1SL [Addr 0x25]
SM0SL [Addr 0x28]
        BIT[2:0] SM0/SM1 SUPPLY RAMP RATE
        BIT[7:3] NOT USED

So why we need to check the "unused bit" in tps6586x_regulator_set_slew_rate()?

        if (!(setting->slew_rate & TPS6586X_SLEW_RATE_SET))
                return 0;

Regards,
Axel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: regulator: tps6586x: What is the meaning of TPS6586X_SLEW_RATE_SET setting?
  2012-06-19 11:15 regulator: tps6586x: What is the meaning of TPS6586X_SLEW_RATE_SET setting? Axel Lin
@ 2012-06-20  8:04 ` Danny Huang
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Huang @ 2012-06-20  8:04 UTC (permalink / raw)
  To: Axel Lin, linux-kernel@vger.kernel.org
  Cc: Mike Rapoport, Liam Girdwood, Mark Brown

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1099 bytes --]

Hi Axel,

The TPS6586X_SLEW_RATE_SET is not related with hardware register.
It was used to make sure that the slew rate won't be changed by accident.

Thanks,
Danny

-----Original Message-----
From: Axel Lin [mailto:axel.lin@gmail.com] 
Sent: Tuesday, June 19, 2012 19:15
To: linux-kernel@vger.kernel.org
Cc: Mike Rapoport; Danny Huang; Liam Girdwood; Mark Brown
Subject: regulator: tps6586x: What is the meaning of TPS6586X_SLEW_RATE_SET setting?

Hi Mike,
While looking at the datasheet (tps65860 and tps65862),
I don't understand why we have TPS6586X_SLEW_RATE_SET (0x08) in the code.

According to the datasheet, BIT3 of SM1SL/SM0SL is not used:

SM1SL [Addr 0x25]
SM0SL [Addr 0x28]
        BIT[2:0] SM0/SM1 SUPPLY RAMP RATE
        BIT[7:3] NOT USED

So why we need to check the "unused bit" in tps6586x_regulator_set_slew_rate()?

        if (!(setting->slew_rate & TPS6586X_SLEW_RATE_SET))
                return 0;

Regards,
Axel

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-20  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 11:15 regulator: tps6586x: What is the meaning of TPS6586X_SLEW_RATE_SET setting? Axel Lin
2012-06-20  8:04 ` Danny Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox