All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stephan Kappertz <stephan.kappertz@kabelmail.de>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai 2.6.1 on beaglebone (TI AM3359 SoC)
Date: Fri, 13 Jul 2012 09:32:06 +0200	[thread overview]
Message-ID: <4FFFCEF6.3010300@xenomai.org> (raw)
In-Reply-To: <8A91EB22-F549-4065-A21E-043AA6DD9BC1@kabelmail.de>

On 07/13/2012 09:09 AM, Stephan Kappertz wrote:
> Hi Gilles,
> 
> the problem was not the .config file but the fact that CONFIG_OMAP_32K_TIMER was ignored for the AM3359 implementation.
> 
> So in arch/arm/mach_omap2/timer.c I changed 
> 
> --------------------------------------------
> #ifdef CONFIG_ARCH_OMAP3
> #ifndef CONFIG_IPIPE
> OMAP_SYS_TIMER_INIT(3, 1, OMAP3_CLKEV_SOURCE, 2, OMAP3_MPU_SOURCE)
> #else
> OMAP_SYS_TIMER_INIT(3, 2, OMAP3_CLKEV_SOURCE, 3, OMAP3_MPU_SOURCE)
> #endif
> OMAP_SYS_TIMER(3)
> OMAP_SYS_TIMER_INIT(3_secure, OMAP3_SECURE_TIMER, OMAP3_CLKEV_SOURCE,
> 			2, OMAP3_MPU_SOURCE)
> OMAP_SYS_TIMER(3_secure)
> OMAP_SYS_TIMER_INIT(3_am33xx, 2, OMAP4_MPU_SOURCE, 1, AM33XX_RTC32K_SOURCE) <--- ignoring CONFIG_OMAP_32K_TIMER here
> OMAP_SYS_TIMER(3_am33xx)
> 
> #endif
> --------------------------------------------
> 
> to
> 
> --------------------------------------------
> #ifdef CONFIG_ARCH_OMAP3
> 
> #ifndef CONFIG_SOC_OMAPAM33XX
> 
> #ifndef CONFIG_IPIPE
> OMAP_SYS_TIMER_INIT(3, 1, OMAP3_CLKEV_SOURCE, 2, OMAP3_MPU_SOURCE)
> #else
> OMAP_SYS_TIMER_INIT(3, 2, OMAP3_CLKEV_SOURCE, 3, OMAP3_MPU_SOURCE)
> #endif
> OMAP_SYS_TIMER(3)
> OMAP_SYS_TIMER_INIT(3_secure, OMAP3_SECURE_TIMER, OMAP3_CLKEV_SOURCE,
> 			2, OMAP3_MPU_SOURCE)
> OMAP_SYS_TIMER(3_secure)
> 
> #else // #ifdef CONFIG_SOC_OMAPAM33XX
> 
> #ifndef CONFIG_IPIPE
> OMAP_SYS_TIMER_INIT(3_am33xx, 2, AM33XX_CLKEV_SOURCE, 1, AM33XX_MPU_SOURCE)
> #else
> OMAP_SYS_TIMER_INIT(3_am33xx, 2, AM33XX_CLKEV_SOURCE, 3, AM33XX_MPU_SOURCE)
> #endif
> OMAP_SYS_TIMER(3_am33xx)
> 
> #endif
> 
> #endif
> --------------------------------------------
> 
> With the AM33XX_CLKEV_SOURCE and AM33XX_MPU_SOURCE defined as 
> 
> --------------------------------------------
> #define OMAP4_MPU_SOURCE	"sys_clkin_ck"
> #define AM33XX_MPU_SOURCE	OMAP4_MPU_SOURCE
> #define AM33XX_RTC32K_SOURCE	"clk_32768_ck"
> 
> #ifdef CONFIG_OMAP_32K_TIMER
> #define AM33XX_CLKEV_SOURCE	AM33XX_RTC32K_SOURCE
> #define OMAP3_SECURE_TIMER	12
> #else
> #define AM33XX_CLKEV_SOURCE	OMAP4_MPU_SOURCE
> #define OMAP3_SECURE_TIMER	1
> #endif
> --------------------------------------------
> 
> That fixes the clock rate but otherwise does not change the fact that I'm stuck in a non ack'd interrupt at boot: 

The problem comes from the flow handler change. The simplest fix is to
use the default flow handler. Is there any place I can download the
patch to have a look at it?

-- 
                                                                Gilles.


  reply	other threads:[~2012-07-13  7:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 19:54 [Xenomai] Xenomai 2.6.1 on beaglebone (TI AM3359 SoC) Stephan Kappertz
2012-07-12 20:30 ` Gilles Chanteperdrix
2012-07-12 20:47   ` Gilles Chanteperdrix
2012-07-13  7:09     ` Stephan Kappertz
2012-07-13  7:32       ` Gilles Chanteperdrix [this message]
2012-07-13  9:00 ` Gilles Chanteperdrix
2012-07-13  9:15   ` Gilles Chanteperdrix
2012-07-13 14:37     ` Stephan Kappertz

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=4FFFCEF6.3010300@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=stephan.kappertz@kabelmail.de \
    --cc=xenomai@xenomai.org \
    /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.