Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #498 from sifive/esat252-gcc10-fix
Browse files Browse the repository at this point in the history
Regen BSPs. Fix for gcc10.
  • Loading branch information
bsousi5 authored May 27, 2020
2 parents d814d3f + b739634 commit ec206f6
Show file tree
Hide file tree
Showing 20 changed files with 315 additions and 190 deletions.
3 changes: 3 additions & 0 deletions bsp/freedom-e310-arty/metal-inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_output_select
extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_selector(struct metal_uart *uart);


/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */


Expand Down
36 changes: 23 additions & 13 deletions bsp/freedom-e310-arty/metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

#define METAL_MAX_UART_INTERRUPTS 1

#define METAL_MAX_SIMUART_INTERRUPTS 0


#include <metal/drivers/fixed-clock.h>
#include <metal/memory.h>
Expand All @@ -91,39 +93,39 @@
#include <metal/drivers/sifive_uart0.h>

/* From clock@0 */
struct __metal_driver_fixed_clock __metal_dt_clock_0;
extern struct __metal_driver_fixed_clock __metal_dt_clock_0;

struct metal_memory __metal_dt_mem_dtim_80000000;
extern struct metal_memory __metal_dt_mem_dtim_80000000;

struct metal_memory __metal_dt_mem_itim_8000000;
extern struct metal_memory __metal_dt_mem_itim_8000000;

struct metal_memory __metal_dt_mem_spi_10014000;
extern struct metal_memory __metal_dt_mem_spi_10014000;

/* From clint@2000000 */
struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;
extern struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;

/* From cpu@0 */
struct __metal_driver_cpu __metal_dt_cpu_0;
extern struct __metal_driver_cpu __metal_dt_cpu_0;

struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;
extern struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;

/* From interrupt_controller@c000000 */
struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;
extern struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;

/* From local_external_interrupts_0 */
struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;
extern struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;

/* From gpio@10012000 */
struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;
extern struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;

/* From pwm@10015000 */
struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;
extern struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;

/* From spi@10014000 */
struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;
extern struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;

/* From serial@10013000 */
struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;
extern struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;



Expand Down Expand Up @@ -807,6 +809,9 @@ static __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_select



/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */


Expand Down Expand Up @@ -910,6 +915,11 @@ __asm__ (".weak __metal_uart_table");
struct __metal_driver_sifive_uart0 *__metal_uart_table[] = {
&__metal_dt_serial_10013000};

#define __METAL_DT_MAX_SIMUARTS 0

__asm__ (".weak __metal_simuart_table");
struct __metal_driver_sifive_simuart0 *__metal_simuart_table[] = {
NULL };
#define __METAL_DT_MAX_WDOGS 0

__asm__ (".weak __metal_wdog_table");
Expand Down
3 changes: 3 additions & 0 deletions bsp/qemu-sifive-e31/metal-inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_output_select
extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_selector(struct metal_uart *uart);


/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */
extern __inline__ unsigned long __metal_driver_sifive_wdog0_control_base(const struct metal_watchdog *const watchdog);
extern __inline__ unsigned long __metal_driver_sifive_wdog0_control_size(const struct metal_watchdog *const watchdog);
Expand Down
60 changes: 35 additions & 25 deletions bsp/qemu-sifive-e31/metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

#define METAL_MAX_UART_INTERRUPTS 1

#define METAL_MAX_SIMUART_INTERRUPTS 0


#include <metal/drivers/fixed-clock.h>
#include <metal/memory.h>
Expand All @@ -100,76 +102,76 @@
#include <metal/drivers/sifive_fe310-g000_prci.h>

/* From clock@0 */
struct __metal_driver_fixed_clock __metal_dt_clock_0;
extern struct __metal_driver_fixed_clock __metal_dt_clock_0;

/* From clock@2 */
struct __metal_driver_fixed_clock __metal_dt_clock_2;
extern struct __metal_driver_fixed_clock __metal_dt_clock_2;

/* From clock@5 */
struct __metal_driver_fixed_clock __metal_dt_clock_5;
extern struct __metal_driver_fixed_clock __metal_dt_clock_5;

struct metal_memory __metal_dt_mem_dtim_80000000;
extern struct metal_memory __metal_dt_mem_dtim_80000000;

struct metal_memory __metal_dt_mem_spi_10014000;
extern struct metal_memory __metal_dt_mem_spi_10014000;

/* From clint@2000000 */
struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;
extern struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;

