23b6e4f507
Adds driver for pwm on xmc4xxx using Capture Compare Unit 4 (CCU4) module. There are four CCU4 with each one having four channels Thus it's possible to have up to 16 pwm output signals. The output of each channel can only be connected to a specific port/pin. The possible connection and gpio configurations are defined using pinctrl. The CCU4 module also has a capture mode. Capture support will be added in the future. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
54 lines
791 B
Plaintext
54 lines
791 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (c) 2020 Linumiz
|
|
# Author: Parthiban Nallathambi <parthiban@linumiz.com>
|
|
|
|
config HAS_XMCLIB
|
|
bool
|
|
select HAS_CMSIS_CORE
|
|
depends on SOC_FAMILY_XMC
|
|
|
|
if HAS_XMCLIB
|
|
|
|
config HAS_XMCLIB_UART
|
|
bool
|
|
help
|
|
Enable XMCLIB Universal asynchronous receiver transmitter (UART)
|
|
|
|
config HAS_XMCLIB_FLASH
|
|
bool
|
|
help
|
|
Enable XMCLIB Flash
|
|
|
|
config HAS_XMCLIB_ERU
|
|
bool
|
|
help
|
|
Enable XMCLIB Event Request Unit (ERU) for GPIO interrupt support
|
|
|
|
config HAS_XMCLIB_VADC
|
|
bool
|
|
help
|
|
Enable XMCLIB VADC
|
|
|
|
config HAS_XMCLIB_DMA
|
|
bool
|
|
help
|
|
Enable XMCLIB DMA
|
|
|
|
config HAS_XMCLIB_SPI
|
|
bool
|
|
help
|
|
Enable XMCLIB SPI
|
|
|
|
config HAS_XMCLIB_I2C
|
|
bool
|
|
help
|
|
Enable XMCLIB I2C
|
|
|
|
config HAS_XMCLIB_CCU
|
|
bool
|
|
help
|
|
Enable XMCLIB CCU4/CCU8
|
|
|
|
endif # HAS_XMCLIB
|