2020-01-23 17:22:52 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Antmicro <www.antmicro.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 16:56:39 +08:00
|
|
|
#include <zephyr/init.h>
|
2020-01-23 17:22:52 +08:00
|
|
|
#include <soc.h>
|
|
|
|
#include <board.h>
|
|
|
|
|
|
|
|
static int eos_s3_board_init(const struct device *arg)
|
|
|
|
{
|
|
|
|
ARG_UNUSED(arg);
|
|
|
|
|
|
|
|
/* IO MUX setup for UART */
|
|
|
|
eos_s3_io_mux(UART_TX_PAD, UART_TX_PAD_CFG);
|
|
|
|
eos_s3_io_mux(UART_RX_PAD, UART_RX_PAD_CFG);
|
|
|
|
|
|
|
|
IO_MUX->UART_rxd_SEL = UART_RX_SEL;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
SYS_INIT(eos_s3_board_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|