* Freescale LTIB BSP fix
@ 2013-05-29 12:23 Alexander Smirnov
2013-05-29 12:23 ` [PATCH] arm/mach-mx6: fix pll4 set_rate callback Alexander Smirnov
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Alexander Smirnov @ 2013-05-29 12:23 UTC (permalink / raw)
To: meta-freescale
I'm newcomer here and I got this list address from Freescale's community site.
I work with LTIB for i.MX6 dual/quad core platforms, and during code investigation
I've found several issues.
Is it right place to discuss LTIB related issues?
Could anybody please review the patch and, if it's not a right place, point me to
the correct list.
With best regards,
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-05-29 12:23 Freescale LTIB BSP fix Alexander Smirnov @ 2013-05-29 12:23 ` Alexander Smirnov 2013-05-29 14:41 ` Otavio Salvador 2013-05-29 14:46 ` Freescale LTIB BSP fix Otavio Salvador 2013-05-29 15:56 ` Daiane Angolini 2 siblings, 1 reply; 10+ messages in thread From: Alexander Smirnov @ 2013-05-29 12:23 UTC (permalink / raw) To: meta-freescale; +Cc: Alexander Smirnov There is single method to set clock-rate for both audio and video pll-s in i.MX6q clock system implementation. That's possible due to they have similar set of registers with a different bases. But there is also one common register: CCM_ANALOG_MISC2, which contains post-dividers. In current implementation, independently of whether audio or video clock is going to be set, the mask 0xc0000000 is applied to MISC2 register. This means, that if the audio clock rate is changed, the video clock post-dividers possibly will be corrupted. This patch fixes the issue described above. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> --- arch/arm/mach-mx6/clock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c index 8c590b7..8706c32 100644 --- a/arch/arm/mach-mx6/clock.c +++ b/arch/arm/mach-mx6/clock.c @@ -1023,7 +1023,8 @@ static int _clk_audio_video_set_rate(struct clk *clk, unsigned long rate) __raw_writel(mfn, pllbase + PLL_NUM_DIV_OFFSET); __raw_writel(mfd, pllbase + PLL_DENOM_DIV_OFFSET); - if (rev >= IMX_CHIP_REVISION_1_1) { + if ((rev >= IMX_CHIP_REVISION_1_1) && + (pllbase == PLL5_VIDEO_BASE_ADDR)) { reg = __raw_readl(ANA_MISC2_BASE_ADDR) & ~ANADIG_ANA_MISC2_CONTROL3_MASK; reg |= control3 << ANADIG_ANA_MISC2_CONTROL3_OFFSET; -- 1.7.2.5 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-05-29 12:23 ` [PATCH] arm/mach-mx6: fix pll4 set_rate callback Alexander Smirnov @ 2013-05-29 14:41 ` Otavio Salvador 2013-06-04 12:43 ` Alexander Smirnov 0 siblings, 1 reply; 10+ messages in thread From: Otavio Salvador @ 2013-05-29 14:41 UTC (permalink / raw) To: Alexander Smirnov, Fabio Estevam, Mahesh Mahadevan Cc: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1092 bytes --] Hello Alexander, On Wed, May 29, 2013 at 9:23 AM, Alexander Smirnov < alex.bluesman.smirnov@gmail.com> wrote: > There is single method to set clock-rate for both audio and video pll-s > in i.MX6q clock system implementation. That's possible due to they have > similar set of registers with a different bases. But there is also one > common register: CCM_ANALOG_MISC2, which contains post-dividers. > > In current implementation, independently of whether audio or video clock > is going to be set, the mask 0xc0000000 is applied to MISC2 register. > This means, that if the audio clock rate is changed, the video clock > post-dividers possibly will be corrupted. > > This patch fixes the issue described above. > > Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> > I am adding Fabio and Mahesh in Cc so they can take a look in this patch. Regards, -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 [-- Attachment #2: Type: text/html, Size: 1687 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-05-29 14:41 ` Otavio Salvador @ 2013-06-04 12:43 ` Alexander Smirnov 2013-06-04 15:54 ` Eric Bénard ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Alexander Smirnov @ 2013-06-04 12:43 UTC (permalink / raw) To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org Hi Folks, > There is single method to set clock-rate for both audio and video pll-s > in i.MX6q clock system implementation. That's possible due to they have > similar set of registers with a different bases. But there is also one > common register: CCM_ANALOG_MISC2, which contains post-dividers. > > In current implementation, independently of whether audio or video clock > is going to be set, the mask 0xc0000000 is applied to MISC2 register. > This means, that if the audio clock rate is changed, the video clock > post-dividers possibly will be corrupted. > > This patch fixes the issue described above. > > Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com > <mailto:alex.bluesman.smirnov@gmail.com>> > > > I am adding Fabio and Mahesh in Cc so they can take a look in this patch has anybody looked at the patch I sent? I also have a couple of fixes for imx audio, can I send them here? With best regards, Alex > > Regards, > > -- > Otavio Salvador O.S. Systems > http://www.ossystems.com.br http://projetos.ossystems.com.br > Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-06-04 12:43 ` Alexander Smirnov @ 2013-06-04 15:54 ` Eric Bénard 2013-06-04 16:34 ` Mahadevan Mahesh-R9AADQ 2013-06-04 16:42 ` Daiane Angolini 2 siblings, 0 replies; 10+ messages in thread From: Eric Bénard @ 2013-06-04 15:54 UTC (permalink / raw) To: Alexander Smirnov; +Cc: meta-freescale@yoctoproject.org Hi Alexander, Le Tue, 04 Jun 2013 16:43:53 +0400, Alexander Smirnov <alex.bluesman.smirnov@gmail.com> a écrit : > > There is single method to set clock-rate for both audio and video > pll-s > > in i.MX6q clock system implementation. That's possible due to they have > > similar set of registers with a different bases. But there is also one > > common register: CCM_ANALOG_MISC2, which contains post-dividers. > > > > In current implementation, independently of whether audio or video clock > > is going to be set, the mask 0xc0000000 is applied to MISC2 register. > > This means, that if the audio clock rate is changed, the video clock > > post-dividers possibly will be corrupted. > > > > This patch fixes the issue described above. > > > > Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com > > <mailto:alex.bluesman.smirnov@gmail.com>> > > > > > > I am adding Fabio and Mahesh in Cc so they can take a look in this patch > > has anybody looked at the patch I sent? > > I also have a couple of fixes for imx audio, can I send them here? > please send them here even if that doesn't reach meta-fsl-arm, at least other users of i.MX are reading this mailing list and may find your patches interesting and test them if they face the same issues. Thanks and best regards, Eric ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-06-04 12:43 ` Alexander Smirnov 2013-06-04 15:54 ` Eric Bénard @ 2013-06-04 16:34 ` Mahadevan Mahesh-R9AADQ 2013-06-04 16:51 ` Otavio Salvador 2013-06-04 16:42 ` Daiane Angolini 2 siblings, 1 reply; 10+ messages in thread From: Mahadevan Mahesh-R9AADQ @ 2013-06-04 16:34 UTC (permalink / raw) To: Alexander Smirnov, Otavio Salvador Cc: meta-freescale@yoctoproject.org, Estevam Fabio-R49496 Hello Alex, Thanks for the patch. We have looked at it and it looks accurate. It has been sent to the clock driver developer for his comments and to integrate into the code-base. Best regards, -Mahesh -----Original Message----- From: Alexander Smirnov [mailto:alex.bluesman.smirnov@gmail.com] Sent: Tuesday, June 04, 2013 7:44 AM To: Otavio Salvador Cc: Estevam Fabio-R49496; Mahadevan Mahesh-R9AADQ; meta-freescale@yoctoproject.org Subject: Re: [meta-freescale] [PATCH] arm/mach-mx6: fix pll4 set_rate callback Hi Folks, > There is single method to set clock-rate for both audio and video pll-s > in i.MX6q clock system implementation. That's possible due to they have > similar set of registers with a different bases. But there is also one > common register: CCM_ANALOG_MISC2, which contains post-dividers. > > In current implementation, independently of whether audio or video clock > is going to be set, the mask 0xc0000000 is applied to MISC2 register. > This means, that if the audio clock rate is changed, the video clock > post-dividers possibly will be corrupted. > > This patch fixes the issue described above. > > Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com > <mailto:alex.bluesman.smirnov@gmail.com>> > > > I am adding Fabio and Mahesh in Cc so they can take a look in this patch has anybody looked at the patch I sent? I also have a couple of fixes for imx audio, can I send them here? With best regards, Alex > > Regards, > > -- > Otavio Salvador O.S. Systems > http://www.ossystems.com.br http://projetos.ossystems.com.br > Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-06-04 16:34 ` Mahadevan Mahesh-R9AADQ @ 2013-06-04 16:51 ` Otavio Salvador 0 siblings, 0 replies; 10+ messages in thread From: Otavio Salvador @ 2013-06-04 16:51 UTC (permalink / raw) To: Mahadevan Mahesh-R9AADQ Cc: meta-freescale@yoctoproject.org, Estevam Fabio-R49496, Alexander Smirnov [-- Attachment #1: Type: text/plain, Size: 592 bytes --] Hello Mahesh, On Tue, Jun 4, 2013 at 1:34 PM, Mahadevan Mahesh-R9AADQ < r9aadq@freescale.com> wrote: > > Thanks for the patch. We have looked at it and it looks accurate. It has > been sent to the clock driver developer for his comments and to integrate > into the code-base. > When this get reviewed (and integrated) could you try to cherry-pick it to 4.0.0 branch? Regards, -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 [-- Attachment #2: Type: text/html, Size: 1076 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] arm/mach-mx6: fix pll4 set_rate callback 2013-06-04 12:43 ` Alexander Smirnov 2013-06-04 15:54 ` Eric Bénard 2013-06-04 16:34 ` Mahadevan Mahesh-R9AADQ @ 2013-06-04 16:42 ` Daiane Angolini 2 siblings, 0 replies; 10+ messages in thread From: Daiane Angolini @ 2013-06-04 16:42 UTC (permalink / raw) To: Alexander Smirnov; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador On 06/04/2013 09:43 AM, Alexander Smirnov wrote: > Hi Folks, > > > > > There is single method to set clock-rate for both audio and video > pll-s >> in i.MX6q clock system implementation. That's possible due to they >> have >> similar set of registers with a different bases. But there is also >> one >> common register: CCM_ANALOG_MISC2, which contains post-dividers. >> >> In current implementation, independently of whether audio or video >> clock >> is going to be set, the mask 0xc0000000 is applied to MISC2 register. >> This means, that if the audio clock rate is changed, the video clock >> post-dividers possibly will be corrupted. >> >> This patch fixes the issue described above. >> >> Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com >> <mailto:alex.bluesman.smirnov@gmail.com>> >> >> >> I am adding Fabio and Mahesh in Cc so they can take a look in this patch > > has anybody looked at the patch I sent? Yes, it looks right for everyone and we are working to get it included in the linux tree. But, even if was not included in the linux tree (we should know it in 1 or 2 days), I do think we should include it on linux-imx recipe. > > I also have a couple of fixes for imx audio, can I send them here? Please, let the patches come! > > With best regards, > Alex Thanks a lot, Alex, for sharing this ;) Daiane ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Freescale LTIB BSP fix 2013-05-29 12:23 Freescale LTIB BSP fix Alexander Smirnov 2013-05-29 12:23 ` [PATCH] arm/mach-mx6: fix pll4 set_rate callback Alexander Smirnov @ 2013-05-29 14:46 ` Otavio Salvador 2013-05-29 15:56 ` Daiane Angolini 2 siblings, 0 replies; 10+ messages in thread From: Otavio Salvador @ 2013-05-29 14:46 UTC (permalink / raw) To: Alexander Smirnov; +Cc: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1206 bytes --] On Wed, May 29, 2013 at 9:23 AM, Alexander Smirnov < alex.bluesman.smirnov@gmail.com> wrote: > I'm newcomer here and I got this list address from Freescale's community > site. > I work with LTIB for i.MX6 dual/quad core platforms, and during code > investigation > I've found several issues. > > Is it right place to discuss LTIB related issues? > Could anybody please review the patch and, if it's not a right place, > point me to > the correct list. > No; this mailing list is for Yocto discussion. I invite you to give the Yocto a try so you can migrate from LTIB to it. It should easy your long term maintenance work a lot and allow you to share a lot of work with community members. I don't know which board you're using for your work but I did a small blog post which provides a small 'guide' how to get up a running image with Nitrogen board at http://www.ossystems.com.br/blog/2013/04/15/yocto-with-boundary-devices-nitrogen6x-5-steps-only/; I hope it helps. Regards, -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 [-- Attachment #2: Type: text/html, Size: 1962 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Freescale LTIB BSP fix 2013-05-29 12:23 Freescale LTIB BSP fix Alexander Smirnov 2013-05-29 12:23 ` [PATCH] arm/mach-mx6: fix pll4 set_rate callback Alexander Smirnov 2013-05-29 14:46 ` Freescale LTIB BSP fix Otavio Salvador @ 2013-05-29 15:56 ` Daiane Angolini 2 siblings, 0 replies; 10+ messages in thread From: Daiane Angolini @ 2013-05-29 15:56 UTC (permalink / raw) To: Alexander Smirnov; +Cc: meta-freescale On 05/29/2013 09:23 AM, Alexander Smirnov wrote: > I'm newcomer here and I got this list address from Freescale's community site. > I work with LTIB for i.MX6 dual/quad core platforms, and during code investigation > I've found several issues. > > Is it right place to discuss LTIB related issues? > Could anybody please review the patch and, if it's not a right place, point me to > the correct list. Hi Alex! I'm glad to see you here ;) I saw you sent one patch to kernel. Kernel is not related with LTIB or Yocto, so, please, feel free to submit your kernel/u-boot or any other patch to the maillist. After the revision we can include your kernel patch in our kernel tree. Best Regards, --- Daiane ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-06-04 16:51 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-29 12:23 Freescale LTIB BSP fix Alexander Smirnov 2013-05-29 12:23 ` [PATCH] arm/mach-mx6: fix pll4 set_rate callback Alexander Smirnov 2013-05-29 14:41 ` Otavio Salvador 2013-06-04 12:43 ` Alexander Smirnov 2013-06-04 15:54 ` Eric Bénard 2013-06-04 16:34 ` Mahadevan Mahesh-R9AADQ 2013-06-04 16:51 ` Otavio Salvador 2013-06-04 16:42 ` Daiane Angolini 2013-05-29 14:46 ` Freescale LTIB BSP fix Otavio Salvador 2013-05-29 15:56 ` Daiane Angolini
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.