Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexio pwm #235

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions arch/arm64/src/imx9/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,57 @@ config ARCH_CHIP_IMX93
select ARCH_HAVE_MULTICPU
select ARMV8A_HAVE_GICv3
select ARCH_CORTEX_A55
select ARCH_HAVE_PWM_MULTICHAN

endchoice # i.MX9 Chip Selection

endmenu # "i.MX9 Chip Selection"

config IMX9_FLEXIO_PWM
bool
select PWM_MULTICHAN
default n

menu "i.MX9 Peripheral Selection"
config IMX9_UART1
bool "UART1"
default n
select UART1_SERIALDRIVER

config IMX9_FLEXIO1_PWM
depends on PWM
bool "Enable FLEXIO1 based PWM generation"
select IMX9_FLEXIO_PWM
default n

config IMX9_FLEXIO2_PWM
depends on PWM
bool "Enable FLEXIO2 based PWM generation"
select IMX9_FLEXIO_PWM
default n

config IMX9_FLEXIO1_PWM_NCHANNELS
depends on IMX9_FLEXIO1_PWM
int "Number of channels for FLEXIO1"
default 4
range 1 7

config IMX9_FLEXIO1_PWM_CHANNEL_PINS
depends on IMX9_FLEXIO1_PWM
hex "FlexIO outputs used for FLEXIO1 timers"
default 0x0000000007060504

config IMX9_FLEXIO2_PWM_NCHANNELS
depends on IMX9_FLEXIO2_PWM
int "Number of channels for FLEXIO2"
default 1
range 1 7

config IMX9_FLEXIO2_PWM_CHANNEL_PINS
depends on IMX9_FLEXIO2_PWM
hex "FlexIO outputs used for FLEXIO2 timers"
default 0x0000000000000000

endmenu # iMX Peripheral Selection

config IMX9_GPIO_IRQ
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/src/imx9/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ endif
ifeq ($(CONFIG_IMX9_GPIO_IRQ),y)
CHIP_CSRCS += imx9_gpioirq.c
endif

ifeq ($(CONFIG_IMX9_FLEXIO_PWM),y)
CHIP_CSRCS += imx9_flexio_pwm.c
endif
Loading
Loading