summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-02-01 18:36:22 -0800
committerMegan Wachs <megan@sifive.com>2017-02-01 18:36:22 -0800
commit4c4c4cd044978d9f72a872b1b8f674cd6f061c1b (patch)
tree9ccde76eacc9de631a2cb789eb48d4015d4919b5 /bsp
parentb003c52b0f5460c6e0e15cb29171164530490e08 (diff)
PRCI: This doesn't exist on the Arty and potentially other devices, so exclude it if there is not PRCI_BASE_ADDR on the system.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/drivers/fe300prci/fe300prci_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsp/drivers/fe300prci/fe300prci_driver.c b/bsp/drivers/fe300prci/fe300prci_driver.c
index 0e555a6..8491554 100644
--- a/bsp/drivers/fe300prci/fe300prci_driver.c
+++ b/bsp/drivers/fe300prci/fe300prci_driver.c
@@ -1,7 +1,9 @@
// See LICENSE file for license details
-#include "fe300prci/fe300prci_driver.h"
#include "platform.h"
+
+#ifdef PRCI_BASE_ADDR
+#include "fe300prci/fe300prci_driver.h"
#include <unistd.h>
#define rdmcycle(x) { \
@@ -245,3 +247,5 @@ uint32_t PRCI_set_hfrosctrim_for_f_cpu(uint32_t f_cpu, PRCI_freq_target target )
return cpu_freq;
}
+
+#endif