zephyr/soc/arc/snps_arc_iot/soc.h
Timo Teräs 6fd168e9a1 driver: uart: ns16550: convert to DT_INST_*
Change to code to use the automatically generated DT_INST_*
defines and remove the now unneeded configs and fixups.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
2020-03-14 02:22:05 +02:00

45 lines
785 B
C

/*
* 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_
#include <sys/util.h>
/* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(16)
/*
* UART: use lr and sr to access subsystem uart IP
*/
#define UART_NS16550_ACCESS_IOPORT
#define UART_REG_ADDR_INTERVAL 4
/* ARC EM Core IRQs */
#define IRQ_TIMER0 16
#define IRQ_TIMER1 17
#include "soc_irq.h"
#define BASE_ADDR_SYSCONFIG 0xF000A000
#ifndef _ASMLANGUAGE
#include <sys/util.h>
#include <random/rand32.h>
#endif /* !_ASMLANGUAGE */
#endif /* _SOC_H_ */