Skip to content

Commit c17fcf5

Browse files
diegosueiroMaureenHelm
authored andcommitted
boards: Add support for WaRP7 board
This patch is to add support for the WaRP7 board which has an i.MX7 Solo SoC. The Zephyr is running on the Cortex M4 core and the following features were validated on this board: * GPIO: User Switch detection and sensors interrupt * UART: Zephyr console * I2C: Communication with fxos8700 and fxas21002 sensors Signed-off-by: Diego Sueiro <[email protected]>
1 parent d1219f4 commit c17fcf5

File tree

11 files changed

+726
-0
lines changed

11 files changed

+726
-0
lines changed

boards/arm/warp7_m4/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2017, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
zephyr_library()
8+
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
9+
zephyr_library_sources(pinmux.c)

boards/arm/warp7_m4/Kconfig.board

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Kconfig - WaRP7 iMX7S M4 board
2+
#
3+
# Copyright (c) 2018, Diego Sueiro
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
config BOARD_WARP7_M4
9+
bool "WaRP7 iMX7 Solo"
10+
depends on SOC_SERIES_IMX7_M4
11+
select SOC_PART_NUMBER_MCIMX7S3DVK08SA
12+
select HAS_DTS_I2C
13+
select HAS_DTS_I2C_DEVICE
14+
select HAS_DTS_GPIO
15+
select HAS_DTS_GPIO_DEVICE
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Kconfig - WaRP7 iMX7S M4 board
2+
#
3+
# Copyright (c) 2018, Diego Sueiro
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
if BOARD_WARP7_M4
9+
10+
config BOARD
11+
default "warp7_m4"
12+
13+
if GPIO_IMX
14+
15+
config GPIO_IMX_PORT_7
16+
def_bool y
17+
18+
endif # GPIO_IMX
19+
20+
if UART_IMX
21+
22+
config UART_IMX_UART_2
23+
def_bool y
24+
25+
config UART_IMX_UART_6
26+
def_bool y
27+
28+
endif # UART_IMX
29+
30+
if I2C_IMX
31+
32+
config I2C_4
33+
def_bool y
34+
35+
endif # I2C_IMX
36+
37+
if FXOS8700
38+
39+
config FXOS8700_DRDY_INT1
40+
def_bool y
41+
42+
endif # FXOS8700
43+
44+
if FXAS21002
45+
46+
config FXAS21002_DRDY_INT1
47+
def_bool y
48+
49+
endif # FXAS21002
50+
51+
endif # BOARD_WARP7_M4

boards/arm/warp7_m4/board.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2018, Diego Sueiro
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef __INC_BOARD_H
8+
#define __INC_BOARD_H
9+
10+
#include <soc.h>
11+
12+
#endif /* __INC_BOARD_H */
304 KB
Loading

0 commit comments

Comments
 (0)