diff --git a/MAINTAINERS b/MAINTAINERS index 001c9f4e3c4..acb7285c652 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -144,6 +144,11 @@ M: Ricardo Salveti S: Supported F: boards/arm/nucleo_f401re/ +BOARDS/ARM - ARM LTD V2M Beetle +M: Vincenzo Frascino +S: Supported +F: boards/arm/v2m_beetle/ + BOARDS/NIOS2 - ALTERA MAX10 M: Andrew Boie S: Supported diff --git a/boards/arm/v2m_beetle/Kconfig.board b/boards/arm/v2m_beetle/Kconfig.board new file mode 100644 index 00000000000..59619613aea --- /dev/null +++ b/boards/arm/v2m_beetle/Kconfig.board @@ -0,0 +1,22 @@ +# Kconfig - ARM V2M Beetle Board configuration options + +# +# Copyright (c) 2016 Linaro Limited +# +# 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. +# + +# V2M (V2 = Versatile Express, M = Motherboard) +config BOARD_V2M_BEETLE + bool "ARM V2M Beetle Board" + depends on SOC_BEETLE_R0 diff --git a/boards/arm/v2m_beetle/Kconfig.defconfig b/boards/arm/v2m_beetle/Kconfig.defconfig new file mode 100644 index 00000000000..4ad4386f194 --- /dev/null +++ b/boards/arm/v2m_beetle/Kconfig.defconfig @@ -0,0 +1,73 @@ +# Kconfig - ARM V2M Beetle Board configuration options + +# +# Copyright (c) 2016 Linaro Limited +# +# 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. +# + +if BOARD_V2M_BEETLE + +config BOARD + default v2m_beetle + +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_BEETLE + def_bool y + +if PINMUX_DEV + +config PINMUX_DEV_ARM_V2M_BEETLE + def_bool y + +endif # PINMUX_DEV + +endif # PINMUX + +if SERIAL + +config UART_CMSDK_APB + def_bool y + +config UART_CMSDK_APB_PORT0 + def_bool y + +config UART_CMSDK_APB_PORT1 + def_bool y + +config UART_INTERRUPT_DRIVEN + def_bool y + +endif # SERIAL + +endif # BOARD_V2M_BEETLE diff --git a/boards/arm/v2m_beetle/Makefile b/boards/arm/v2m_beetle/Makefile new file mode 100644 index 00000000000..e2c3669d37e --- /dev/null +++ b/boards/arm/v2m_beetle/Makefile @@ -0,0 +1,21 @@ +# Makefile - ARM V2M Beetle Board build options + +# +# Copyright (c) 2016 Linaro Limited +# +# 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. +# + +# Trick the build system into generating built-in.o even though there +# are no C files (yet) to compile +obj- += dummy.o diff --git a/boards/arm/v2m_beetle/board.h b/boards/arm/v2m_beetle/board.h new file mode 100644 index 00000000000..401f449cd52 --- /dev/null +++ b/boards/arm/v2m_beetle/board.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2016 Linaro Limited + * + * 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. + */ + +#ifndef __INC_BOARD_H +#define __INC_BOARD_H + +#include + +#endif /* __INC_BOARD_H */ diff --git a/boards/arm/v2m_beetle/v2m_beetle_defconfig b/boards/arm/v2m_beetle/v2m_beetle_defconfig new file mode 100644 index 00000000000..1c6fdfe201a --- /dev/null +++ b/boards/arm/v2m_beetle/v2m_beetle_defconfig @@ -0,0 +1,38 @@ +# defconfig - ARM V2M Beetle Board configuration options + +# +# Copyright (c) 2016 Linaro Limited +# +# 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. +# + +CONFIG_ARM=y +CONFIG_SOC_FAMILY_ARM=y +CONFIG_SOC_BEETLE_R0=y +CONFIG_SOC_SERIES_BEETLE=y +CONFIG_BOARD_V2M_BEETLE=y +CONFIG_CORTEX_M_SYSTICK=y +# 24MHz system clock +CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=24000000 + +# GPIOs +CONFIG_GPIO=y + +# PinMuxing +CONFIG_PINMUX=y + +# Serial +CONFIG_CONSOLE=y +CONFIG_SERIAL=y +CONFIG_UART_CONSOLE=y +CONFIG_UART_CONSOLE_ON_DEV_NAME="UART_1" diff --git a/scripts/sanity_chk/arches/arm.ini b/scripts/sanity_chk/arches/arm.ini index 72c8916b1e1..bcaed30bb30 100644 --- a/scripts/sanity_chk/arches/arm.ini +++ b/scripts/sanity_chk/arches/arm.ini @@ -4,8 +4,8 @@ platforms = qemu_cortex_m3 frdm_k64f arduino_due nucleo_f103rb stm32_mini_a15 olimexino_stm32 96b_nitrogen nrf52_pca10040 hexiwear_k64 nrf51_pca10028 nucleo_f401re 96b_carbon nrf51_blenano arduino_101_ble cc3200_launchxl quark_se_c1000_ble bbc_microbit + v2m_beetle supported_toolchains = zephyr gccarmemb [qemu_cortex_m3] qemu_support = true -