/* From cpu@0 */
struct __metal_driver_cpu __metal_dt_cpu_0;
extern struct __metal_driver_cpu __metal_dt_cpu_0;

struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;
extern struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;

/* From interrupt_controller@c000000 */
struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;
extern struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;

/* From local_external_interrupts_0 */
struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;
extern struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;

/* From gpio@10012000 */
struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;
extern struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;

/* From led@0 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_0;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_0;

/* From led@1 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_1;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_1;

/* From led@2 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_2;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_2;

/* From pwm@10015000 */
struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;
extern struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;

/* From aon@10000000 */
struct __metal_driver_sifive_rtc0 __metal_dt_rtc_10000000;
extern struct __metal_driver_sifive_rtc0 __metal_dt_rtc_10000000;

/* From spi@10014000 */
struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;
extern struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;

/* From test@100000 */
struct __metal_driver_sifive_test0 __metal_dt_test_100000;
extern struct __metal_driver_sifive_test0 __metal_dt_test_100000;

/* From serial@10013000 */
struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;
extern struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;

/* From aon@10000000 */
struct __metal_driver_sifive_wdog0 __metal_dt_aon_10000000;
extern struct __metal_driver_sifive_wdog0 __metal_dt_aon_10000000;

/* From clock@3 */
struct __metal_driver_sifive_fe310_g000_hfrosc __metal_dt_clock_3;
extern struct __metal_driver_sifive_fe310_g000_hfrosc __metal_dt_clock_3;

/* From clock@1 */
struct __metal_driver_sifive_fe310_g000_hfxosc __metal_dt_clock_1;
extern struct __metal_driver_sifive_fe310_g000_hfxosc __metal_dt_clock_1;

/* From clock@6 */
struct __metal_driver_sifive_fe310_g000_lfrosc __metal_dt_clock_6;
extern struct __metal_driver_sifive_fe310_g000_lfrosc __metal_dt_clock_6;

/* From clock@4 */
struct __metal_driver_sifive_fe310_g000_pll __metal_dt_clock_4;
extern struct __metal_driver_sifive_fe310_g000_pll __metal_dt_clock_4;

/* From prci@10008000 */
struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000;
extern struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000;



Expand Down Expand Up @@ -977,6 +979,9 @@ static __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_select



