From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 13 Oct 2015 21:17:52 +0800 Subject: [U-Boot] [PATCH v8 3/3] nios2: convert altera timer to driver model In-Reply-To: <1444461383-10167-3-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> <1444461383-10167-3-git-send-email-thomas@wytron.com.tw> Message-ID: <561D0480.7030406@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: > Convert altera timer to driver model. > > Signed-off-by: Thomas Chou > Acked-by: Chin Liang See > --- > v2 > fix coding style. > v3 > doc dts binding. > v4 > no change. > v5 > revert to get_rate and use uclass priv to store the clock_rate. > v6 > rename to CONFIG_TIMER as Simon suggested. > v7 > fix string replacement error in v6. > v8 > replace all dm_timer with timer. > > arch/nios2/cpu/Makefile | 2 +- > arch/nios2/cpu/timer.c | 65 --------------- > common/board_f.c | 3 +- > configs/nios2-generic_defconfig | 2 + > doc/device-tree-bindings/timer/altera_timer.txt | 19 +++++ > drivers/timer/Kconfig | 7 ++ > drivers/timer/Makefile | 1 + > drivers/timer/altera_timer.c | 103 ++++++++++++++++++++++++ > include/configs/nios2-generic.h | 5 -- > 9 files changed, 134 insertions(+), 73 deletions(-) > delete mode 100644 arch/nios2/cpu/timer.c > create mode 100644 doc/device-tree-bindings/timer/altera_timer.txt > create mode 100644 drivers/timer/altera_timer.c > Applied to u-boot-nios.