drivers: Add I2S (Inter-IC Sound) driver infrastructure
Only Kconfig/Makefile file for now. Origin: Original Jira: ZEP-230 Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
cbff174d3a
commit
7756bbfd8c
4 changed files with 48 additions and 0 deletions
|
@ -44,6 +44,8 @@ source "drivers/spi/Kconfig"
|
|||
|
||||
source "drivers/i2c/Kconfig"
|
||||
|
||||
source "drivers/i2s/Kconfig"
|
||||
|
||||
source "drivers/pwm/Kconfig"
|
||||
|
||||
source "drivers/pinmux/Kconfig"
|
||||
|
|
|
@ -15,6 +15,7 @@ obj-$(CONFIG_FLASH) += flash/
|
|||
obj-$(CONFIG_COUNTER) += counter/
|
||||
obj-$(CONFIG_GPIO) += gpio/
|
||||
obj-$(CONFIG_I2C) += i2c/
|
||||
obj-$(CONFIG_I2S) += i2s/
|
||||
obj-$(CONFIG_PWM) += pwm/
|
||||
obj-$(CONFIG_ADC) += adc/
|
||||
obj-$(CONFIG_NET_L2_ETHERNET) += ethernet/
|
||||
|
|
43
drivers/i2s/Kconfig
Normal file
43
drivers/i2s/Kconfig
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Kconfig - I2S (Inter-IC Sound) driver configuration options
|
||||
#
|
||||
# Copyright (c) 2017 Piotr Mienkowski
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
#
|
||||
# I2S Drivers
|
||||
#
|
||||
menuconfig I2S
|
||||
bool
|
||||
prompt "I2S bus drivers"
|
||||
default n
|
||||
help
|
||||
Enable support for the I2S (Inter-IC Sound) hardware bus.
|
||||
|
||||
if I2S
|
||||
|
||||
config I2S_INIT_PRIORITY
|
||||
int "Init priority"
|
||||
default 70
|
||||
help
|
||||
Device driver initialization priority.
|
||||
|
||||
config SYS_LOG_I2S_LEVEL
|
||||
int "I2S Driver Log level"
|
||||
depends on SYS_LOG
|
||||
default 0
|
||||
range 0 4
|
||||
help
|
||||
Sets log level for I2S drivers.
|
||||
Levels are:
|
||||
0 OFF, do not write
|
||||
1 ERROR, only write SYS_LOG_ERR
|
||||
2 WARNING, write SYS_LOG_WRN in addition to previous level
|
||||
3 INFO, write SYS_LOG_INF in addition to previous levels
|
||||
4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
||||
|
||||
comment "Device Drivers"
|
||||
|
||||
source "drivers/i2s/Kconfig.*"
|
||||
|
||||
endif # I2S
|
2
drivers/i2s/Makefile
Normal file
2
drivers/i2s/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
|||
# No C files (yet)
|
||||
obj- += dummy.o
|
Loading…
Add table
Add a link
Reference in a new issue