Linux preempt-rt

Check our new training course

Real-Time Linux with PREEMPT_RT

Check our new training course
with Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

#ifndef __RISCV_ITE_SOC_H_
#define __RISCV_ITE_SOC_H_
/*
 * Copyright (c) 2020 ITE Corporation. All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 */
#include <soc_common.h>
#include <devicetree.h>

#define UART_REG_ADDR_INTERVAL 1

/* lib-c hooks required RAM defined variables */
#define RISCV_RAM_BASE               CONFIG_SRAM_BASE_ADDRESS
#define RISCV_RAM_SIZE               KB(CONFIG_SRAM_SIZE)

#define ite_write(reg, reg_size, val) \
			((*((volatile unsigned char *)(reg))) = val)
#define ite_read(reg, reg_size) \
			(*((volatile unsigned char *)(reg)))

/* PINMUX config */
#define IT8XXX2_PINMUX_FUNC_1 PINMUX_FUNC_A
#define IT8XXX2_PINMUX_FUNC_2 PINMUX_FUNC_B
#define IT8XXX2_PINMUX_FUNC_3 PINMUX_FUNC_C
#define IT8XXX2_PINMUX_FUNC_4 PINMUX_FUNC_D
#define IT8XXX2_PINMUX_PINS   8


#endif /* __RISCV_ITE_SOC_H_ */