summaryrefslogtreecommitdiff
path: root/riscv/riscv-probe/env/virt/setup.c
blob: dcd87a3da3d4e418108a32e9dfad0f3d6d35455b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// See LICENSE for license details.

#include "femto.h"

auxval_t __auxv[] = {
    { UART0_CLOCK_FREQ,         1843200    },
    { UART0_BAUD_RATE,          115200     },
    { NS16550A_UART0_CTRL_ADDR, 0x10000000 },
    { SIFIVE_TEST_CTRL_ADDR,    0x100000   },
    { 0, 0 }
};

void arch_setup()
{
    register_console(&console_ns16550a);
    register_poweroff(&poweroff_sifive_test);
}