From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 13 Oct 2015 21:17:09 +0800 Subject: [U-Boot] [PATCH v8 1/3] dm: implement a Timer uclass In-Reply-To: <1444461383-10167-1-git-send-email-thomas@wytron.com.tw> References: <1443446357-21393-1-git-send-email-thomas@wytron.com.tw> <1444461383-10167-1-git-send-email-thomas@wytron.com.tw> Message-ID: <561D0455.6080403@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/10/2015 03:16 PM, Thomas Chou wrote: > Implement a Timer uclass to work with lib/time.c. > > Signed-off-by: Thomas Chou > Acked-by: Simon Glass > --- > v2 > fix coding style. > v3 > add description to Kconfig as Simon suggested. > move timer.c code to lib/time.c. > add dm_timer dev to global data. > remove timer_init(). > change API name get_clock. > v4 > add comment about timer hardware. > v5 > revert to get_rate and use uclass priv to store the clock_rate. > split gd->dm_timer renewal to anohter patch. > v6 > rename to CONFIG_TIMER as Simon suggested. > v7 > fix string replacement error in v6 > v8 > replace all dm_timer with timer. > > drivers/Kconfig | 2 ++ > drivers/Makefile | 1 + > drivers/timer/Kconfig | 12 +++++++++ > drivers/timer/Makefile | 7 ++++++ > drivers/timer/timer-uclass.c | 42 +++++++++++++++++++++++++++++++ > include/asm-generic/global_data.h | 3 +++ > include/dm/uclass-id.h | 1 + > include/timer.h | 52 +++++++++++++++++++++++++++++++++++++++ > lib/time.c | 49 ++++++++++++++++++++++++++++++++++++ > 9 files changed, 169 insertions(+) > create mode 100644 drivers/timer/Kconfig > create mode 100644 drivers/timer/Makefile > create mode 100644 drivers/timer/timer-uclass.c > create mode 100644 include/timer.h > Applied to u-boot-nios.