Skip to content

Commit

Permalink
starfive/visionfive: add cflags and kernel opts
Browse files Browse the repository at this point in the history
This patch enables new kernel drivers available in 6.7.

It also fine-tunes the compiler to use proper processor flags.

Signed-off-by: Max Berger <[email protected]>
Reviewed-by: Christian Stewart <[email protected]>
  • Loading branch information
maxberger authored and paralin committed Feb 5, 2024
1 parent 141c2c5 commit 27dff3e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configs/starfive/visionfive2/cflags/01-arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# VisionFive2 CPU Flags
# https://wiki.gentoo.org/wiki/Embedded_Handbook/Boards/StarFive_VisionFive_2
# /proc/cpuinfo:
# - isa: rv64imafdc_zicntr_zicsr_zifencei_zihpm_zba_zbb
# - mmu: sv39
# - uarch: sifive,u74-mc
# zicntr and zihpm are not known to gcc at this time.
-mabi=lp64d
-march=rv64imafdc_zicsr_zifencei_zba_zbb
-mcpu=sifive-u74
-mtune=sifive-7-series
--param l1-cache-size=32
--param l2-cache-size=2048

3 changes: 3 additions & 0 deletions configs/starfive/visionfive2/kernel/audio
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_SND_SOC_STARFIVE=y
CONFIG_SND_SOC_JH7110_PWMDAC=m
CONFIG_SND_SOC_JH7110_TDM=m
1 change: 1 addition & 0 deletions configs/starfive/visionfive2/kernel/crypto
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_CRYPTO_DEV_JH7110=y
1 change: 1 addition & 0 deletions configs/starfive/visionfive2/kernel/random
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_HW_RANDOM_JH7110=y
1 change: 1 addition & 0 deletions configs/starfive/visionfive2/kernel/usb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_USB_CDNS3_STARFIVE=m

0 comments on commit 27dff3e

Please sign in to comment.