From dad2a77e6b926c663d47866d8004d18cc748043d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 5 Nov 2016 16:06:41 +0200 Subject: [PATCH] boards: Add support for Quark SE C1000_BLE The Quark SE C1000 BLE Core is a nRF51822-QFAA, with 16kB of RAM and 256kB of flash. The configuration is otherwise similar to the Arduino 101 BLE, except that the UART RTS pin is the same as that used by nrf51_pca10028. Change-Id: I88cb18876bdde65abcf9a499894f70802046c824 Signed-off-by: Johan Hedberg --- boards/arm/quark_se_c1000_ble/Kconfig.board | 19 ++++++++ .../arm/quark_se_c1000_ble/Kconfig.defconfig | 47 +++++++++++++++++++ boards/arm/quark_se_c1000_ble/Makefile | 2 + boards/arm/quark_se_c1000_ble/board.h | 22 +++++++++ .../quark_se_c1000_ble_defconfig | 13 +++++ scripts/sanity_chk/arches/arm.ini | 2 +- 6 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 boards/arm/quark_se_c1000_ble/Kconfig.board create mode 100644 boards/arm/quark_se_c1000_ble/Kconfig.defconfig create mode 100644 boards/arm/quark_se_c1000_ble/Makefile create mode 100644 boards/arm/quark_se_c1000_ble/board.h create mode 100644 boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig diff --git a/boards/arm/quark_se_c1000_ble/Kconfig.board b/boards/arm/quark_se_c1000_ble/Kconfig.board new file mode 100644 index 00000000000..be80eb36210 --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Kconfig.board @@ -0,0 +1,19 @@ +# Kconfig - Quark SE C1000 BLE (nRF51822) configuration +# +# Copyright (c) 2016 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. + +config BOARD_QUARK_SE_C1000_BLE + bool "Quark SE C1000 Devboard - BLE Core" + depends on SOC_NRF51822_QFAA diff --git a/boards/arm/quark_se_c1000_ble/Kconfig.defconfig b/boards/arm/quark_se_c1000_ble/Kconfig.defconfig new file mode 100644 index 00000000000..05571556d9d --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Kconfig.defconfig @@ -0,0 +1,47 @@ +# Kconfig - Quark SE C1000 BLE (nRF51822) configuration +# +# Copyright (c) 2016 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. + +if BOARD_QUARK_SE_C1000_BLE + +config BOARD + default quark_se_c1000_ble + +if UART_NRF5 + +config GPIO + default y + +config GPIO_NRF5 + default y + +config GPIO_NRF5_P0 + default y + +config UART_NRF5_GPIO_TX_PIN + default 9 + +config UART_NRF5_GPIO_RX_PIN + default 11 + +config UART_NRF5_GPIO_RTS_PIN + default 8 + +config UART_NRF5_GPIO_CTS_PIN + default 10 + +endif # UART_NRF5 + +endif # BOARD_QUARK_SE_C1000_BLE diff --git a/boards/arm/quark_se_c1000_ble/Makefile b/boards/arm/quark_se_c1000_ble/Makefile new file mode 100644 index 00000000000..c925263c43a --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Makefile @@ -0,0 +1,2 @@ +# No C files (yet) +obj- += dummy.o diff --git a/boards/arm/quark_se_c1000_ble/board.h b/boards/arm/quark_se_c1000_ble/board.h new file mode 100644 index 00000000000..66dd23fd7db --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/board.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2016 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. + */ + +#ifndef __INC_BOARD_H +#define __INC_BOARD_H + +#include + +#endif /* __INC_BOARD_H */ diff --git a/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig b/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig new file mode 100644 index 00000000000..0f3a6e6510e --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig @@ -0,0 +1,13 @@ +CONFIG_ARM=y +CONFIG_SOC_FAMILY_NRF5=y +CONFIG_SOC_SERIES_NRF51X=y +CONFIG_SOC_NRF51822_QFAA=y +CONFIG_BOARD_QUARK_SE_C1000_BLE=y + +# enable uart driver +CONFIG_SERIAL=y +CONFIG_UART_NRF5=y + +# bluetooth +CONFIG_BLUETOOTH=y +CONFIG_BLUETOOTH_CONTROLLER=y diff --git a/scripts/sanity_chk/arches/arm.ini b/scripts/sanity_chk/arches/arm.ini index dd60faeae10..7caa4d9a7b1 100644 --- a/scripts/sanity_chk/arches/arm.ini +++ b/scripts/sanity_chk/arches/arm.ini @@ -3,7 +3,7 @@ name = arm 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 + arduino_101_ble cc3200_launchxl quark_se_c1000_ble supported_toolchains = zephyr gccarmemb [qemu_cortex_m3]