diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-09-29 13:08:24 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-23 15:34:27 +0100 |
commit | f16b0826a0e88ed72ad0f481fe03c2e148a50d36 (patch) | |
tree | 7dd8b0b99730b31981fec96e76c805cebc9f60d3 /src/soc/imgtec/danube | |
parent | c7b3f727f5ce95fdee26ef819263e9efb70e7a54 (diff) |
danube: 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: Iad1ceb966d5dbc8687b966be4d2506c8f92eba5a
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 261837539fb5a31f96e682edbcbbbc0e588f2750
Original-Change-Id: Ie3289eace9d2baadd01bd641b5dffc635ac80c0f
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/220395
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8765
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/imgtec/danube')
-rw-r--r-- | src/soc/imgtec/danube/Kconfig | 2 | ||||
-rw-r--r-- | src/soc/imgtec/danube/Makefile.inc | 2 | ||||
-rw-r--r-- | src/soc/imgtec/danube/monotonic_timer.c | 25 |
3 files changed, 29 insertions, 0 deletions
diff --git a/src/soc/imgtec/danube/Kconfig b/src/soc/imgtec/danube/Kconfig index 0e3c629fef..ba0414614a 100644 --- a/src/soc/imgtec/danube/Kconfig +++ b/src/soc/imgtec/danube/Kconfig @@ -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 diff --git a/src/soc/imgtec/danube/Makefile.inc b/src/soc/imgtec/danube/Makefile.inc index 6a2ba4f3d4..266084839e 100644 --- a/src/soc/imgtec/danube/Makefile.inc +++ b/src/soc/imgtec/danube/Makefile.inc @@ -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 diff --git a/src/soc/imgtec/danube/monotonic_timer.c b/src/soc/imgtec/danube/monotonic_timer.c new file mode 100644 index 0000000000..a8fe27c9cc --- /dev/null +++ b/src/soc/imgtec/danube/monotonic_timer.c @@ -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 */ +} |