kconfig: add CAVS_VERSION_* symbols for CAVS platforms

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
Bartosz Kokoszko 2019-02-05 11:56:20 +01:00 committed by Liam Girdwood
parent 8d064e9ca3
commit 28d156d16d
3 changed files with 70 additions and 0 deletions

View File

@ -8,3 +8,22 @@ config DMIC
Select for DMIC driver
endmenu
config CAVS_VERSION_1_5
depends on CAVS
bool
help
Select for CAVS version 1.5
config CAVS_VERSION_1_8
depends on CAVS && !CAVS_VERSION_1_5
bool
help
Select for CAVS version 1.8
config CAVS_VERSION_2_0
depends on CAVS && !CAVS_VERSION_1_5 && !CAVS_VERSION_1_8
bool
help
Select for CAVS version 2.0

View File

@ -0,0 +1,47 @@
/*
* Copyright (c) 2018, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Intel Corporation nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
*/
#ifndef __INCLUDE_CAVS_VERSION_H__
#define __INCLUDE_CAVS_VERSION_H__
#define CAVS_VERSION_1_5 0x10500
#define CAVS_VERSION_1_8 0x10800
#define CAVS_VERSION_2_0 0x20000
/* CAVS version defined by CONFIG_CAVS_VER_*/
#if defined(CONFIG_CAVS_VERSION_1_5)
#define CAVS_VERSION CAVS_VERSION_1_5
#elif defined(CONFIG_CAVS_VERSION_1_8)
#define CAVS_VERSION CAVS_VERSION_1_8
#elif defined(CONFIG_CAVS_VERSION_2_0)
#define CAVS_VERSION CAVS_VERSION_2_0
#endif
#endif

View File

@ -38,6 +38,7 @@ config APOLLOLAKE
select MEM_WND
select TASK_HAVE_PRIORITY_MEDIUM
select CAVS
select CAVS_VERSION_1_5
help
Select if your target platform is Apollolake-compatible
@ -49,6 +50,7 @@ config CANNONLAKE
select MEM_WND
select TASK_HAVE_PRIORITY_MEDIUM
select CAVS
select CAVS_VERSION_1_8
help
Select if your target platform is Cannonlake-compatible
@ -58,6 +60,7 @@ config SUECREEK
select IRQ_MAP
select TASK_HAVE_PRIORITY_MEDIUM
select CAVS
select CAVS_VERSION_2_0
help
Select if your target platform is Suecreek-compatible
@ -69,6 +72,7 @@ config ICELAKE
select MEM_WND
select TASK_HAVE_PRIORITY_MEDIUM
select CAVS
select CAVS_VERSION_2_0
help
Select if your target platform is Icelake-compatible