Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b169a89
drivers: timer: Enable clic riscv machine timer
nandojve Aug 31, 2024
c71987d
west: Introduce hal bouffalo lab
nandojve Jul 18, 2021
0d79fd0
dts: bindings: vendor-prefixes: Add Bouffalo Lab prefix
nandojve Oct 14, 2024
60d4562
dts: riscv: bouffalolab: Add bl6 series cpu
nandojve Aug 3, 2021
5318a75
soc: riscv: bouffalolab: Add bl6 series cpu
nandojve Aug 3, 2021
d3ac8c9
soc: riscv: bouffalolab: Change to riscv-privileged
nandojve Jan 29, 2024
ba4daeb
drivers: pinctrl: bouffalolab: Add bflb pinctrl driver
nandojve Jan 27, 2024
784efc1
drivers: serial: bouffalolab: Add bflb serial driver
nandojve Aug 3, 2021
df8f88d
drivers: serial: bouffalolab: Add support to interrupts
nandojve Nov 11, 2021
b20d5ad
scripts: runner: Introduce blflash runner
nandojve Aug 7, 2021
2757196
boards: riscv: Introduce bl604e_iot_dvk
nandojve Apr 2, 2022
01828de
west.yml: Drop bouffalolab SDK dependency
VynDragon Aug 31, 2024
b45434d
soc: riscv: Rework bl60x to be SDK independent
VynDragon Aug 31, 2024
d032c73
dts: riscv: bouffalolab: Update bl60x series cpu
VynDragon Aug 31, 2024
902bb4e
drivers: pinctrl: bouffalolab: Update pinctrl driver
VynDragon Aug 31, 2024
dcaf4eb
drivers: gpio: bouffalolab: Add bflb gpio driver
VynDragon Aug 31, 2024
a32c5ce
drivers: serial: bouffalolab: Update serial driver
VynDragon Aug 31, 2024
3173294
scripts: runner: Introduce bflb_mcu_tool runner
VynDragon Aug 31, 2024
a699d4f
boards: riscv: bl604e_iot_dvk: Move to bl60x directory
nandojve Sep 9, 2024
5613e36
scripts: runner: Drop blflash in favor of bflb_mcu_tool
nandojve Sep 9, 2024
6cfc420
MAINTAINERS.yml: Add Bouffalo Lab entries
nandojve Sep 21, 2024
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
1 change: 1 addition & 0 deletions modules/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ osource "$(KCONFIG_BINARY_DIR)/Kconfig.modules"

source "modules/Kconfig.altera"
source "modules/Kconfig.atmel"
source "modules/Kconfig.bouffalolab"
source "modules/Kconfig.chre"
source "modules/Kconfig.cypress"
source "modules/Kconfig.eos_s3"
Expand Down
6 changes: 6 additions & 0 deletions modules/Kconfig.bouffalolab
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config HAS_BOUFFALOLAB_HAL
bool
depends on SOC_FAMILY_BFLB
58 changes: 6 additions & 52 deletions modules/hal_bouffalolab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,61 +1,15 @@
# Copyright (c) 2021-2024 Gerson Fernando Budke <[email protected]>
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
#
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_SOC_FAMILY_BFLB)

zephyr_library_named(hal_bouffalolab)

zephyr_compile_definitions(
ARCH_RISCV
)

zephyr_library_compile_definitions(
BFLB_USE_HAL_DRIVER
BFLB_USE_CUSTOM_LD_SECTIONS
)

set(bflb_soc ${CONFIG_SOC_SERIES}02)
set(bflb_drv_dir ${ZEPHYR_HAL_BOUFFALOLAB_MODULE_DIR}/drivers/${bflb_soc}_driver)
set(bflb_common_dir ${ZEPHYR_HAL_BOUFFALOLAB_MODULE_DIR}/common)
set(bflb_drv_src_dir ${bflb_drv_dir}/std_drv/src)

# Global includes to be used outside hal_gigadevice
zephyr_include_directories(
include
${ZEPHYR_HAL_BOUFFALOLAB_MODULE_DIR}/include

${bflb_drv_dir}/regs
${bflb_drv_dir}/startup
${bflb_drv_dir}/std_drv/inc

${bflb_common_dir}/misc
)

zephyr_library_include_directories(
${bflb_common_dir}/soft_crc
)

