Re: [PATCH 1/3] ARM: OMAP2+: 32k-counter: Use hwmod lookup to check presence of 32k timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 28, 2012 at 8:07 PM, Hiremath, Vaibhav <hvaibhav@xxxxxx> wrote:
> On Wed, Mar 28, 2012 at 19:50:02, Shilimkar, Santosh wrote:
>> On Wed, Mar 28, 2012 at 7:46 PM, Hiremath, Vaibhav <hvaibhav@xxxxxx> wrote:
>> > On Wed, Mar 21, 2012 at 19:30:01, Shilimkar, Santosh wrote:
>> >> On Wed, Mar 21, 2012 at 5:12 PM, Hiremath, Vaibhav <hvaibhav@xxxxxx> wrote:
>> >> > On Mon, Mar 19, 2012 at 17:45:32, Shilimkar, Santosh wrote:
>> >> >> On Monday 19 March 2012 05:14 PM, Ming Lei wrote:
>> >> >> > On Mon, Mar 19, 2012 at 7:11 PM, Hiremath, Vaibhav <hvaibhav@xxxxxx> wrote:
>>
>> [...]
>>
>> >
>> >> Btw, if you need PM, how are you going to use GPTIMER
>> >> as a clocksource. Note sys-clock is generally stopped in
>> >> low power states. So that leaves you option with using
>> >> gptimer with 32K clock and in that case, GPTIMER
>> >> is not a better clock-source compare to 32K sync timer
>> >> and so shouldn't be the rating.
>> >>
>> >
>> > AM33xx has GPTIMER1 in wakeup domain, so that we are already using as a
>> > Clocksource, without any issues.
>> >
>> GPTIMER1 is in wakeup domain on OMAP too but that doesn't
>> solve the issue I am talking. Once the sysclock is stopped, GPTIMER
>> can't tick anymore even if it is in wakeup domain.
>>
>> The only way it will work is using always running 32KHz clock as
>> the clock input to GPT1. And then the end result is the accuracy
>> of GPTIMER = sync 32K timer. So they are of same rating.
>>
>
> Ohh ok, sorry I should have clarified it in my last response itself.
>
np.

> AM33xx architecture is bit different than OMAP family, and gmtimer1 is
> sourced from RTC32K clock, which is in wakeup domain.
> This means we have RTC32K clock always running across suspend/resume.
>
> 0 - SEL1: Select CLK_M_OSC clock
> 1 - SEL2: Select CLK_32KHZ clock
> 2 - SEL3: Select TCLKIN clock
> 3 - SEL4: Select CLK_RC32K clock
> 4 - SEL5: Selects the CLK_32768 from 32KHz Crystal Osc
>
>
> We use value "4" here, for RTC32K (always on clock).
> I hope this clarifies what I am trying to say here.
>
I thought so and now if you look at last part of my comment.

Rating of 32K based synctimer and 32K based GPTIMER
should be same because of the precision. That's the main
point why I was saying that GPTIMER is not a better
clock-source( with 32k clock src)  than sync timer when
both are enabled together.

Regards
Santosh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux