Skip to content
Permalink
Browse files

arm: mps_an521: Add support for the AN521 on MPS2+

The AN521 is a Soft Macro Model implementation of the SSE-200 subsystem
with SIE-200 and CMSDK components targeting the MPS2+ board. The
SSE-200 subsystem implements two Cortex-M33 cores.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Signed-off-by: Karl Zhang <karl.zhang@linaro.org>
  • Loading branch information...
galak committed May 6, 2019
1 parent b52abfe commit 502094b096206245a07031521d7252244c8b0d42
@@ -0,0 +1,9 @@
#
# Copyright (c) 2019 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#

zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers)
@@ -0,0 +1,9 @@
#
# Copyright (c) 2018-2019 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#

config BOARD_MPS2_AN521
bool "ARM Cortex-M33 SMM on V2M-MPS2 (AN521)"
depends on SOC_SERIES_MPS2
@@ -0,0 +1,95 @@
#
# Copyright (c) 2018-2019 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#

if BOARD_MPS2_AN521

if TRUSTED_EXECUTION_SECURE || !TRUSTED_EXECUTION_NONSECURE

config BOARD
default "mps2_an521"

endif

if TRUSTED_EXECUTION_NONSECURE

config BOARD
default "mps2_an521_nonsecure"

endif

if GPIO

config GPIO_CMSDK_AHB
def_bool y

config GPIO_CMSDK_AHB_PORT0
def_bool y

config GPIO_CMSDK_AHB_PORT1
def_bool y

config GPIO_CMSDK_AHB_PORT2
def_bool y

config GPIO_CMSDK_AHB_PORT3
def_bool y

endif # GPIO

if PINMUX

config PINMUX_MPS2
def_bool y

endif # PINMUX

if SERIAL

config UART_CMSDK_APB
def_bool y

config UART_INTERRUPT_DRIVEN
def_bool y

endif # SERIAL

if WATCHDOG

config WDOG_CMSDK_APB
def_bool y

endif # WATCHDOG

if COUNTER

if TIMER_TMR_CMSDK_APB

config TIMER_TMR_CMSDK_APB_0
def_bool y

config TIMER_TMR_CMSDK_APB_1
def_bool y

endif # TIMER_TMR_CMSDK_APB


if TIMER_DTMR_CMSDK_APB

config TIMER_DTMR_CMSDK_APB_0
def_bool y

endif # TIMER_DTMR_CMSDK_APB

endif # COUNTER

if I2C

config I2C_SBCON
def_bool y

endif # I2C

endif
@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018-2019 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef __INC_BOARD_H
#define __INC_BOARD_H

#include <soc.h>

#if defined(CONFIG_GPIO_MMIO32)

/* USERLED0 */
#define LED0_GPIO_PORT FPGAIO_LED0_GPIO_NAME
#define LED0_GPIO_PIN FPGAIO_LED0_USERLED0

/* USERLED1 */
#define LED1_GPIO_PORT FPGAIO_LED0_GPIO_NAME
#define LED1_GPIO_PIN FPGAIO_LED0_USERLED1

/* USERPB0 */
#define SW0_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
#define SW0_GPIO_PIN FPGAIO_BUTTON_USERPB0

/* USERPB1 */
#define SW1_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
#define SW1_GPIO_PIN FPGAIO_BUTTON_USERPB1

#endif /* CONFIG_GPIO_MMIO32 */

#endif /* __INC_BOARD_H */
Binary file not shown.

0 comments on commit 502094b

Please sign in to comment.
You can’t perform that action at this time.