zephyr_library_sources(
${bflb_drv_src_dir}/${bflb_soc}_aon.c
${bflb_drv_src_dir}/${bflb_soc}_ef_ctrl.c
${bflb_drv_src_dir}/${bflb_soc}_glb.c
${bflb_drv_src_dir}/${bflb_soc}_hbn.c
${bflb_drv_src_dir}/${bflb_soc}_l1c.c
${bflb_drv_src_dir}/${bflb_soc}_pds.c
${bflb_drv_src_dir}/${bflb_soc}_romapi.c

${bflb_common_dir}/soft_crc/softcrc.c
)
if (CONFIG_SOC_SERIES_BL60X)
zephyr_compile_definitions(BL602)
endif()

zephyr_library_sources_ifdef(CONFIG_USE_BFLB_ACOMP ${bflb_drv_src_dir}/${bflb_soc}_acomp.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_ADC ${bflb_drv_src_dir}/${bflb_soc}_adc.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_DAC ${bflb_drv_src_dir}/${bflb_soc}_dac.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_DMA ${bflb_drv_src_dir}/${bflb_soc}_dma.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_I2C ${bflb_drv_src_dir}/${bflb_soc}_i2c.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_IR ${bflb_drv_src_dir}/${bflb_soc}_ir.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_PWM ${bflb_drv_src_dir}/${bflb_soc}_pwm.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_SPI ${bflb_drv_src_dir}/${bflb_soc}_spi.c)
zephyr_library_sources_ifdef(CONFIG_USE_BFLB_UART ${bflb_drv_src_dir}/${bflb_soc}_uart.c)
zephyr_include_directories(${ZEPHYR_HAL_BOUFFALOLAB_MODULE_DIR}/include/bouffalolab/${SOC_SERIES})
zephyr_include_directories(${ZEPHYR_HAL_BOUFFALOLAB_MODULE_DIR}/include)

endif()
54 changes: 1 addition & 53 deletions modules/hal_bouffalolab/Kconfig
Original file line number Diff line number Diff line change
@@ -1,59 +1,7 @@
# Copyright (c) 2021-2024 Gerson Fernando Budke <[email protected]>
# Copyright (c) 2024 MASSDRIVER EI (massdriver.space)
#
# SPDX-License-Identifier: Apache-2.0

config ZEPHYR_HAL_BOUFFALOLAB_MODULE
bool

config HAS_BFLB_HAL
bool

if HAS_BFLB_HAL

config USE_BFLB_ACOMP
bool
help
Enable BFLB Analog Comparator (ACOMP) HAL module driver

config USE_BFLB_ADC
bool
help
Enable BFLB Analog-to-Digital Converter (ADC) HAL module driver

config USE_BFLB_DAC
bool
help
Enable BFLB Digital-to-Analog Converter (DAC) HAL module driver

config USE_BFLB_DMA
bool
help
Enable BFLB Direct Memory Access controller (DMA) HAL module driver

config USE_BFLB_I2C
bool
help
Enable BFLB Inter-Integrated Circuit Interface (I2C) HAL module driver

config USE_BFLB_IR
bool
help
Enable BFLB Infrared Remote controller (IR) HAL module driver

config USE_BFLB_PWM
bool
help
Enable BFLB Pulse Width Modulation (PMU) HAL module driver

config USE_BFLB_SPI
bool
help
Enable BFLB Serial Peripheral Interface(SPI) HAL module driver

config USE_BFLB_UART
bool
help
Enable BFLB Universal Asynchronous Receiver/Transmitter (UART)
HAL module driver

endif # HAS_BFLB_HAL
14 changes: 0 additions & 14 deletions modules/hal_bouffalolab/include/bflb_glb.h

This file was deleted.

14 changes: 0 additions & 14 deletions modules/hal_bouffalolab/include/bflb_gpio.h

This file was deleted.

14 changes: 0 additions & 14 deletions modules/hal_bouffalolab/include/bflb_hbn.h

This file was deleted.

15 changes: 0 additions & 15 deletions modules/hal_bouffalolab/include/bflb_pinctrl.h

This file was deleted.

14 changes: 0 additions & 14 deletions modules/hal_bouffalolab/include/bflb_uart.h

This file was deleted.

25 changes: 0 additions & 25 deletions modules/hal_bouffalolab/include/bl_ld_sections.h

This file was deleted.

3 changes: 0 additions & 3 deletions soc/bouffalolab/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

config SOC_FAMILY_BFLB
select HAS_BFLB_HAL

if SOC_FAMILY_BFLB

rsource "*/Kconfig"
Expand Down
19 changes: 0 additions & 19 deletions soc/bouffalolab/bl6/Kconfig.defconfig

This file was deleted.

17 changes: 0 additions & 17 deletions soc/bouffalolab/bl6/rodata.ld

This file was deleted.

Loading