summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2014-12-29 16:52:59 -0700
committerMarc Jones <marc.jones@se-eng.com>2014-12-30 20:13:28 +0100
commit017287a6f79852b6fd26e527684ef0243ead639d (patch)
tree7573a994bb352ea51e8d1554a7abfc4168917ce6 /src
parent0b341b341d5ae5b9270b3dd68b97b9d4dd2b4ee7 (diff)
ipq8064: make timer services available
Make sure it is initialized at different stages. BUG=chrome-os-partner:27784 TEST=manual . not much at this point, just verified that it compiles Original-Change-Id: I343e7a6648e2ca935606cd76befd204aabd93726 Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/196592 (cherry picked from commit aedc41924313e5c21aef97b036f5a0643d59082d) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I4a90ae5ba6c9a561b7d5c938d18b6ea2b855855f Reviewed-on: http://review.coreboot.org/7981 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/qualcomm/ipq806x/Makefile.inc2
-rw-r--r--src/soc/qualcomm/ipq806x/bootblock.c2
-rw-r--r--src/soc/qualcomm/ipq806x/timer.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/soc/qualcomm/ipq806x/Makefile.inc b/src/soc/qualcomm/ipq806x/Makefile.inc
index 00a938f01f..dfbbf3d445 100644
--- a/src/soc/qualcomm/ipq806x/Makefile.inc
+++ b/src/soc/qualcomm/ipq806x/Makefile.inc
@@ -21,10 +21,12 @@ bootblock-y += bootblock.c
bootblock-y += cbfs.c
bootblock-y += clock.c
bootblock-y += gpio.c
+bootblock-y += timer.c
romstage-y += cbfs.c
romstage-y += clock.c
romstage-y += gpio.c
+romstage-y += timer.c
ramstage-y += cbfs.c
ramstage-y += clock.c
diff --git a/src/soc/qualcomm/ipq806x/bootblock.c b/src/soc/qualcomm/ipq806x/bootblock.c
index f526c97d3e..a079d42922 100644
--- a/src/soc/qualcomm/ipq806x/bootblock.c
+++ b/src/soc/qualcomm/ipq806x/bootblock.c
@@ -18,7 +18,9 @@
*/
#include <bootblock_common.h>
+#include <delay.h>
void bootblock_soc_init(void)
{
+ init_timer();
}
diff --git a/src/soc/qualcomm/ipq806x/timer.c b/src/soc/qualcomm/ipq806x/timer.c
index 5c0dcb24bf..0d44e4a07d 100644
--- a/src/soc/qualcomm/ipq806x/timer.c
+++ b/src/soc/qualcomm/ipq806x/timer.c
@@ -40,7 +40,7 @@
#define GPT_FREQ (GPT_FREQ_KHZ * 1000) /* 32 KHz */
/**
- * timer_init - initialize timer
+ * init_timer - initialize timer
*/
void init_timer(void)
{