diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-21 14:42:20 -0700 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-21 14:42:20 -0700 |
commit | b3cf267705758a305a59b2d31e76e752d84a204c (patch) | |
tree | d62ccc6b3076684fa62bd73d6ce2e082115b37d7 /bsp/sifive-hifive1-revb | |
parent | 543c5f1122f39fc5791a31bc3c8d714108acf8d1 (diff) |
Fix OpenOCD cfg and remove warnings
Fix OpenOCD config generator for hifive boards
Remove some warnings for FE310-compatible targets related to clocks and
the PRCI.
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'bsp/sifive-hifive1-revb')
-rw-r--r-- | bsp/sifive-hifive1-revb/metal-inline.h | 2 | ||||
-rw-r--r-- | bsp/sifive-hifive1-revb/metal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/sifive-hifive1-revb/metal-inline.h b/bsp/sifive-hifive1-revb/metal-inline.h index f8f03d0..8c0cd04 100644 --- a/bsp/sifive-hifive1-revb/metal-inline.h +++ b/bsp/sifive-hifive1-revb/metal-inline.h @@ -12,7 +12,7 @@ /* --------------------- fixed_clock ------------ */ -extern inline unsigned long __metal_driver_fixed_clock_rate(struct metal_clock *clock); +extern inline unsigned long __metal_driver_fixed_clock_rate(const struct metal_clock *clock); /* --------------------- fixed_factor_clock ------------ */ diff --git a/bsp/sifive-hifive1-revb/metal.h b/bsp/sifive-hifive1-revb/metal.h index de9f454..f76dbd6 100644 --- a/bsp/sifive-hifive1-revb/metal.h +++ b/bsp/sifive-hifive1-revb/metal.h @@ -148,7 +148,7 @@ struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000; /* --------------------- fixed_clock ------------ */ -static inline unsigned long __metal_driver_fixed_clock_rate(struct metal_clock *clock) +static inline unsigned long __metal_driver_fixed_clock_rate(const struct metal_clock *clock) { if ((uintptr_t)clock == (uintptr_t)&__metal_dt_clock_0) { return METAL_FIXED_CLOCK_0_CLOCK_FREQUENCY; |