From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 4 Sep 2015 16:08:22 +0200 Subject: [U-Boot] [PATCH 1/2] nios2: Switch to generic timer In-Reply-To: <55E99DBD.4020107@wytron.com.tw> References: <1441360276-4792-1-git-send-email-marex@denx.de> <55E99DBD.4020107@wytron.com.tw> Message-ID: <201509041608.22148.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday, September 04, 2015 at 03:33:49 PM, Thomas Chou wrote: > Hi Marek, Hi! > On 09/04/2015 05:51 PM, Marek Vasut wrote: > > Zap almost all of the ad-hoc timer code from interrupts.c and > > use the code in lib/time.c instead. > > > > Signed-off-by: Marek Vasut > > --- > > > > arch/nios2/cpu/interrupts.c | 132 > > ++++++++++++---------------------------- arch/nios2/lib/Makefile > > | 1 - > > arch/nios2/lib/time.c | 22 ------- > > common/board_f.c | 2 +- > > include/configs/nios2-generic.h | 9 +-- > > 5 files changed, 42 insertions(+), 124 deletions(-) > > delete mode 100644 arch/nios2/lib/time.c > > The patch cannot apply to board_f.c due to conflict in > > commit 2e88bb28d8061286d2f1cabcac224df15b941b82 > NDS32: Generic Board Support and Unsupport Aw, right, looks trivial. Thanks :) > Tested on 3c120 devboard with qsys ghrd. But the status led didn't blink. I think I removed this led nonsense somewhere along the way indeed. This is a timer code, not some LED blinking code afterall, so it should not be poluted by such stuff. Where can I get this board btw? I've been using DE0-NANO for my NIOS fiddling thus far. Best regards, Marek Vasut