67 lines
1.9 KiB
C
67 lines
1.9 KiB
C
/*
|
|
* Copyright (c) 2015 Intel Corporation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @brief board configuration macros for the Quark SE
|
|
* This header file is used to specify and describe board-level aspects for
|
|
* the Quark SE Platform.
|
|
*/
|
|
|
|
#ifndef __SOC_H_
|
|
#define __SOC_H_
|
|
|
|
#include <stdint.h>
|
|
#include <misc/util.h>
|
|
#include <uart.h>
|
|
|
|
#ifdef CONFIG_IOAPIC
|
|
#include <drivers/ioapic.h>
|
|
#endif
|
|
|
|
#define INT_VEC_IRQ0 0x20 /* Vector number for IRQ0 */
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
/* Base Register */
|
|
#define SCSS_REGISTER_BASE 0xB0800000
|
|
|
|
#define INT_UNMASK_IA (~0x00000001)
|
|
|
|
/* Clock */
|
|
#define CLOCK_PERIPHERAL_BASE_ADDR (SCSS_REGISTER_BASE + 0x18)
|
|
#define CLOCK_EXTERNAL_BASE_ADDR (SCSS_REGISTER_BASE + 0x24)
|
|
#define CLOCK_SENSOR_BASE_ADDR (SCSS_REGISTER_BASE + 0x28)
|
|
#define CLOCK_SYSTEM_CLOCK_CONTROL (SCSS_REGISTER_BASE + SCSS_CCU_SYS_CLK_CTL)
|
|
|
|
/* ARC INIT */
|
|
#define RESET_VECTOR CONFIG_SS_RESET_VECTOR
|
|
#define SCSS_SS_CFG 0x0600
|
|
#define SCSS_SS_STS 0x0604
|
|
#define ARC_HALT_INT_REDIR (1 << 26)
|
|
#define ARC_HALT_REQ_A (1 << 25)
|
|
#define ARC_RUN_REQ_A (1 << 24)
|
|
#define ARC_RUN (ARC_HALT_INT_REDIR | ARC_RUN_REQ_A)
|
|
#define ARC_HALT (ARC_HALT_INT_REDIR | ARC_HALT_REQ_A)
|
|
|
|
/*
|
|
* PINMUX configuration settings
|
|
*/
|
|
#define PINMUX_BASE_ADDR 0xb0800900
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#endif /* __SOC_H_ */
|