#ifndef SIFIVE_HIFIVE1_REVB__METAL_PLATFORM_H #define SIFIVE_HIFIVE1_REVB__METAL_PLATFORM_H /* From clock@0 */ #define METAL_FIXED_CLOCK_0_CLOCK_FREQUENCY 16000000UL /* From clock@2 */ #define METAL_FIXED_CLOCK_2_CLOCK_FREQUENCY 72000000UL /* From clock@5 */ #define METAL_FIXED_CLOCK_5_CLOCK_FREQUENCY 32000000UL #define METAL_FIXED_CLOCK /* From clint@2000000 */ #define METAL_RISCV_CLINT0_2000000_BASE_ADDRESS 33554432UL #define METAL_RISCV_CLINT0_2000000_SIZE 65536UL #define METAL_RISCV_CLINT0 #define METAL_RISCV_CLINT0_MSIP_BASE 0UL #define METAL_RISCV_CLINT0_MTIMECMP_BASE 16384UL #define METAL_RISCV_CLINT0_MTIME 49144UL /* From interrupt_controller@c000000 */ #define METAL_RISCV_PLIC0_C000000_BASE_ADDRESS 201326592UL #define METAL_RISCV_PLIC0_C000000_SIZE 67108864UL #define METAL_RISCV_PLIC0_C000000_RISCV_MAX_PRIORITY 7UL #define METAL_RISCV_PLIC0_C000000_RISCV_NDEV 27UL #define METAL_RISCV_PLIC0 #define METAL_RISCV_PLIC0_PRIORITY_BASE 0UL #define METAL_RISCV_PLIC0_PENDING_BASE 4096UL #define METAL_RISCV_PLIC0_ENABLE_BASE 8192UL #define METAL_RISCV_PLIC0_THRESHOLD 2097152UL #define METAL_RISCV_PLIC0_CLAIM 2097156UL /* From pmp@0 */ #define METAL_RISCV_PMP_0_NUM_REGIONS 8UL #define METAL_RISCV_PMP /* From prci@10008000 */ #define METAL_SIFIVE_FE310_G000_PRCI_10008000_BASE_ADDRESS 268468224UL #define METAL_SIFIVE_FE310_G000_PRCI_10008000_SIZE 32768UL #define METAL_SIFIVE_FE310_G000_PRCI #define METAL_SIFIVE_FE310_G000_PRCI_HFROSCCFG 0UL #define METAL_SIFIVE_FE310_G000_PRCI_HFXOSCCFG 4UL #define METAL_SIFIVE_FE310_G000_PRCI_PLLCFG 8UL #define METAL_SIFIVE_FE310_G000_PRCI_PLLOUTDIV 12UL /* From gpio@10012000 */ #define METAL_SIFIVE_GPIO0_10012000_BASE_ADDRESS 268509184UL #define METAL_SIFIVE_GPIO0_10012000_SIZE 4096UL #define METAL_SIFIVE_GPIO0 #define METAL_SIFIVE_GPIO0_VALUE 0UL #define METAL_SIFIVE_GPIO0_INPUT_EN 4UL #define METAL_SIFIVE_GPIO0_OUTPUT_EN 8UL #define METAL_SIFIVE_GPIO0_PORT 12UL #define METAL_SIFIVE_GPIO0_PUE 16UL #define METAL_SIFIVE_GPIO0_DS 20UL #define METAL_SIFIVE_GPIO0_RISE_IE 24UL #define METAL_SIFIVE_GPIO0_RISE_IP 28UL #define METAL_SIFIVE_GPIO0_FALL_IE 32UL #define METAL_SIFIVE_GPIO0_FALL_IP 36UL #define METAL_SIFIVE_GPIO0_HIGH_IE 40UL #define METAL_SIFIVE_GPIO0_HIGH_IP 44UL #define METAL_SIFIVE_GPIO0_LOW_IE 48UL #define METAL_SIFIVE_GPIO0_LOW_IP 52UL #define METAL_SIFIVE_GPIO0_IOF_EN 56UL #define METAL_SIFIVE_GPIO0_IOF_SEL 60UL #define METAL_SIFIVE_GPIO0_OUT_XOR 64UL /* From spi@10014000 */ #define METAL_SIFIVE_SPI0_10014000_BASE_ADDRESS 268517376UL #define METAL_SIFIVE_SPI0_10014000_SIZE 4096UL #define METAL_SIFIVE_SPI0 #define METAL_SIFIVE_SPI0_SCKDIV 0UL #define METAL_SIFIVE_SPI0_SCKMODE 4UL #define METAL_SIFIVE_SPI0_CSID 16UL #define METAL_SIFIVE_SPI0_CSDEF 20UL #define METAL_SIFIVE_SPI0_CSMODE 24UL #define METAL_SIFIVE_SPI0_DELAY0 40UL #define METAL_SIFIVE_SPI0_DELAY1 44UL #define METAL_SIFIVE_SPI0_FMT 64UL #define METAL_SIFIVE_SPI0_TXDATA 72UL #define METAL_SIFIVE_SPI0_RXDATA 76UL #define METAL_SIFIVE_SPI0_TXMARK 80UL #define METAL_SIFIVE_SPI0_RXMARK 84UL #define METAL_SIFIVE_SPI0_FCTRL 96UL #define METAL_SIFIVE_SPI0_FFMT 100UL #define METAL_SIFIVE_SPI0_IE 112UL #define METAL_SIFIVE_SPI0_IP 116UL /* From serial@10013000 */ #define METAL_SIFIVE_UART0_10013000_BASE_ADDRESS 268513280UL #define METAL_SIFIVE_UART0_10013000_SIZE 4096UL #define METAL_SIFIVE_UART0 #define METAL_SIFIVE_UART0_TXDATA 0UL #define METAL_SIFIVE_UART0_RXDATA 4UL #define METAL_SIFIVE_UART0_TXCTRL 8UL #define METAL_SIFIVE_UART0_RXCTRL 12UL #define METAL_SIFIVE_UART0_IE 16UL #define METAL_SIFIVE_UART0_IP 20UL #define METAL_SIFIVE_UART0_DIV 24UL #endif /* SIFIVE_HIFIVE1_REVB__METAL_PLATFORM_H*/