From: santosh.shilimkar@ti•com (Santosh Shilimkar)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v2 1/2] ARM: OMAP2+: timer: remove CONFIG_OMAP_32K_TIMER
Date: Mon, 19 Nov 2012 16:12:33 +0530 [thread overview]
Message-ID: <50AA0D19.8040605@ti.com> (raw)
In-Reply-To: <1353251201-10990-1-git-send-email-grinberg@compulab.co.il>
On Sunday 18 November 2012 08:36 PM, Igor Grinberg wrote:
> CONFIG_OMAP_32K_TIMER is kind of standing on the single zImage way.
> Make OMAP2+ timer code independant from the CONFIG_OMAP_32K_TIMER
> setting.
> To remove the dependancy, several conversions/additions had to be done:
> 1) Timer initialization functions are named by the platform
> name and the clock source in use.
> This also makes it possible to define and use the GPTIMER as the
> clock source instead of the 32K timer on platforms that do not have
> the 32K timer ip block or the 32K timer is not wired on the board.
> Cirrently, the the timer is chosen in the machine_desc structure on
> per board basis. Later, DT should be used to choose the timer.
> 2) Settings under the CONFIG_OMAP_32K_TIMER option are used as defaults
> and those under !CONFIG_OMAP_32K_TIMER are removed.
> This removes the CONFIG_OMAP_32K_TIMER on OMAP2+ timer code.
> 3) Since we have all the timers defined inside machine_desc structure
> and we no longer need the fallback to gp_timer clock source in case
> 32k_timer clock source is unavailable (namely on AM33xx), we no
> longer need the #ifdef around __omap2_sync32k_clocksource_init()
> function. Remove the #ifdef CONFIG_OMAP_32K_TIMER around the
> __omap2_sync32k_clocksource_init() function.
>
> Signed-off-by: Igor Grinberg <grinberg@compulab•co.il>
> Cc: Jon Hunter <jon-hunter@ti•com>
> Cc: Santosh Shilimkar <santosh.shilimkar@ti•com>
> Cc: Vaibhav Hiremath <hvaibhav@ti•com>
> ---
nice clean-up Igor. Patch looks good to my eyes.
Feel free to add ,
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti•com>
next prev parent reply other threads:[~2012-11-19 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-18 15:06 [PATCH v2 1/2] ARM: OMAP2+: timer: remove CONFIG_OMAP_32K_TIMER Igor Grinberg
2012-11-18 15:06 ` [PATCH 2/2] ARM: OMAP3: cm-t3517: use GPTIMER for system clock Igor Grinberg
2012-11-20 7:17 ` [PATCH v3 1/2] ARM: OMAP2+: timer: remove CONFIG_OMAP_32K_TIMER Igor Grinberg
2012-11-21 18:23 ` Tony Lindgren
2012-11-19 10:42 ` Santosh Shilimkar [this message]
2012-11-19 16:27 ` [PATCH v2 " Jon Hunter
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=50AA0D19.8040605@ti.com \
--to=santosh.shilimkar@ti$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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