danube: modify to use the generic timer interface
Actual timer support is not yet available for Danube, it will be added soon. For now, just to make the target build, modify it to use GENERIC_UDELAY and HAVE_MONOTONIC_TIMER configuration option. BUG=none TEST=the target builds again Change-Id: Ie3289eace9d2baadd01bd641b5dffc635ac80c0f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/220395 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
b4dccc03bd
commit
261837539f
3 changed files with 29 additions and 0 deletions
|
|
@ -22,6 +22,8 @@
|
|||
config CPU_IMGTEC_DANUBE
|
||||
select CPU_MIPS
|
||||
select DYNAMIC_CBMEM
|
||||
select GENERIC_UDELAY
|
||||
select HAVE_MONOTONIC_TIMER
|
||||
select HAVE_UART_MEMORY_MAPPED
|
||||
select HAVE_UART_SPECIAL
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -30,9 +30,11 @@ romstage-y += uart.c
|
|||
ramstage-y += uart.c
|
||||
endif
|
||||
|
||||
bootblock-y += monotonic_timer.c
|
||||
bootblock-y += timestamp.c
|
||||
|
||||
ramstage-y += cbmem.c
|
||||
ramstage-y += monotonic_timer.c
|
||||
ramstage-y += timestamp.c
|
||||
|
||||
romstage-y += cbmem.c
|
||||
|
|
|
|||
25
src/soc/imgtec/danube/monotonic_timer.c
Normal file
25
src/soc/imgtec/danube/monotonic_timer.c
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* This file is part of the coreboot project.
|
||||
*
|
||||
* Copyright 2014 Google Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; version 2 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <timer.h>
|
||||
|
||||
void timer_monotonic_get(struct mono_time *mt)
|
||||
{
|
||||
/* to be defined */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue