drivers: Add infrastructure for QMSI drivers
This patch introduces the infrastructure required to enable QMSI drivers. QMSI drivers are shim drivers based on drivers provided by QMSI BSP. The BSP provides a static library (libqmsi) which implements several drivers for peripherals from Intel MCUs. Next patch will introduce the first QMSI driver (watchdog driver) which will rely on the infrastructure introduced by this patch. Change-Id: Ic7da5d0249af0629eef8c91d124a153f84d4a76e Signed-off-by: Andre Guedes <andre.guedes@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
49abcb3fff
commit
635351bcdd
3 changed files with 42 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -559,6 +559,11 @@ $(if $(CROSS_COMPILE),, \
|
||||||
$(error ZEPHYR_GCC_VARIANT is not set. ))
|
$(error ZEPHYR_GCC_VARIANT is not set. ))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef CONFIG_QMSI_DRIVERS
|
||||||
|
LIB_INCLUDE_DIR += -L$(CONFIG_QMSI_INSTALL_PATH:"%"=%)/lib
|
||||||
|
ALL_LIBS += qmsi
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_MINIMAL_LIBC
|
ifdef CONFIG_MINIMAL_LIBC
|
||||||
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -61,4 +61,6 @@ source "drivers/ipm/Kconfig"
|
||||||
|
|
||||||
source "drivers/aio/Kconfig"
|
source "drivers/aio/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/qmsi/Kconfig"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
35
drivers/qmsi/Kconfig
Normal file
35
drivers/qmsi/Kconfig
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Kconfig - QMSI drivers configuration options
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
config QMSI_DRIVERS
|
||||||
|
depends on CPU_MINUTEIA
|
||||||
|
bool "Enable QMSI drivers"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
This option enables QMSI device drivers. These drivers are actually shim
|
||||||
|
drivers based on drivers provided by QMSI BSP. The BSP provides a static
|
||||||
|
library (libqmsi) which implements several drivers for peripherals from
|
||||||
|
Intel MCUs (e.g. Quark SE and Quark D2000).
|
||||||
|
|
||||||
|
config QMSI_INSTALL_PATH
|
||||||
|
depends on QMSI_DRIVERS
|
||||||
|
string "QMSI install path"
|
||||||
|
help
|
||||||
|
This option holds the path where the QMSI library and headers are
|
||||||
|
installed. Make sure this option is properly set when QMSI_DRIVERS
|
||||||
|
is enabled otherwise the build will fail.
|
Loading…
Add table
Add a link
Reference in a new issue