From cdfed94f347a112638b914876de8069e10adf175 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 25 Jun 2018 11:12:24 +0200 Subject: bsp/riscv: Rework clock driver Use device tree provided timebase frequency. Do not write to read-only mtime register. Update #3433. --- bsps/include/bsp/fatal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bsps/include') diff --git a/bsps/include/bsp/fatal.h b/bsps/include/bsp/fatal.h index ca2e39aba8..12d33a20e4 100644 --- a/bsps/include/bsp/fatal.h +++ b/bsps/include/bsp/fatal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2016 embedded brains GmbH. All rights reserved. + * Copyright (c) 2012, 2018 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -137,7 +137,10 @@ typedef enum { ATSAM_FATAL_PIO_CONFIGURE_IT, /* i.MX fatal codes */ - IMX_FATAL_GENERIC_TIMER_FREQUENCY = BSP_FATAL_CODE_BLOCK(12) + IMX_FATAL_GENERIC_TIMER_FREQUENCY = BSP_FATAL_CODE_BLOCK(12), + + /* RISC-V fatal codes */ + RISCV_FATAL_NO_TIMEBASE_FREQUENCY_IN_DEVICE_TREE = BSP_FATAL_CODE_BLOCK(13) } bsp_fatal_code; RTEMS_NO_RETURN static inline void -- cgit v1.2.3