Skip to content
Open
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
2 changes: 2 additions & 0 deletions drivers/clock_control/clock_control_bl60x.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ static void clock_control_bl60x_peripheral_clock_init(void)
regval |= (1 << 18);
/* enable DMA clock routing */
regval |= (1 << 12);
/* enable IR clock routing */
regval |= (1 << 22);
Comment on lines +663 to +664
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it better to guard these with kconfig so that they don't get clocked when they aren't enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's considered for the future when low power stuffs are worked on, for now it's all turned on (and depending on the soc defaults to on, some default to off)


sys_write32(regval, GLB_BASE + GLB_CGEN_CFG1_OFFSET);

Expand Down
2 changes: 2 additions & 0 deletions drivers/clock_control/clock_control_bl61x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,8 @@ static void clock_control_bl61x_peripheral_clock_init(void)
regval |= (1 << 13);
/* enable DMA clock routing */
regval |= (1 << 12);
/* enable IR clock routing */
regval |= (1 << 22);
/* enable DBI clock routing */
regval |= (1 << 24);

Expand Down
2 changes: 2 additions & 0 deletions drivers/clock_control/clock_control_bl70x.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ static void clock_control_bl70x_peripheral_clock_init(void)
regval |= (1 << 19);
/* enable DMA clock routing */
regval |= (1 << 12);
/* enable IR clock routing */
regval |= (1 << 22);

sys_write32(regval, GLB_BASE + GLB_CGEN_CFG1_OFFSET);

Expand Down
1 change: 1 addition & 0 deletions drivers/input/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ zephyr_library_property(ALLOW_EMPTY TRUE)
zephyr_library_sources_ifdef(CONFIG_INPUT_ADC_KEYS input_adc_keys.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS input_analog_axis.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS_SETTINGS input_analog_axis_settings.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_BFLB_IRX input_bflb_irx.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_CAP12XX input_cap12xx.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_CF1133 input_cf1133.c)
zephyr_library_sources_ifdef(CONFIG_INPUT_CHSC5X input_chsc5x.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ menu "Input drivers"
# zephyr-keep-sorted-start
source "drivers/input/Kconfig.adc_keys"
source "drivers/input/Kconfig.analog_axis"
source "drivers/input/Kconfig.bflb"
source "drivers/input/Kconfig.cap12xx"
source "drivers/input/Kconfig.cf1133"
source "drivers/input/Kconfig.chsc5x"
Expand Down
10 changes: 10 additions & 0 deletions drivers/input/Kconfig.bflb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config INPUT_BFLB_IRX
bool "Bouffalolab Infrared Receiver"
default y
depends on DT_HAS_BFLB_IRX_ENABLED
select GPIO
help
This option enables the driver for the Bouffalolab Infrared Receiver Peripheral.
Loading
Loading