2018-11-16 12:10:55 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Board configuration macros for EM Starter kit board
|
|
|
|
*
|
|
|
|
* This header file is used to specify and describe board-level
|
|
|
|
* aspects for the target.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SOC_H_
|
|
|
|
#define _SOC_H_
|
|
|
|
|
2019-06-26 22:33:55 +08:00
|
|
|
#include <sys/util.h>
|
2018-11-16 12:10:55 +08:00
|
|
|
|
|
|
|
/* default system clock */
|
|
|
|
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(16)
|
|
|
|
|
|
|
|
/*
|
2018-12-12 19:16:36 +08:00
|
|
|
* UART: use lr and sr to access subsystem uart IP
|
2018-11-16 12:10:55 +08:00
|
|
|
*/
|
|
|
|
#define UART_NS16550_ACCESS_IOPORT
|
2019-01-29 14:25:56 +08:00
|
|
|
#define UART_REG_ADDR_INTERVAL 4
|
2018-11-16 12:10:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* ARC EM Core IRQs */
|
|
|
|
#define IRQ_TIMER0 16
|
|
|
|
#define IRQ_TIMER1 17
|
|
|
|
#include "soc_irq.h"
|
|
|
|
|
|
|
|
#define BASE_ADDR_SYSCONFIG 0xF000A000
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
|
|
|
|
2019-06-26 22:33:55 +08:00
|
|
|
#include <sys/util.h>
|
2018-11-16 12:10:55 +08:00
|
|
|
#include <random/rand32.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* UARTs: UART0 & UART1 & UART2
|
|
|
|
*/
|
2018-12-12 19:16:36 +08:00
|
|
|
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS 0 /* Default */
|
|
|
|
#define DT_UART_NS16550_PORT_1_IRQ_FLAGS 0 /* Default */
|
|
|
|
#define DT_UART_NS16550_PORT_2_IRQ_FLAGS 0 /* Default */
|
2018-11-16 12:10:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
|
|
|
|
#endif /* _SOC_H_ */
|