1 /* 2 * Copyright (c) 2020 Antmicro <www.antmicro.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/init.h> 8 #include <soc.h> 9 #include <board.h> 10 eos_s3_board_init(void)11static int eos_s3_board_init(void) 12 { 13 14 /* IO MUX setup for UART */ 15 eos_s3_io_mux(UART_TX_PAD, UART_TX_PAD_CFG); 16 eos_s3_io_mux(UART_RX_PAD, UART_RX_PAD_CFG); 17 18 IO_MUX->UART_rxd_SEL = UART_RX_SEL; 19 20 return 0; 21 } 22 23 SYS_INIT(eos_s3_board_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY); 24