From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Sun, 8 Sep 2013 15:12:45 -0500 Subject: [U-Boot] [PATCH 0/9] Consolidate ARM timer code Message-ID: <1378671174-18535-1-git-send-email-robherring2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Rob Herring Much of the ARM timer code is re-implemented for each platform 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. It is intended for platforms with 32-bit freerunning timers. I've converted a couple of 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 all ARM boards, but only tested on highbank. Rob Rob Herring (9): ARM: add common timer functions examples: enable gc-sections option time: create default __udelay ARM: highbank: convert to common timer code ARM: mx25: convert to common timer code ARM: mx27: 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 arch/arm/cpu/arm926ejs/mx25/timer.c | 117 -------------------------------- arch/arm/cpu/arm926ejs/mx27/timer.c | 110 ------------------------------ 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/arm/lib/Makefile | 2 +- arch/arm/lib/time.c | 59 ++++++++++++++++ board/armltd/vexpress/vexpress_common.c | 71 ------------------- examples/api/Makefile | 2 +- include/configs/highbank.h | 4 ++ include/configs/imx27lite-common.h | 3 + include/configs/mx25pdk.h | 3 + include/configs/socfpga_cyclone5.h | 3 +- include/configs/tegra-common.h | 3 + include/configs/tx25.h | 2 + include/configs/vexpress_common.h | 4 ++ include/configs/zmx25.h | 3 + lib/time.c | 21 ++++++ 19 files changed, 107 insertions(+), 552 deletions(-) delete mode 100644 arch/arm/cpu/tegra-common/timer.c create mode 100644 arch/arm/lib/time.c -- 1.8.1.2