zephyr/soc/arc/snps_emsdp/soc.h
Watson Zeng f60c9bd0a5 boards: arc: emsdp: fix secure config for emsdp_em7d_esp
emsdp_em7d_esp is a board with secure just like em_starterkit_em7d,
but the secure feature not configed in defconfig file. we need to add
below configs in emsdp_em7d_esp_defconfig files:
    CONFIG_ARC_HAS_SECURE=y
    CONFIG_TRUSTED_EXECUTION_SECURE=y
when secure feature enabled, we use secure timer for system tick, so
we need to add below macro for secure timer:
    #define  IRQ_SEC_TIMER0  20

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2020-06-09 11:30:37 +02:00

35 lines
616 B
C

/*
* Copyright (c) 2019 Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @brief Board configuration macros for EM Software Development Platform 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(100)
/* ARC EM Core IRQs */
#define IRQ_TIMER0 16
#define IRQ_SEC_TIMER0 20
#ifndef _ASMLANGUAGE
#include <sys/util.h>
#include <random/rand32.h>
#endif /* !_ASMLANGUAGE */
#endif /* _SOC_H_ */