Skip to content
Permalink
Browse files

soc/riscv32: Make clock init code common to SoC

The HiFive1 and HiFive1 Rev B share the same clock initialization
code, so put it in soc/riscv32/riscv-privilege/sifive-freedom.

Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
  • Loading branch information...
nategraff-sifive authored and nashif committed Mar 20, 2019
1 parent 8b40260 commit 73a96c005230bb149e7624931a0b68907e8da5d2
@@ -2,5 +2,4 @@

zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_sources(clock.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
@@ -2,5 +2,4 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_sources(clock.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

This file was deleted.

This file was deleted.

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources()
zephyr_sources(fe310_clock.c)
@@ -6,12 +6,12 @@
*/

#include <init.h>
#include "prci.h"
#include "fe310_prci.h"

/* Selects the 16MHz oscilator on the HiFive1 board, which provides a clock
* that's accurate enough to actually drive serial ports off of.
*/
static int hifive1_clock_init(struct device *dev)
static int fe310_clock_init(struct device *dev)
{
ARG_UNUSED(dev);

@@ -22,4 +22,4 @@ static int hifive1_clock_init(struct device *dev)
return 0;
}

SYS_INIT(hifive1_clock_init, PRE_KERNEL_1, CONFIG_PINMUX_INIT_PRIORITY);
SYS_INIT(fe310_clock_init, PRE_KERNEL_1, CONFIG_PINMUX_INIT_PRIORITY);
File renamed without changes.

0 comments on commit 73a96c0

Please sign in to comment.
You can’t perform that action at this time.