From: Rob Herring <robherring2@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/9] Consolidate timer code
Date: Fri, 4 Oct 2013 10:22:39 -0500 [thread overview]
Message-ID: <1380900168-23791-1-git-send-email-robherring2@gmail.com> (raw)
In-Reply-To: <1378671174-18535-1-git-send-email-robherring2@gmail.com>
From: Rob Herring <rob.herring@calxeda.com>
Much of the timer code is re-implemented for each platform/arch yet it
is all pretty much the same code.
This series introduces a common implementation of timer functions and
simplifies the platform code down to 2 or 3 config defines or 2 simple
functions. It is intended for platforms with 32-bit freerunning timers.
I've converted SH and a couple of ARM platforms as an example, but there
are many more still that can be converted. This probably could be
extended to work with 16-bit timers as well.
I've compiled on ARM, SH4, and PPC.
v2:
- Make timer code common for all architectures
- Convert SH timer to common code
- Drop mx27 due to include mess.
- Add converting versatile to common code
Rob
Rob Herring (9):
examples: enable gc-sections option
Introduce common timer functions
sh: convert to common timer code
ARM: highbank: convert to common timer code
ARM: mx25: convert to common timer code
ARM: vexpress: convert to common timer code
ARM: socfpga: convert to common timer code
ARM: tegra: convert to common timer code
ARM: versatile: convert to common timer code
arch/arm/cpu/arm926ejs/mx25/timer.c | 117 -------------------------------
arch/arm/cpu/arm926ejs/versatile/timer.c | 116 ------------------------------
arch/arm/cpu/armv7/highbank/timer.c | 83 ----------------------
arch/arm/cpu/armv7/socfpga/timer.c | 72 -------------------
arch/arm/cpu/tegra-common/Makefile | 2 +-
arch/arm/cpu/tegra-common/timer.c | 95 -------------------------
arch/sh/lib/time.c | 61 +---------------
board/armltd/vexpress/vexpress_common.c | 71 -------------------
examples/api/Makefile | 2 +-
include/asm-generic/global_data.h | 2 +
include/configs/highbank.h | 4 ++
include/configs/mx25pdk.h | 4 ++
include/configs/socfpga_cyclone5.h | 5 +-
include/configs/tegra-common.h | 3 +
include/configs/tx25.h | 5 +-
include/configs/versatile.h | 9 ++-
include/configs/vexpress_common.h | 4 ++
include/configs/zmx25.h | 6 ++
lib/time.c | 73 +++++++++++++++++++
19 files changed, 111 insertions(+), 623 deletions(-)
delete mode 100644 arch/arm/cpu/tegra-common/timer.c
--
1.8.1.2
next prev parent reply other threads:[~2013-10-04 15:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-08 20:12 [U-Boot] [PATCH 0/9] Consolidate ARM timer code Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 1/9] ARM: add common timer functions Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 2/9] examples: enable gc-sections option Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 3/9] time: create default __udelay Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 4/9] ARM: highbank: convert to common timer code Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 5/9] ARM: mx25: " Rob Herring
2013-09-08 23:56 ` Benoît Thébaudeau
2013-09-09 21:00 ` Rob Herring
2013-09-10 10:25 ` Benoît Thébaudeau
2013-09-10 16:20 ` Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 6/9] ARM: mx27: " Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 7/9] ARM: vexpress: " Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 8/9] ARM: socfpga: " Rob Herring
2013-09-08 20:12 ` [U-Boot] [PATCH 9/9] ARM: tegra: " Rob Herring
2013-09-09 5:53 ` [U-Boot] [PATCH 0/9] Consolidate ARM " Wolfgang Denk
2013-09-09 14:52 ` Rob Herring
2013-09-09 15:37 ` Wolfgang Denk
2013-09-09 7:13 ` Lukasz Majewski
2013-09-09 18:55 ` Rob Herring
2013-10-04 15:22 ` Rob Herring [this message]
2013-10-04 15:22 ` [U-Boot] [PATCH v2 1/9] examples: enable gc-sections option Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 2/9] Introduce common timer functions Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 3/9] sh: convert to common timer code Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 4/9] ARM: highbank: " Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 5/9] ARM: mx25: " Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 6/9] ARM: vexpress: " Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 7/9] ARM: socfpga: " Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 8/9] ARM: tegra: " Rob Herring
2013-10-04 15:22 ` [U-Boot] [PATCH v2 9/9] ARM: versatile: " Rob Herring
2013-11-04 21:31 ` [U-Boot] [PATCH v2 0/9] Consolidate " Tom Rini
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=1380900168-23791-1-git-send-email-robherring2@gmail.com \
--to=robherring2@gmail.com \
--cc=u-boot@lists.denx.de \
/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.