/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */
static __inline__ unsigned long __metal_driver_sifive_wdog0_control_base(const struct metal_watchdog *const watchdog)
{
Expand Down Expand Up @@ -1263,6 +1268,11 @@ __asm__ (".weak __metal_uart_table");
struct __metal_driver_sifive_uart0 *__metal_uart_table[] = {
&__metal_dt_serial_10013000};

#define __METAL_DT_MAX_SIMUARTS 0

__asm__ (".weak __metal_simuart_table");
struct __metal_driver_sifive_simuart0 *__metal_simuart_table[] = {
NULL };
#define __METAL_DT_MAX_WDOGS 1

__asm__ (".weak __metal_wdog_table");
Expand Down
3 changes: 3 additions & 0 deletions bsp/qemu-sifive-s51/metal-inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_output_select
extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_selector(struct metal_uart *uart);


/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */
extern __inline__ unsigned long __metal_driver_sifive_wdog0_control_base(const struct metal_watchdog *const watchdog);
extern __inline__ unsigned long __metal_driver_sifive_wdog0_control_size(const struct metal_watchdog *const watchdog);
Expand Down
60 changes: 35 additions & 25 deletions bsp/qemu-sifive-s51/metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

#define METAL_MAX_UART_INTERRUPTS 1

#define METAL_MAX_SIMUART_INTERRUPTS 0


#include <metal/drivers/fixed-clock.h>
#include <metal/memory.h>
Expand All @@ -100,76 +102,76 @@
#include <metal/drivers/sifive_fe310-g000_prci.h>

/* From clock@0 */
struct __metal_driver_fixed_clock __metal_dt_clock_0;
extern struct __metal_driver_fixed_clock __metal_dt_clock_0;

/* From clock@2 */
struct __metal_driver_fixed_clock __metal_dt_clock_2;
extern struct __metal_driver_fixed_clock __metal_dt_clock_2;

/* From clock@5 */
struct __metal_driver_fixed_clock __metal_dt_clock_5;
extern struct __metal_driver_fixed_clock __metal_dt_clock_5;

struct metal_memory __metal_dt_mem_dtim_80000000;
extern struct metal_memory __metal_dt_mem_dtim_80000000;

struct metal_memory __metal_dt_mem_spi_10014000;
extern struct metal_memory __metal_dt_mem_spi_10014000;

/* From clint@2000000 */
struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;
extern struct __metal_driver_riscv_clint0 __metal_dt_clint_2000000;

/* From cpu@0 */
struct __metal_driver_cpu __metal_dt_cpu_0;
extern struct __metal_driver_cpu __metal_dt_cpu_0;

struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;
extern struct __metal_driver_riscv_cpu_intc __metal_dt_cpu_0_interrupt_controller;

/* From interrupt_controller@c000000 */
struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;
extern struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000;

/* From local_external_interrupts_0 */
struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;
extern struct __metal_driver_sifive_local_external_interrupts0 __metal_dt_local_external_interrupts_0;

/* From gpio@10012000 */
struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;
extern struct __metal_driver_sifive_gpio0 __metal_dt_gpio_10012000;

/* From led@0 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_0;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_0;

/* From led@1 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_1;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_1;

/* From led@2 */
struct __metal_driver_sifive_gpio_led __metal_dt_led_2;
extern struct __metal_driver_sifive_gpio_led __metal_dt_led_2;

/* From pwm@10015000 */
struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;
extern struct __metal_driver_sifive_pwm0 __metal_dt_pwm_10015000;

/* From aon@10000000 */
struct __metal_driver_sifive_rtc0 __metal_dt_rtc_10000000;
extern struct __metal_driver_sifive_rtc0 __metal_dt_rtc_10000000;

/* From spi@10014000 */
struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;
extern struct __metal_driver_sifive_spi0 __metal_dt_spi_10014000;

/* From test@100000 */
struct __metal_driver_sifive_test0 __metal_dt_test_100000;
extern struct __metal_driver_sifive_test0 __metal_dt_test_100000;

/* From serial@10013000 */
struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;
extern struct __metal_driver_sifive_uart0 __metal_dt_serial_10013000;

/* From aon@10000000 */
struct __metal_driver_sifive_wdog0 __metal_dt_aon_10000000;
extern struct __metal_driver_sifive_wdog0 __metal_dt_aon_10000000;

/* From clock@3 */
struct __metal_driver_sifive_fe310_g000_hfrosc __metal_dt_clock_3;
extern struct __metal_driver_sifive_fe310_g000_hfrosc __metal_dt_clock_3;

/* From clock@1 */
struct __metal_driver_sifive_fe310_g000_hfxosc __metal_dt_clock_1;
extern struct __metal_driver_sifive_fe310_g000_hfxosc __metal_dt_clock_1;

/* From clock@6 */
struct __metal_driver_sifive_fe310_g000_lfrosc __metal_dt_clock_6;
extern struct __metal_driver_sifive_fe310_g000_lfrosc __metal_dt_clock_6;

/* From clock@4 */
struct __metal_driver_sifive_fe310_g000_pll __metal_dt_clock_4;
extern struct __metal_driver_sifive_fe310_g000_pll __metal_dt_clock_4;

/* From prci@10008000 */
struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000;
extern struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000;



Expand Down Expand Up @@ -977,6 +979,9 @@ static __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_select



/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */
static __inline__ unsigned long __metal_driver_sifive_wdog0_control_base(const struct metal_watchdog *const watchdog)
{
Expand Down Expand Up @@ -1263,6 +1268,11 @@ __asm__ (".weak __metal_uart_table");
struct __metal_driver_sifive_uart0 *__metal_uart_table[] = {
&__metal_dt_serial_10013000};

#define __METAL_DT_MAX_SIMUARTS 0

__asm__ (".weak __metal_simuart_table");
struct __metal_driver_sifive_simuart0 *__metal_simuart_table[] = {
NULL };
#define __METAL_DT_MAX_WDOGS 1

__asm__ (".weak __metal_wdog_table");
Expand Down
5 changes: 5 additions & 0 deletions bsp/qemu-sifive-u54/metal-inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_output_select
extern __inline__ unsigned long __metal_driver_sifive_uart0_pinmux_source_selector(struct metal_uart *uart);


/* --------------------- sifive_simuart0 ------------ */


/* --------------------- sifive_wdog0 ------------ */


Expand Down Expand Up @@ -155,6 +158,8 @@ struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000 = {
.init_done = 0,
};

struct metal_pmp __metal_dt_pmp;

/* From test@100000 */
struct __metal_driver_sifive_test0 __metal_dt_test_100000 = {
.shutdown.vtable = &__metal_driver_vtable_sifive_test0.shutdown,
Expand Down
Loading

0 comments on commit ec206f6

Please sign in to comment.